Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1379657
  • 博文数量: 860
  • 博客积分: 425
  • 博客等级: 下士
  • 技术积分: 1464
  • 用 户 组: 普通用户
  • 注册时间: 2011-08-20 19:57
个人简介

对技术执着

文章分类

全部博文(860)

文章存档

2019年(16)

2018年(12)

2015年(732)

2013年(85)

2012年(15)

我的朋友

分类: LINUX

2015-07-08 17:44:51

--- a/mediatek/source/packages/Bluetooth/common/bt40/src/com/mediatek/bluetooth/BluetoothShareGatewayActivity.java
+++ b/mediatek/source/packages/Bluetooth/common/bt40/src/com/mediatek/bluetooth/BluetoothShareGatewayActivity.java
@@ -69,6 +69,8 @@ public class BluetoothShareGatewayActivity extends Activity {
public static final String ACTION_SETTINGS = "com.mediatek.bluetooth.sharegateway.action.ACTION_SETTINGS";

public static final String ACTION_SEND = "com.mediatek.bluetooth.sharegateway.action.SEND";
+
+ private static final String ACTION_SEND_BIP_FILES = "com.mediatek.bluetooth.sharegateway.action.ACTION_SEND_BIP_FILES"; //add by zhengconglong

private static final int BLUETOOTH_DEVICE_REQUEST = 1;

@@ -313,7 +315,14 @@ public class BluetoothShareGatewayActivity extends Activity {
                  BluetoothUuid.containsAnyUuid(uuids, BIP_PROFILE_UUIDS))
             {
                 Xlog.v(TAG, "BIP is supported");
-                mIntent.setClassName("com.mediatek.bluetooth", "com.mediatek.bluetooth.bip.BipInitEntryActivity");
+                //mIntent.setClassName("com.mediatek.bluetooth", "com.mediatek.bluetooth.bip.BipInitEntryActivity");
+ Intent in = new Intent(ACTION_SEND_BIP_FILES);
+ Bundle intentBundle = new Bundle();
+ intentBundle.putParcelable("Intent", mIntent);
+ in.putExtras(intentBundle);
+ sendBroadcast(in);
             }
阅读(921) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~