建議新手不用看。。。全篇沒啥用的東西,直接看代碼比這個快。核心部分的內(nèi)容都沒有,就是簡單的藍牙適配器操作打開關(guān)閉,與搜索。
2018-07-14
public void showToast(String msg){
Toast toast = Toast.makeText(this,msg,Toast.LENGTH_LONG);
toast.setGravity(Gravity.CENTER_HORIZONTAL,0,0);
toast.show();
}
Toast toast = Toast.makeText(this,msg,Toast.LENGTH_LONG);
toast.setGravity(Gravity.CENTER_HORIZONTAL,0,0);
toast.show();
}
2017-12-06