• 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
Jul 29, 2010
3
0
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.
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones