• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps App crash (or killed) when the device goes into USB mass storage mode

dtwchiu

Lurker
Hey guys and gals,

I am working on an application that reads/writes to SD card. However, I found that whenever the device goes into USB mass storage mode (with a log message mentioning a disk unmount), Android kills the app. I found it hard to believe that this is the Android behavior since this should be a very common use case. Is there any way to work around this? Or at least handle this more gracefully?

Thanks and happy Friday!

David.
 
Back
Top Bottom