I think i have to call finish() and then somehow run the activity in order to show the updated list
On Thu, Mar 10, 2011 at 3:19 AM, Robin Talwar <r.o.b.i.n.abhis...@gmail.com>wrote: > Well this is what i got when i checked my logcat > > 03-10 03:17:27.732: ERROR/MediaScannerService(401): Failed to delete file > /data/data/com.android.providers.media/pause_scan > > when i start the intent again to check the list of tracks then i get this > error while if i restart the application then i don't see this > and see the updated list > > > On Thu, Mar 10, 2011 at 3:05 AM, Robin Talwar < > r.o.b.i.n.abhis...@gmail.com> wrote: > >> 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 < >> r.o.b.i.n.abhis...@gmail.com> 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 <treking...@gmail.com> wrote: >>> >>>> On Wed, Mar 9, 2011 at 2:35 PM, Robin Talwar < >>>> r.o.b.i.n.abhis...@gmail.com> 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 >>>> 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 >>>> >>> >>> >> > -- 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