智能车控制程序设计(Android)(二)赵航涛2016-4提纲1、蓝牙与KL25连接2、UI设计与实现3、菜单设计与实现4、主Activity程序实现5、简单通讯协议6、控制按钮监听事件程序实现4、、、onCreate()、onStart()、onResume()、setupChat()、onActivityResult()、onCreateOptionsMenu()、handleMessage()、sendMessage()、;;;;;;;;;;;;;;;;;;;;;;;;;、onCreate()publicvoidonCreate(BundlesavedInstanceState){ (savedInstanceState); requestWindowFeature(); setContentView(); getWindow().setFeatureInt(, ); mTitle=(TextView)findViewById(); (); mTitle=(TextView)findViewById(); mBluetoothAdapter= (); if(mBluetoothAdapter==null){ (this,"蓝牙是不可用的",).show(); finish(); return; }}、onStart()publicvoidonStart(){ (); if(!()){ IntentenableIntent=newIntent( ); startActivityForResult(enableIntent,REQUEST_ENABLE_BT); }else{ if(mChatService==null) setupChat(); } }、onResume()publicsynchronizedvoidonResume(){ (); if(D) (TAG,"+ONRESUME+"); if(mChatService!=null){ if(
移动端控制软件Activit开发 来自淘豆网m.daumloan.com转载请标明出处.