android蓝牙传输文件过程中关机,开机后状态栏没有对应通知
时间:
2014-09-10 10:54:40
阅读:
323
评论:
收藏:
0
[点我收藏+]
1. 修改OppReceiver.java
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 android蓝牙传输文件过程中关机,开机后状态栏没有对应通知
原文:http://blog.csdn.net/sergeycao/article/details/39177883