--- 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);
}手机蓝牙配对,重新上传失败的文件,弹出抱歉,蓝牙已停止运行
最新推荐文章于 2024-08-03 19:18:55 发布
本文介绍了一种改进的蓝牙BIP文件分享功能实现方法。通过新增ACTION_SEND_BIP_FILES广播动作,使得应用程序能够发送BIP文件。此功能通过Intent传递,并附加必要的Bundle数据来完成文件分享。
9357

被折叠的 条评论
为什么被折叠?



