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