android蓝牙传输文件过程中关机,开机后状态栏没有对应通知
if (action.equals(BluetoothAdapter.ACTION_STATE_CHANGED))
Modify to
if (action.equals(Intent.ACTION_BOOT_COMPLETED)){
if (FeatureOption.MTK_BT_PROFILE_OPP && btAdapter != null && btAdapter.isEnabled()) {
OppLog.i("ACTION_BOOT_COMPLETED, btAdapter.isEnabled ");
context.startService(new Intent(context, OppService.class));
}//Receive the system reboot Intent and start the opp service
} else if (action.equals(BluetoothAdapter.ACTION_STATE_CHANGED))
2. 修改alps/mediatek/packages/apps/Bluetooth/profiles/opp/AndroidManifest.xml
<action android:name="android.intent.action.BOOT_COMPLETED" /> in OppReceiver
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。