>
> 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 LFP
http://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 [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