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 <vinny.s...@gmail.com> 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 <wrt.su...@gmail.com> wrote: > > > Any guy knows how to check if sdcard is mounted in program > > > Thanks in advance! > > -- > Regards > ------------------- > Desu Vinod Kumar > vinny.s...@gmail.com > 09916009493 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---