On Sat, Dec 17, 2011 at 12:44 AM, TreKing <[email protected]> wrote:
> The user said he tried manually copying my app's folder to his computer and > then to the internal storage on the Gaxus, but it doesn't pick it up. > When he creates backup files on the new device, my app reports that it > succeeds, but the folder and data do not appear in the directory he has > access to, where it normally would with an ordinary SD card. He tried > searching and can't find my folder anywhere in the mounted drive. I haven't checked but it probably works the same way as in Honeycomb: since external storage is used over MTP, what is shown are not the actual files, but the contents of the Android media store DB. To have them show up, you need to explicitly invoke MediaScannerConnection.scanFile(). If he reboots the devices the files should show up, since, IIRC, it scans on startup. There is an example here: http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/content/ExternalStorage.html > > So apparently there's storage he has access to but it's not where the > external storage api points to? 'External' storage is under /mnt/sdcard so it shouldn't be different from previous versions. > Anyone else run into this yet? Any idea how I can get this guy to get his > old SD card data on to the new Nexus device? If he reboots, the files should show up. You might also want to update your app to do a scan before looking for backups. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

