src/com/cooliris/media/ImageManager.java:
public static boolean hasStorage(boolean requireWriteAccess) { String state = Environment.getExternalStorageState(); if (Environment.MEDIA_MOUNTED.equals(state)) { if (requireWriteAccess) { boolean writable = checkFsWritable(); ....
所以去找 Environmemt.getExternalStorageState()..
core/java/android/os/Environment.java
public static String getExternalStorageState() { return getMediaState(EXTERNAL_STORAGE_DIRECTORY_EXTSD.getPath()); }
所以改這個 EXTSD, SD 就可以決定是用哪一個 SD slot 作判斷依據 (或是用 usb..)
但是如果要 MediaScanner Scan 的話,要改:
沒有留言:
張貼留言