Hi All, I have an application which is using sdcard (reading data from sdcard). When I have kept my application open and If i connect my phone to pc as mass storage device android is killing my application. It is very true as I am using sdcard and android system wants to unmount the sdcard It must close all application. The point is how will my application know that system is killing my application so that I can properly exit.
I am not getting any of the action listed below because before getting all this intent system is killing my application as my app using sdcard. IntentFilter intentFilter = new IntentFilter(Intent.ACTION_MEDIA_MOUNTED); intentFilter.addAction(Intent.ACTION_MEDIA_UNMOUNTED); intentFilter.addAction(Intent.ACTION_MEDIA_SCANNER_STARTED); intentFilter.addAction(Intent.ACTION_MEDIA_SCANNER_FINISHED); intentFilter.addAction(Intent.ACTION_MEDIA_CHECKING); intentFilter.addAction(Intent.ACTION_MEDIA_EJECT); So is there any way to overcome it? May any signal catching calls in JAVA? Regards, Niral -- 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

