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 <[email protected]> wrote:
> On Wed, Sep 15, 2010 at 7:46 AM, HaMMeReD <[email protected]> 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 [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

Reply via email to