package com.svw.mvpdemo.three;
import static com.svw.mvpdemo.three.Constants.NOTIFY_SD_STATUS;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.annotation.SuppressLint;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
import android.text.Editable;
import android.text.TextUtils;
import android.text.TextWatcher;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.RadioButton;
import android.widget.RadioGroup;
import android.widget.TextView;
import android.widget.Toast;
import com.svw.dvr.ControlCommandAck;
import com.svw.dvr.DVRManager;
import com.svw.dvr.DvrAllSettings;
import com.svw.dvr.FileChangedInfo;
import com.svw.dvr.HeartBeatInfo;
import com.svw.dvr.IDVRTypes;
import com.svw.dvr.MediaFileControlAck;
import com.svw.dvr.MediaFileControlRequest;
import com.svw.dvr.MediaFileInfo;
import com.svw.dvr.MediaFileListAck;
import com.svw.dvr.MediaFileListActionAck;
import com.svw.dvr.MediaFileListRequest;
import com.svw.dvr.SDMemoryInfo;
import com.svw.dvr.WifiParam;
import com.svw.mvpdemo.R;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
public class MainActivity3 extends AppCompatActivity implements View.OnClickListener{
private boolean flag=false;//标记是否成功的变量
private final String TAG = "MainActivity";
private Button btn0,btn1,btn2,btn3,btn4,btn5,btn6,btn7,btn8,btn9,btn10,btn11,btn12,btn13,btn14,btn15;
private Button btn16,btn17,btn18,btn19,btn20,btn21,btn22,btn23,btn24,btn25,btn26,btn27,btn28,btn29,btn30,btn31,btnFAWDownload;
private Button btn32,btn33,btn34,btnDeleteMultiple;
private EditText editDeleteMultiple;
private MediaFileListAck mediaFileListAck;
private MediaFileListAck mediaFileListAck1;
private MediaFileListAck mediaFileListAck2;
private int k = 0;
private TextView tvMessage,tvNotifyMessage,tvNotifyFileCount,tvNotifyFileChanged,tvFilePercent,tvRecordStatus,tvPhotoComplete,tvResolutionSet,tvDuration,tvRest,tvAllSetting,tvCode;
private TextView tvAllHeartBeatInfo;
private DVRManager mDVRManager;
private TextView tv_id;
private RadioGroup rG;
private RadioButton rbFAW,rbSVW;
private String mWorkAppMode = "";
private String mWorkStatus = "";
private long mRrecTime = 0;
private String mDvrEnable = "";
private String mEmmcStatus = "";
private String mMicStatus = "";
private String mSdCard = "";
private String mFilePercent = "";
private String mPhotoCount = "";
private long id = 0;
private boolean isFAW = false;
private String ipAddress = "";
private String downName = "";
private TextView tvFAWDownLoadAddress;
private boolean isHaveHeartBeat = false;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main3);
mDVRManager = new DVRManager(this);
initView();
Log.e(TAG, "onCreate: "+mDVRManager.isConnected() );
mDVRManager.registerListener(mDvrListener,mDvrHandler);
//1920 984
}
private void initView(){
tvMessage = findViewById(R.id.tv_message);
tvCode = findViewById(R.id.tv_code);
tvFAWDownLoadAddress = findViewById(R.id.tv_down_address);
tvNotifyMessage = findViewById(R.id.tv_message_notify);
tvNotifyFileCount = findViewById(R.id.tv_message_file_count);
tvNotifyFileChanged = findViewById(R.id.tv_message_file_changed);
tvFilePercent = findViewById(R.id.tv_file_percent);
tvRecordStatus = findViewById(R.id.tv_record_status);
tvPhotoComplete = findViewById(R.id.tv_photo_status);
tvResolutionSet = findViewById(R.id.tv_resolution_status);
tvDuration = findViewById(R.id.tv_record_time_status);
tvRest = findViewById(R.id.tv_reset_status);
tvAllSetting = findViewById(R.id.tv_reset_all_result_status);
tv_id = findViewById(R.id.tv_id);
rG = findViewById(R.id.rg);
rbSVW = findViewById(R.id.svw_rb);
rbFAW = findViewById(R.id.faw_rb);
btn0 = findViewById(R.id.btn_test0);
btn1 = findViewById(R.id.btn_test1);
btn2 = findViewById(R.id.btn_test2);
btn3 = findViewById(R.id.btn_test3);
btn4 = findViewById(R.id.btn_test4);
btn5 = findViewById(R.id.btn_test5);
btn6 = findViewById(R.id.btn_test6);
btn7 = findViewById(R.id.btn_test7);
btn8 = findViewById(R.id.btn_test8);
btn9 = findViewById(R.id.btn_test9);
btn10 = findViewById(R.id.btn_test10);
btn11 = findViewById(R.id.btn_test11);
btn12 = findViewById(R.id.btn_test12);
btn13 = findViewById(R.id.btn_test13);
btn14 = findViewById(R.id.btn_test14);
btn15 = findViewById(R.id.btn_test15);
btn16 = findViewById(R.id.btn_test16);
btn17 = findViewById(R.id.btn_test17);
btn18 = findViewById(R.id.btn_test18);
btn19 = findViewById(R.id.btn_test19);
btn20 = findViewById(R.id.btn_test20);
btn21 = findViewById(R.id.btn_test21);
btn22 = findViewById(R.id.btn_test22);
btn23 = findViewById(R.id.btn_test23);
btn24 = findViewById(R.id.btn_test24);
btn25 = findViewById(R.id.btn_test25);
btn26 = findViewById(R.id.btn_test26);
btn27 = findViewById(R.id.btn_test27);
btn28 = findViewById(R.id.btn_test28);
btn29 = findViewById(R.id.btn_test29);
btn30 = findViewById(R.id.btn_test30);
btn31 = findViewById(R.id.btn_test31);
btn32 = findViewById(R.id.btn_test32);
btn33 = findViewById(R.id.btn_test33);
btn34 = findViewById(R.id.btn_test34);
btnDeleteMultiple = findViewById(R.id.btn_delete_media_file_multiple);
editDeleteMultiple = findViewById(R.id.et_delete_media_file_multiple);
btnFAWDownload = findViewById(R.id.btn_faw_download);
tvAllHeartBeatInfo = findViewById(R.id.tv_heart_beat_all);
btnFAWDownload.setOnClickListener(this);
btn0.setOnClickListener(this);
btn1.setOnClickListener(this);
btn2.setOnClickListener(this);
btn3.setOnClickListener(this);
btn4.setOnClickListener(this);
btn5.setOnClickListener(this);
btn6.setOnClickListener(this);
btn7.setOnClickListener(this);
btn8.setOnClickListener(this);
btn9.setOnClickListener(this);
btn10.setOnClickListener(this);
btn11.setOnClickListener(this);
btn12.setOnClickListener(this);
btn13.setOnClickListener(this);
btn14.setOnClickListener(this);
btn15.setOnClickListener(this);
btn16.setOnClickListener(this);
btn17.setOnClickListener(this);
btn18.setOnClickListener(this);
btn19.setOnClickListener(this);
btn20.setOnClickListener(this);
btn21.setOnClickListener(this);
btn22.setOnClickListener(this);
btn23.setOnClickListener(this);
btn24.setOnClickListener(this);
btn25.setOnClickListener(this);
btn26.setOnClickListener(this);
btn27.setOnClickListener(this);
btn28.setOnClickListener(this);
btn29.setOnClickListener(this);
btn30.setOnClickListener(this);
btn31.setOnClickListener(this);
btn32.setOnClickListener(this);
btn33.setOnClickListener(this);
btn34.setOnClickListener(this);
btnDeleteMultiple.setOnClickListener(this);
btnFAWDownload.setVisibility(View.GONE);
tv_id.setVisibility(View.GONE);
tvFAWDownLoadAddress.setVisibility(View.GONE);
rG.setOnCheck
没有合适的资源?快使用搜索试试~ 我知道了~
联系人电话本可拖动的滑动条
共108个文件
xml:29个
java:17个
class:16个
需积分: 5 0 下载量 42 浏览量
2024-09-14
13:24:20
上传
评论
收藏 779KB ZIP 举报
温馨提示
快速滑动
资源推荐
资源详情
资源评论
收起资源包目录
联系人电话本可拖动的滑动条 (108个子文件)
gradlew.bat 3KB
executionHistory.bin 2.39MB
outputFiles.bin 302KB
fileHashes.bin 81KB
resourceHashesCache.bin 23KB
executionHistory.bin 22KB
sha1-checksums.bin 21KB
md5-checksums.bin 19KB
last-build.bin 1B
LibrariesForLibsInPluginsBlock.class 7KB
LibrariesForLibs.class 5KB
LibrariesForLibsInPluginsBlock$SimplecityappsLibraryAccessors.class 2KB
LibrariesForLibsInPluginsBlock$SimplecityappsRecyclerviewLibraryAccessors.class 2KB
LibrariesForLibsInPluginsBlock$EspressoLibraryAccessors.class 2KB
LibrariesForLibsInPluginsBlock$ExtLibraryAccessors.class 2KB
LibrariesForLibsInPluginsBlock$VersionAccessors.class 2KB
LibrariesForLibs$VersionAccessors.class 2KB
LibrariesForLibs$SimplecityappsLibraryAccessors.class 1KB
LibrariesForLibs$SimplecityappsRecyclerviewLibraryAccessors.class 974B
LibrariesForLibsInPluginsBlock$PluginAccessors.class 954B
LibrariesForLibs$PluginAccessors.class 912B
LibrariesForLibs$EspressoLibraryAccessors.class 907B
LibrariesForLibs$ExtLibraryAccessors.class 894B
LibrariesForLibsInPluginsBlock$BundleAccessors.class 891B
LibrariesForLibs$BundleAccessors.class 765B
.gitignore 225B
.gitignore 6B
build.gradle 1KB
settings.gradle 530B
build.gradle 162B
gradlew 6KB
classes.jar 72KB
gradle-wrapper.jar 58KB
MainActivity3.java 81KB
LibrariesForLibsInPluginsBlock.java 19KB
LibrariesForLibs.java 12KB
MainActivity2.java 8KB
VerticalSeekBar.java 5KB
CustomLinearLayoutManager.java 4KB
MainActivity.java 4KB
Constants.java 3KB
CallLogAdapter.java 2KB
ScrollBar.java 2KB
SimpleRecyclerAdapter.java 2KB
DvrApplication.java 951B
ExampleInstrumentedTest.java 744B
News.java 411B
ExampleUnitTest.java 376B
BluetoothCallLog.java 240B
Item_list.java 57B
buildOutputCleanup.lock 17B
checksums.lock 17B
executionHistory.lock 17B
dependencies-accessors.lock 17B
fileHashes.lock 17B
second_head.png 2KB
contact_item_head.png 1KB
contact_scroll_thumb.png 156B
proguard-rules.pro 750B
file-system.probe 8B
gradle.properties 1KB
local.properties 449B
gradle-wrapper.properties 236B
config.properties 76B
cache.properties 51B
gc.properties 0B
gc.properties 0B
gc.properties 0B
libs.versions.toml 1KB
ic_launcher_round.webp 8KB
ic_launcher_round.webp 6KB
ic_launcher_round.webp 4KB
ic_launcher.webp 4KB
ic_launcher_round.webp 3KB
ic_launcher.webp 3KB
ic_launcher.webp 2KB
ic_launcher_round.webp 2KB
ic_launcher.webp 1KB
ic_launcher.webp 982B
activity_main3.xml 29KB
ic_launcher_background.xml 5KB
bt_fragment_calllog_item.xml 2KB
list_item.xml 2KB
ic_launcher_foreground.xml 2KB
activity_main.xml 2KB
AndroidManifest.xml 1KB
item_list.xml 1KB
list_item_header.xml 1023B
activity_main2.xml 1006B
themes.xml 798B
themes.xml 798B
colors.xml 625B
ic_extension_24dp.xml 601B
scroll_view.xml 568B
data_extraction_rules.xml 551B
backup_rules.xml 478B
thumb.xml 427B
myscroller_thumb.xml 377B
scroller_thumb.xml 348B
ic_launcher.xml 343B
共 108 条
- 1
- 2
资源评论
星期九丶
- 粉丝: 30
- 资源: 13
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功