Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/201.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在Android中更改蓝牙存储位置?_Android_Bluetooth_File Transfer - Fatal编程技术网

如何在Android中更改蓝牙存储位置?

如何在Android中更改蓝牙存储位置?,android,bluetooth,file-transfer,Android,Bluetooth,File Transfer,我有一份申请。它用于使用蓝牙发送和接收文件。我的问题是,我希望更改默认位置,以便在运行时使用蓝牙存储文件。你能告诉我,这种情况有可能吗?无法将其配置为Android 4.1 Jelly Bean: 使用随附的库存蓝牙接收器,您目前无法更改位置,因为它是硬编码的。您需要一个第三方应用程序,如蓝牙文件传输,可在此处配置 在./packages/apps/Bluetooth/src/com/android/Bluetooth/opp/中可以看到它 Constants.java定义如下: public

我有一份申请。它用于使用蓝牙发送和接收文件。我的问题是,我希望更改默认位置,以便在运行时使用蓝牙存储文件。你能告诉我,这种情况有可能吗?

无法将其配置为Android 4.1 Jelly Bean:

使用随附的库存蓝牙接收器,您目前无法更改位置,因为它是硬编码的。您需要一个第三方应用程序,如蓝牙文件传输,可在此处配置

在./packages/apps/Bluetooth/src/com/android/Bluetooth/opp/中可以看到它

Constants.java定义如下:

public static final String DEFAULT_STORE_SUBDIR = "/bluetooth";
BluetoothOppReceiveFileInfo.java没有位置开关:

File receiveFile = new File(uniqueFileName);
if (sDesiredStoragePath == null) {
    sDesiredStoragePath = Environment.getExternalStorageDirectory().getPath() +
        Constants.DEFAULT_STORE_SUBDIR;
}