Also, most of the time, you would want to register and IntentReceiver to be notified when SD card is unmounted.
On Apr 16, 10:27 pm, Desu Vinod Kumar <[email protected]> wrote: > public static boolean isSdPresent() { > returnandroid.os.Environment.getExternalStorageState().equals(android.os. > Environment.MEDIA_MOUNTED);} > > go through this > > http://code.google.com/android/reference/android/os/Environment.html > > On Fri, Apr 17, 2009 at 10:04 AM, sunwrt <[email protected]> wrote: > > > Any guy knows how to check if sdcard is mounted in program > > > Thanks in advance! > > -- > Regards > ------------------- > Desu Vinod Kumar > [email protected] > 09916009493 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

