Hi Steven, Thanks for your reply,
I included the data scheme tag in AndroidManifest.xml sometime it don't receive any broadcast message, after rebooting the i can receive broadcast message thanks Rajesh On Oct 4, 10:54 am, Studio LFP <studio....@gmail.com> wrote: > > You can't register for MEDIA_* intents in the AndroidManifest.xml. You > > can only register for them in code, and you will only get the > > onReceive call if you are still running. (There shouldn't be a need to > > get sd card state if you are not running) > > I'm pretty sure this is incorrect. You can receive media broadcasts via > intents in the AndroidManifest.xml. > > Rajesh, > > Are you making sure to include the data scheme tag? > > <receiver android:name=".MediaReceiver"> > <intent-filter> > <action android:name="android.intent.action.MEDIA_EJECT"/> > <action android:name="android.intent.action.MEDIA_MOUNTED" /> > *<data android:scheme="file" />* > </intent-filter> > </receiver> > > Steven > Studio LFPhttp://www.studio-lfp.com -- 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