Thank u i understand On Oct 28, 8:53 pm, Streets Of Boston <flyingdutc...@gmail.com> wrote: > You'd have to register your broadcaster in your > code:http://groups.google.com/group/android-developers/browse_frm/thread/c... > > On Oct 28, 4:53 am, Karteek N <kartee...@gmail.com> wrote: > > > 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