资源简介
视频监控app和demo,支持大华和海康等
代码片段和文件信息
package com.dh.activity;
import java.sql.Date;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;
import android.R.integer;
import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.text.InputFilter;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.onclickListener;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.baseAdapter;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ListView;
import android.widget.Spinner;
import android.widget.TextView;
import android.widget.Toast;
import android.widget.AdapterView.OnItemSelectedListener;
import com.dh.Demo.R;
import com.dh.Demo.TestDpsdkCoreActivity;
import com.dh.DpsdkCore.Alarm_Enable_By_Dep_Info_t;
import com.dh.DpsdkCore.Alarm_Enable_Info_t;
import com.dh.DpsdkCore.IDpsdkCore;
import com.dh.DpsdkCore.dpsdk_alarm_type_e;
import com.dh.DpsdkCore.fDPSDKAlarmCallback;
import com.dh.bean.AlarmItem;
public class AlarmbuKongActivity extends Activity {
private int m_pDLLHandle = 0;
private static final String TAG = “AlarmbuKongActivity“;
private List AlarmbkList = new ArrayList();
private AlarmbkAdapter alarmbkadapter;
private String strSelectedItem;
private String numSelectedType;
private String[] strType;
private String[] numType;
private String[] titleType;
private String eventNum;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_alarm_bukong);
m_pDLLHandle = TestDpsdkCoreActivity.getDpsdkHandle();
strType = getResources().getStringArray(R.array.alarm_type);
numType = getResources().getStringArray(R.array.alarm_type_num);
titleType = getResources().getStringArray(R.array.title_listview);
alarmbkadapter = new AlarmbkAdapter();
ListView alarmbkListView = (ListView)findViewById(R.id.listview_alarm_activity);
alarmbkListView.setAdapter(alarmbkadapter);
showSpinner();
TextView vChannalName = (TextView)findViewById(R.id.video_channal_name);
TextView aChannalName = (TextView)findViewById(R.id.alarm_channel_name);
TextView txtDeviceId = (TextView)findViewById(R.id.device_id);
txtDeviceId.setText(getIntent().getStringExtra(“deviceId“));
Button btnShaKong = (Button) findViewById(R.id.sakong);
btnShaKong.setonclickListener(new onclickListener() {
@Override
public void onclick(View arg0) {
int ret = IDpsdkCore.DPSDK_DisableAlarm(m_pDLLHandle 10*1000);
showToast(ret);
}
});
//回调
int nRet = IDpsdkCore.DPSDK_SetDPSDKAlarmCallback(m_pDLLHandlenew fDPSDKAlarmCallback(){
@Override
public void invoke(int nPDLLHandle byte[] szAlarmId
int nDeviceType byte[
相关资源
- spydroid实时视频监控实测可用
- java视频监控实现原理,实现视频报警
- java视频监控系统中报警录像功能的实
- android手机的远程视频监控系统
- 基于android无线视频监控的设计与实现
- Android应用源码之手机实时视频监控项
- 大华摄像头视频监控OCX控件WEB3.0.接口
- 基于android手机的远程视频监控系统
- 基于android的远程视频监控系统
- 远程视频监控
- 远程视频监控客户端和服务器端
- 视频监控客户端与服务器端
- 视频监控相关源码
- android端视频监控
- android IP Camera 视频监控
- 基于android的远程视频监控系统
- 基于android手机的远程视频监控系统
- IP Camera实时视频监控(android 源码)
评论
共有 条评论