版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
.inimportjava.util.ArrayList;importjava.util.HashMap;importjava.util.List;importimportandroid.util.Log;importimportandroid.widget.AdapterView;importandroid.widget.CheckBox; importimportandroid.widget.ImageView;import .in .in .in .in .inpublicclassTempextendsBaseActivityimplementsOnAlarmButtonClickListener,MyOnItemClickListener,OnClickListener,OnCheckedChangeListener,OnItemClickListener{privateImageViewbackImageView;privateListViewlistView;privateList<AppBjSbxx>appBjSbxxList=newprivateList<AppBjSbxxZD>appBjSbxxZDList;privateTempListViewAdpaterlistAdapter;protectedvoidaddActivity()}} }protectedvoidinitViews()backImageView=(ImageView)findViewById(R.id.title_image_back);listView=(ListView)findViewById( ckAlarm=(CheckBox)findViewById( }*@returnvoidprotectedvoidinitData()showDialog(this,getResources().getString(R.string.loading_tip));HashMap<String,String>map=newHashMap<String,String>();map.put("jgdm",loaclManager.getJgdm()); Preferences.HOST+Preferences.BJSBXX_URL,map, mentResponseListener(){publicvoidrequestEndedWithError(VolleyErrorerror){}publicvoid pleted(Stringresponse){if(response!=null)appBjSbxxList=JSONUtil.getAppBjSbxx(response);Log.e("123",appBjSbxxList.get(0).getBjsbxxzds()+expandableAdapter=newTempExpandlistViewAdpater(Temp.this,appBjSbxxList);}}}//初始化处于状态的设备终端数appBjSbxxZDList=newArrayList<AppBjSbxxZD>();for(inti=0;i<appBjSbxxList.size();i++){for(AppBjSbxxZDchildrenItem:}}}}listAdapter=newTempListViewAdpater(this,appBjSbxxZDList);}//}privatevoidclick()//TODOAuto-generatedmethodpublicbooleanonChildClick(ExpandableListViewparent,Viewv,intgroupPosition,intchildPosition,longid){//TODOAuto-generatedmethod//Log.e("123","xinxi"+//return}}publicvoidonGroupAlarmClick(intposition)//TODOAuto-generatedmethodstubshowToast(Temp.thisGroup显示图position);}publicvoidonChildrenAlarmClick(intposition)//TODOAuto-generatedmethod}publicvoidonClick(Viewv)//TODOAuto-generatedmethodstubswitch(v.getId()){caseR.id.title_image_back:}}//TODOAuto-generatedmethod//这里还需要一次数据库,保持数据一致if(isChecked)}else}}publicvoidonItemClick(AdapterView<?>parent,Viewview,intposition,longid){//TODOAuto-generatedmethod}publicvoidmyOnItemClickListener(Objectobject,intposition)//TODOAuto-generatedmethod//Log.e("123",//}} importjava.util.ArrayList;importjava.util.HashMap;importjava.util.List;importandroid.util.Log;importimportandroid.widget.CheckBox; import importandroid.widget.ImageView; .in .in .in .in publicclassWarningInfoActivityextendsBaseActivityimplementsOnClickListener,OnCheckedChangeListener{privateStringTAG="WarningInfoActivity";ImageViewbackImageView;ImageViewsearchImageView;CheckBoxresolvedCheckbox;CheckBoxunResolvedCheckbox;ListViewListViewList<AppBjSbxx>appBjSbxxList=newWarningInfoListAdapterresolvedWarningInfoAdapter;protectedvoidaddActivity()}}}protectedvoidinitViews()backImageView=(ImageView)searchImageView=(ImageView)findViewById(R.id.title_image_right_1);resolvedCheckbox=(CheckBox)findViewById(R.id.resolved_checkbox);unResolvedCheckbox=(CheckBox)findViewById(R.id.unresolved_checkbox);unResolvedListView=(ListView)findViewById(R.id.warning_info_unresolved);resolvedListView=(ListView)findViewById(R.id.warning_info_resolved);}protectedvoidinitData(){HashMap<String,String>map=newHashMap<String,String>();map.put("jgdm",loaclManager.getJgdm()); mentResponseListener(){publicvoidrequestEndedWithError(VolleyErrorerror){Log.e(TAG,error+"");}publicvoid pleted(Stringresponse){if(response!=null)appBjSbxxList=JSONUtil.getAppBjSbxx(response);
}else }
}else
}}}}
//for(AppBjSbxxappBjSbxx:appBjSbxxList)for(AppBjSbxxZDappBjSbxxZD:appBjSbxx.getBjsbxxzds()){for(AppBjBjxxbjxx:appBjSbxxZD.getBjbjxx()){}else}}}}}//}publicvoidonClick(Viewv)//TODOAuto-generatedmethodstubswitch(v.getId()){caseR.id.title_image_back:caseIntentintent=newIntent(this,SearchWarningInfoActivity.class);}}//TODOAuto-generatedmethodstubswitch(buttonView.getId()){caseR.id.resolved_checkbox:caseR.id.unresolved_checkbox:}}} importorg.Mediayer.yM4.yer;sdk.ExceptionCallBack;importcom.hik sdk.NET_DVR_DEVICEINFO_V30;sdk.NET_DVR_IPPARACFG_V40;sdk.RealyCallBack;importandroid.annotation.SuppressLint;importandroid.content.Intent;importimportimportandroid.view.Surface;importimportimportandroid.widget.Button;import .inligentmonitoring.util.NtWor publicclassAccessControlInfoActivityextendsBaseActivityimplementsOnClickListener,Callback{privateStringTAG="AccessControlInfoActivity";privateImageViewbackImageView;privateSurfaceViewm_osurfaceView=null;privateyerm_oyerSDK=null;privateStringm_oIPAddr=null;privateStringm_oPort=null;privateStringm_oUser=null;privateStringm_oPsd=null;privateNET_DVR_DEVICEINFO_V30m_oNetDvrDeviceInfoV30=null;privateintiFirstChannelNo=-1;//getstartchannelnoprivateintm_iLogID=-1;//returnbyprivateintm_iyID=-1;//returnbyNET_DVR_Realprivateintm_iybackID=-1;//returnbyNET_DVR_yBackByTimeprivateintm_iPort=-1;//yportprivateAppCrryjlprotectedvoidaddActivity()Log.i(TAG,"addActivityMethodisexecuted");}}}protectedvoidinitViews()backImageView=(ImageView)findViewById(R.id.title_image_back);answer=(Button)findViewById(R.id.answer);m_osurfaceView=(SurfaceView)findViewById(R.id.camera);openDoor=(Button)findViewById(R.id.open_door);closeDoor=(Button)accessOutInfoBtn=(Button)findViewById(R.id.access_out_people_info);}protectedvoidinitData()Intentintent=getIntent();appCrryjl=new//SurfaceHolderif(!initeSdk())}m_oPort="8000";m_oUser="admin";m_oPsd="12345";Log.i(TAG,"initDataMethodis}privatevoidrefreshOpenCloseDoorBtn(){if("1".equals(appCrryjl.getMzt())){}else}}protectedvoidonResume()//TODOAuto-generatedmethodstub}protectedvoidonPause()//TODOAuto-generatedmethodstub}//}publicvoidonClick(Viewv){switch(v.getId()){caseR.id.title_image_back:caseIntentintent=newIntent(this,ComeGoPeopleInfoActivity.class);intent.putExtra(Preferences.ZDID,appCrryjl.getZdid());caseR.id.open_door:caseR.id.close_door:}}privatevoidlogin(){try{if(m_iLogID<0)//loginonthedevicem_iLogID=loginDevice();if(m_iLogID<0){Log.e(TAG,"Thisdeviceloginsfailed!");}//getinstanceofexceptioncallbackandExceptionCallBackoexceptionCbf=getExceptiongCbf();if(oexceptionCbf==null){Log.e(TAG,"ExceptionCallBackobjectisfailed!");}if( oexceptionCbf)){Log.e(TAG,"NET_DVR_SetExceptionCallBackisfailed!");} }}catch(Exceptionerr)Log.e(TAG,"error:"+}}privateintloginDevice()//getm_oNetDvrDeviceInfoV30=newNET_DVR_DEVICEINFO_V30();if(null==m_oNetDvrDeviceInfoV30){Log.e(TAG,"etDvrDeviceInfoV30newisfailed!");return-1;}intnPort=//callNET_DVR_Login_v30tologinon,port8000asm_oUser,m_oPsd,m_oNetDvrDeviceInfoV30);if(iLogID<0)+return-}return}//privatevoidopenOrCloseDoor(finalStringmzt) Preferences.HOST+Preferences.CONTROL_DL_URL,appCrryjl, mentResponseListener(){publicvoidrequestEndedWithError(VolleyErrorerror){Log.e(TAG,error+"");}publicvoid pleted(Stringresponse){if(response!=null)}}}privatebooleaniniteSdk(){//initnetif( etSDK.getInstance().NET_DVR_Init()){Log.e(TAG,"HCNetSDKinitisfailed!");return}//initif(m_oyerSDK==null){Log.e(TAG,"yCtrlgetInstancefailed!");returnfalse;}return}//TODOAuto-generatedmethodstubif(-1==m_iPort){}Surfacesurface=if(null!=m_oyerSDK&&true==surface.isValid()){m_oyerSDK.setDisyRegion(m_iPort,4,null,holder,0);if(false==m_oyerSDK.setWindow(m_iPort,0,holder)){Log.e(TAG," yerset Windowfailed!");}}Log.i(TAG,"surfaceiscreated"+m_iPort);Log.i(TAG,"surfaceCreatedMethodisexecuted");}publicvoidsurfaceChanged(SurfaceHolderholder,intformat,intwidth,intheight){//LayoutParamslp=//lp.width=//lp.height=Surfacesurface=holder.getSurface();if(!surface.isValid()){}Log.i(TAG,"surfaceChangedMethodisexecuted:"+format+","++","+}//TODOAuto-generatedmethodstub}privatevoidpreview(){try{if(m_iLogID<0)Log.e(TAG,"pleaseloginondevicefirst");}if(m_iyID<0)if(m_iybackID>=0)Log.i(TAG,"Pleasestoppalybackfirst");}RealyCallBackfRealDallBack=getRealyerCbf();if(fRealDallBack==null){ allBackobjectis}if(struIPPara.dwAChanNum>0){iFirstChannelNo=1;}elseiFirstChannelNo=}if(iFirstChannelNo<=0){iFirstChannelNo=}
NET_DVR_INFOInfo=newNET_DVR_Info.lChannel=iFirstChannelNo;//startchannelno//previewchannelInfo.lLinkMode=1<<31;//bit31--0,main//stream;1,sub//bit0~30-- Info.sMultiCastIP=//netsdkstartm_iLogID,Info,fRealDallBack,true);if(m_iyID<0)+} }}catch(Exceptionerr)Log.e(TAG,"error:"+}}RealyCallBackcbf=newRealyCallBack()publicvoidfRealDallBack(inti landl,intiataType,byte[]pDataBuffer,intiDataSize){//yerchannel }return}publicvoidprocessRealData(intiyViewNo,intiDataType,byte[]pDataBuffer,intiDataSize,intiStreamMode){//Log.i(TAG,"iyViewNo:"+iyViewNo+",iDataType:"+iDataType//",iDataSize:"+if(HCNetSDK.NET_DVR_SYSHEAD==iDataType){if(m_iPort>=0){}m_iPort=m_oyerSDK.getPort();if(m_iPort==-1){"getPortisfailedwith:+ }
Log.i(TAG,"getPortsuccwith:"+m_iPort);if(iDataSize>0){{}}2*1024*1024))//openstream{}Log.e(TAG,"yfailed");}}}else"inputDatafailedwith:+ }}}privatevoidstopy()Log.i(TAG,"stopyMethodisexecuted");if(m_iyID<0){Log.e(TAG,"m_iyID<0");}//netsdkstopif( Log.e(TAG,"StopRealyisfailed!Err:"+}//yerstopif(!m_oyerSDK.stop(m_iPort)){Log.e(TAG,"stopisfailed!");}if Log.e(TAG,"closeStreamisfailed!");}if(!m_oyerSDK.Port(m_iPort)){Log.e(TAG,"Portisfailed!"+m_iPort);}m_iPort=-//setidinvalidm_iyID=-}publicvoidfExceptionCallBack(intiType,intiUserID,intiHandle);//youcanaddprocess}return}privatevoidcleanup()//releaseyerresourcem_iPort=-1;//releasenetSDKLog.i(TAG,"cleanupMethodisexecuted");}} importimportandroid.widget.ImageView; publicclassCircuitDiagramActivityextendsBaseActivity{privateImageViewprotectedvoidaddActivity()}}}protectedvoidinitViews()backImageView=(ImageView)publicvoidonClick(Viewv)//TODOAuto-generatedmethodstub}}} importjava.util.ArrayList;importimportjava.util.HashMap;importjava.util.List;importandroid.annotation.SuppressLint;importandroid.content.Intent;importimportimportimport importandroid.widget.ListView; .AppCrr publicclassComeGoPeopleInfoActivityextendsBaseActivityimplementsOnClickListener,OnCheckedChangeListener{privateStringTAG="ComeGoPeopleInfoActivity";privateImageViewbackImageView;privateImageViewprivateListViewprivateList<AppCrryjl>appCrryjls=newArrayList<AppCrryjl>();privateIntentintent;protectedvoidaddActivity()}} }protectedvoidinitViews()backImageView=(ImageView)searchImageView=(ImageView)findViewById(R.id.title_image_right_1);notGoPeopleCheckbox=(CheckBox)findViewById(R.id.not_go_people); }protectedvoidinitData(){intent==");//HashMap<String,String>map=newHashMap<String,String>();map.put(Preferences.KSSJ,dateString+"00:00:00");map.put(Preferences.JSSJ,dateString+"23:59:59"); Preferences.HOST+Preferences.AOPI_URL,map, publicvoidrequestEndedWithError(VolleyErrorerror){Log.e(TAG,error+"");}publicvoid pleted(Stringresponse){if(response!=null)appCrryjls=}}}
ComeGoPeopleInfoActivity.this,appCrryjls);//}publicvoidonClick(Viewv)//TODOAuto-generatedmethodstubswitch(v.getId()){caseR.id.title_image_back:caseIntentintentX=new}}//TODOAuto-generatedmethodstub}} importandroid.view.View;importandroid.widget.ImageView; publicclassHomeActivityextendsBaseActivityimplementsOnClickListenerprivateImageViewjk_tip_image,dk_tip_image,mj_tip_iamge,dl_tip_image,sd_tip_image,wd_tip_image,bj_tip_image,yy_tip_image;protectedvoidaddActivity()}}}protectedvoidinitViews()//TODOAuto-generatedmethodjk_tip_image=(ImageView)findViewById(R.id.jk_tip_image);dk_tip_image=(ImageView)findViewById(R.id.dk_tip_image);mj_tip_iamge=(ImageView)findViewById(R.id.mj_tip_iamge);dl_tip_image=(ImageView)findViewById(R.id.dl_tip_image);sd_tip_image=(ImageView)findViewById(R.id.sd_tip_image);wd_tip_image=(ImageView)findViewById(R.id.wd_tip_image);bj_tip_image=(ImageView)findViewById(R.id.bj_tip_image);yy_tip_image=(ImageView)}publicvoidonClick(Viewv)//TODOAuto-generatedmethodstubIntentintent;caseR.id.jk_relative://}caseR.id.dk_relative://intent=newIntent(HomeActivity.this,}caseR.id.mj_relative://intent=newIntent(HomeActivity.this,}caseR.id.dl_relative://intent=newIntent(HomeActivity.this,}caseR.id.sd_relative://intent=newIntent(HomeActivity.this,Humdity.class);}caseR.id.bj_relative://intent=newIntent(HomeActivity.this,}//}//intent=newIntent(HomeActivity.this,}caseR.id.setting_image://}//intent=newIntent(HomeActivity.this,SMSAcitivity.class);}//}}}protectedvoidinitData()}} importjava.util.ArrayList;importjava.util.HashMap;importjava.util.List;importimportimportimportimportimportimportimportimportandroid.widget.AdapterView;importandroid.widget.CheckBox; importandroid.widget.ImageView;importandroid.widget.Toast; importandroid.widget.ExpandableListView.OnChildClickListener;import .in .in .in .in .inpublicclassHumdityextendsBaseActivityOnCheckedChangeListener,OnItemClickListener{privateImageViewbackImageView;privateListViewlistView;privateList<AppBjSbxx>appBjSbxxList=newArrayList<AppBjSbxx>();privateList<AppBjBjxx>appBjBjxxList;privateList<AppBjSbxxZD>appBjSbxxZDList;privateHumListViewAdpaterlistAdapter;protectedvoidaddActivity()}} }protectedvoidinitViews()backImageView=(ImageView)findViewById(R.id.title_image_back);listView=(ListView)findViewById( ckAlarm=(CheckBox)findViewById( }*non-Javadoc)protectedvoidinitData()showDialog(this,getResources().getString(R.string.loading_tip));HashMap<String,String>map=newHashMap<String,Stri
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 国家电网许继集团2025年高校毕业生(第二批)招聘高频重点提升(共500题)附带答案详解
- 国家心理健康和精神卫生防治中心公开招考4名工作人员高频重点提升(共500题)附带答案详解
- 四川绵阳平武县乡镇事业单位从“大学生志愿服务西部”项目人员中招聘高频重点提升(共500题)附带答案详解
- 四川省事业单位招聘高频重点提升(共500题)附带答案详解
- 四川宜宾市江安县2025年第二次事业单位招考拟聘人员第二批高频重点提升(共500题)附带答案详解
- 二零二五年汽车租赁合同违约责任补充条款2篇
- 南通市通州区秋季区属事业单位公开招聘24名工作人员高频重点提升(共500题)附带答案详解
- 南宁经济技术开发区招考1名劳务派遣人员(金凯街道办事处)高频重点提升(共500题)附带答案详解
- 南京市建设工程施工图设计审查管理中心公开招考1名编外工作人员高频重点提升(共500题)附带答案详解
- 华南理工大学信息网络工程研究中心招考聘用合同工高频重点提升(共500题)附带答案详解
- 年度得到 · 沈祖芸全球教育报告(2024-2025)
- 2025河北机场管理集团限公司招聘39人高频重点提升(共500题)附带答案详解
- (2024-2025)新人教版八年级上册语文期末测试卷及答案
- 35KV变电站地质勘察与施工方案
- 2025年中国社会科学院外国文学研究所专业技术人员招聘3人历年管理单位笔试遴选500模拟题附带答案详解
- 运输公司安全隐患大排查整治行动方案
- 湖北省十堰市2023-2024学年高二上学期期末调研考试 物理 含答案
- 传染病和突发公共卫生事件报告和处置培训课件
- 道具设计安装合同模板
- 2024至2030年中国白内障手术耗材行业投资前景及策略咨询研究报告
- 体育单杠课件教学课件
评论
0/150
提交评论