资源简介
大华Android云台SDK含demo
大华Android云台SDK含demo
大华Android云台SDK含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.application.AppApplication;
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 = AppApplication.get().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
- 上一篇:android webview demo
- 下一篇:安卓流量监控Demo,包含论文
评论
共有 条评论