1. 程式人生 > >android 藍芽 獲取藍芽地址名字

android 藍芽 獲取藍芽地址名字

protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    super.onActivityResult(requestCode, resultCode, data);
    if(RESULE_OPEN==0x01){
         if(resultCode==RESULT_CANCELED){
             showToest("請求失敗");
         }else{
             showToest("請求成功...");
         }
    }
}

public void  
showToest(String mgs){ Toast.makeText(MainActivity.this,mgs,Toast.LENGTH_LONG).show(); }