How to cath android.intent.action.MEDIA_MOUNTED event I implemented an broadcast receiver to invoke when sdcard is mounted. But it is not invoked My source code is as follows MyMediaMountListener.java
public class MyMediaMountListener extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { Log.d("", "Media mounted"); } } AndroidManifest.xml <application android:icon="@drawable/icon" android:label="@string/app_name"> <activity android:name=".BackupActivity" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <receiver android:name="MyMediaMountListener"> <intent-filter> <action android:name="android.intent.action.MEDIA_MOUNTED"></action> </intent-filter> </receiver> </application> Any help please karteek -- 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