jerry wrote:
> I want to know the state of SD card is dynamic mounted or not mounted?
> it's very kind of you if you can give me a demo(for example, use api
> registerReceiver、BroadcastReceiver、onReceive and so on).

Look at the ACTION_MEDIA_* series of Intent actions:

http://developer.android.com/intl/zh-CN/reference/android/content/Intent.html

For examples of using broadcast receivers, both those registered in the
manifest or those using registerReceiver(), I have some examples from my
Advanced Android book up on github:

http://github.com/commonsguy/cw-advandroid/tree/e50e087577f8b28e727355c55097a5da2577d6d3/SystemEvents

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android App Developer Training: http://commonsware.com/training.html

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