I needed to add the following code :-
sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED, Uri.parse("file://" +
Environment.getExternalStorageDirectory())));
in my class file and following in manifest :-<intent-filter> <action android:name="android.intent.action.MEDIA_MOUNTED" /> <data android:scheme="file" /> </intent-filter> But i can not get the updated list at that very instant On Thu, Mar 10, 2011 at 3:03 AM, Robin Talwar <[email protected]>wrote: > Thanks trekking > > I am able to update the music list now but to see the updated list now i > dont have to restart my phone but restart the application. > Well somewhat close but not enough :) > > > On Thu, Mar 10, 2011 at 2:17 AM, TreKing <[email protected]> wrote: > >> On Wed, Mar 9, 2011 at 2:35 PM, Robin Talwar < >> [email protected]> wrote: >> >>> But i want to update the list the time the user clicks the "Delete" >>> button. >> >> >> See if this helps: >> >> http://developer.android.com/reference/android/media/MediaScannerConnection.html >> >> >> ------------------------------------------------------------------------------------------------- >> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago >> transit tracking app for Android-powered devices >> >> -- >> 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 >> > > -- 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

