版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領
文檔簡介
.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);}}}//初始化處于狀態(tài)的設備終端數(shù)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//這里還需要一次數(shù)據(jù)庫,保持數(shù)據(jù)一致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. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 建筑工程定額應用技術要領
- 2025年山東省威海市單招職業(yè)適應性考試題庫附答案解析
- 安全心理與行為的規(guī)律和控制方法
- 2025年長春開放大學馬克思主義基本原理概論期末考試模擬題含答案解析(必刷)
- 2025年同德縣招教考試備考題庫及答案解析(奪冠)
- 服裝公司生產(chǎn)管理服務制度(規(guī)定)
- 珠寶公司財務報表質(zhì)量辦法
- 2025年廣州現(xiàn)代信息工程職業(yè)技術學院馬克思主義基本原理概論期末考試模擬題帶答案解析(必刷)
- 2025年湖北生物科技職業(yè)學院馬克思主義基本原理概論期末考試模擬題含答案解析(奪冠)
- 2025年若羌縣招教考試備考題庫附答案解析(奪冠)
- 2025年水利工程質(zhì)量檢測員考試(混凝土工程)全真模擬試題及答案及答案(云南省)
- 戰(zhàn)場適應性訓練
- 《招標投標法及實施條例》考試題庫大全(含答案)
- 規(guī)劃設計定點服務機構(gòu)采購項目方案投標文件(技術方案)
- 荒山綠化施工協(xié)議書范本
- 冷凍肉類管理辦法
- 鄭州鄭東新區(qū)高鐵站前商務區(qū)市場定位報告
- 貴州省倉儲物流管理辦法
- 房建工程項目進度管理
- 中醫(yī)護理不良事件分析與改進
- 2025年湖北省中考數(shù)學試卷
評論
0/150
提交評論