首页 > 移动平台 > 详细

android蓝牙传输文件过程中关机,开机后状态栏没有对应通知

时间:2014-09-10 10:54:40      阅读:323      评论:0      收藏: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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!