Or, as code: if ( !android.os.Environment.getExternalStorageState().equals (android.os.Environment.MEDIA_MOUNTED) ) { ... SD card is not mounted }
works perfectly... On Apr 16, 9:37 pm, Jean-Baptiste Queru <j...@android.com> wrote: > Environment.getExternalStorageState() > > JBQ > > On Thu, Apr 16, 2009 at 9:34 PM, sunwrt <wrt.su...@gmail.com> wrote: > > > Any guy knows how to check if sdcard is mounted in program > > > Thanks in advance! > > -- > Jean-Baptiste M. "JBQ" Queru > Android Engineer, Google. > > Questions sent directly to me that have no reason for being private > will likely get ignored or forwarded to a public forum with no further > warning. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---