[android-developers] Re: Easiest way to know if SD card has been prepared?

2010-09-15 Thread HaMMeReD
Perfect, the getExternalStorageState tells me everything I need to fix
my bug, thanks.

Adam

On Sep 15, 7:51 am, Kumar Bibek  wrote:
> I guess, you can also check for Broadcasts, if you mount-remount your
> sdcard frequently when your application/service is running.
>
> But, checking for the storage state is the surest way.
>
> -Kumar Bibekhttp://techdroid.kbeanie.com
>
> On Sep 15, 4:51 pm, Mark Murphy  wrote:
>
> > On Wed, Sep 15, 2010 at 7:46 AM, HaMMeReD  wrote:
> > > How would one know if the SD card has been mounted at startup.
>
> > Environment.getExternalStorageState().
>
> > > Perhaps some sort of callback/event/message that I can grab that tells
> > > me when SD has been mounted/unmounted?
>
> > See the ACTION_MEDIA_* broadcast Intents, documented on the Intent class:
>
> >http://developer.android.com/reference/android/content/Intent.html
>
> > --
> > Mark Murphy (a Commons 
> > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy

-- 
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


[android-developers] Re: Easiest way to know if SD card has been prepared?

2010-09-15 Thread Kumar Bibek
I guess, you can also check for Broadcasts, if you mount-remount your
sdcard frequently when your application/service is running.

But, checking for the storage state is the surest way.

-Kumar Bibek
http://techdroid.kbeanie.com

On Sep 15, 4:51 pm, Mark Murphy  wrote:
> On Wed, Sep 15, 2010 at 7:46 AM, HaMMeReD  wrote:
> > How would one know if the SD card has been mounted at startup.
>
> Environment.getExternalStorageState().
>
> > Perhaps some sort of callback/event/message that I can grab that tells
> > me when SD has been mounted/unmounted?
>
> See the ACTION_MEDIA_* broadcast Intents, documented on the Intent class:
>
> http://developer.android.com/reference/android/content/Intent.html
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy

-- 
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