Chinaunix首页 | 论坛 | 博客
  • 博客访问: 353628
  • 博文数量: 570
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 10
  • 用 户 组: 普通用户
  • 注册时间: 2015-11-17 10:38
文章分类

全部博文(570)

文章存档

2015年(570)

我的朋友

分类: LINUX

2015-11-17 10:48:26

--- 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);
             }
阅读(367) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~