移除SD卡后,程序直接被杀掉了,求解
--------------------编程问答-------------------- --------------------编程问答-------------------- 是你的程序抛异常被强制关闭吧 --------------------编程问答-------------------- 程序在读SD卡,你非正常卸载,其实这时候是Busy态不允许卸载,那么肯定会出现:E/ProcessKiller( 2176): Process com.android.xxx (2866) has open file
xxxxxxxx
W/ProcessKiller( 2176): Sending SIGHUP to process 2866
I/ActivityManager( 2250): Process com.android.xxx(pid 2866) has died.
试一试android.intent.action.MEDIA_BAD_REMOVAL,然后做些保护处理
补充:移动开发 , Android