[android-developers] Re: refresh gallery after saving photo in android
HI Kostya, No. I guess I don't know how to use MediaScannerConnection to do what I am trying to do. Is there an example that you can point me to for my better understanding? That will be helpful. THanks Abhi On Nov 4, 4:21 pm, Kostya Vasilyev kmans...@gmail.com wrote: Have you actually tried to use MediaScannerConnection? -- Kostya 04.11.2010 23:13, Abhi пишет: HI guys, I am coming back to this topic after unsuccessfully looking out for a solution myself. Does anyone have a clue yet? THanks, SHarma On Sep 20, 10:58 am, Kostya Vasilyevkmans...@gmail.com wrote: http://developer.android.com/reference/android/media/MediaScannerConn... 20.09.2010 18:41, Abhi пишет: I am looking for the same answer. On Aug 29, 2:26 pm, Patrickpatrick.manges...@gmail.com wrote: I wanted to bring up this querstion again, since I stumble upon the same problem but still haven't found a solution. Does anyone know how to programmaticallyrefreshagalleryafter storing a photo? On Jul 1, 2:45 am, Julianlepin...@gmail.com wrote: Well, for starters most of the code samples include file:// before the path in Uri.parse, so you might want to add that. That said, I'm not having much luck forcing a rescan of a particular folder on the SD card... On Jun 7, 1:19 am, Andy Tribolettiandy.tribole...@gmail.com wrote: Hi, I have an application where I want to have the ability for the user to save one of the photos they are viewing to their phone locally. I got saving working, and now I want to automaticallyrefreshso they don't have to turn off their phone before it shows up in thegallery. I googled around and saw this: sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED, Uri.parse(Environment.getExternalStorageDirectory().getAbsolutePath() ))); I tried doing that, but it didn'trefreshfor me. Does anyone have any ideas? -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- 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
[android-developers] Re: refresh gallery after saving photo in android
HI guys, I am coming back to this topic after unsuccessfully looking out for a solution myself. Does anyone have a clue yet? THanks, SHarma On Sep 20, 10:58 am, Kostya Vasilyev kmans...@gmail.com wrote: http://developer.android.com/reference/android/media/MediaScannerConn... 20.09.2010 18:41, Abhi пишет: I am looking for the same answer. On Aug 29, 2:26 pm, Patrickpatrick.manges...@gmail.com wrote: I wanted to bring up this querstion again, since I stumble upon the same problem but still haven't found a solution. Does anyone know how to programmaticallyrefreshagalleryafter storing a photo? On Jul 1, 2:45 am, Julianlepin...@gmail.com wrote: Well, for starters most of the code samples include file:// before the path in Uri.parse, so you might want to add that. That said, I'm not having much luck forcing a rescan of a particular folder on the SD card... On Jun 7, 1:19 am, Andy Tribolettiandy.tribole...@gmail.com wrote: Hi, I have an application where I want to have the ability for the user to save one of the photos they are viewing to their phone locally. I got saving working, and now I want to automaticallyrefreshso they don't have to turn off their phone before it shows up in thegallery. I googled around and saw this: sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED, Uri.parse(Environment.getExternalStorageDirectory().getAbsolutePath() ))); I tried doing that, but it didn'trefreshfor me. Does anyone have any ideas? -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- 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
Re: [android-developers] Re: refresh gallery after saving photo in android
Have you actually tried to use MediaScannerConnection? -- Kostya 04.11.2010 23:13, Abhi пишет: HI guys, I am coming back to this topic after unsuccessfully looking out for a solution myself. Does anyone have a clue yet? THanks, SHarma On Sep 20, 10:58 am, Kostya Vasilyevkmans...@gmail.com wrote: http://developer.android.com/reference/android/media/MediaScannerConn... 20.09.2010 18:41, Abhi пишет: I am looking for the same answer. On Aug 29, 2:26 pm, Patrickpatrick.manges...@gmail.comwrote: I wanted to bring up this querstion again, since I stumble upon the same problem but still haven't found a solution. Does anyone know how to programmaticallyrefreshagalleryafter storing a photo? On Jul 1, 2:45 am, Julianlepin...@gmail.comwrote: Well, for starters most of the code samples include file:// before the path in Uri.parse, so you might want to add that. That said, I'm not having much luck forcing a rescan of a particular folder on the SD card... On Jun 7, 1:19 am, Andy Tribolettiandy.tribole...@gmail.comwrote: Hi, I have an application where I want to have the ability for the user to save one of the photos they are viewing to their phone locally. I got saving working, and now I want to automaticallyrefreshso they don't have to turn off their phone before it shows up in thegallery. I googled around and saw this: sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED, Uri.parse(Environment.getExternalStorageDirectory().getAbsolutePath() ))); I tried doing that, but it didn'trefreshfor me. Does anyone have any ideas? -- Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- 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
[android-developers] Re: refresh gallery after saving photo in android
I am looking for the same answer. On Aug 29, 2:26 pm, Patrick patrick.manges...@gmail.com wrote: I wanted to bring up this querstion again, since I stumble upon the same problem but still haven't found a solution. Does anyone know how to programmaticallyrefreshagalleryafter storing a photo? On Jul 1, 2:45 am, Julian lepin...@gmail.com wrote: Well, for starters most of the code samples include file:// before the path in Uri.parse, so you might want to add that. That said, I'm not having much luck forcing a rescan of a particular folder on the SD card... On Jun 7, 1:19 am, Andy Triboletti andy.tribole...@gmail.com wrote: Hi, I have an application where I want to have the ability for the user to save one of the photos they are viewing to their phone locally. I got saving working, and now I want to automaticallyrefreshso they don't have to turn off their phone before it shows up in thegallery. I googled around and saw this: sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED, Uri.parse(Environment.getExternalStorageDirectory().getAbsolutePath() ))); I tried doing that, but it didn'trefreshfor me. Does anyone have any ideas? -- 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
Re: [android-developers] Re: refresh gallery after saving photo in android
http://developer.android.com/reference/android/media/MediaScannerConnection.html 20.09.2010 18:41, Abhi пишет: I am looking for the same answer. On Aug 29, 2:26 pm, Patrickpatrick.manges...@gmail.com wrote: I wanted to bring up this querstion again, since I stumble upon the same problem but still haven't found a solution. Does anyone know how to programmaticallyrefreshagalleryafter storing a photo? On Jul 1, 2:45 am, Julianlepin...@gmail.com wrote: Well, for starters most of the code samples include file:// before the path in Uri.parse, so you might want to add that. That said, I'm not having much luck forcing a rescan of a particular folder on the SD card... On Jun 7, 1:19 am, Andy Tribolettiandy.tribole...@gmail.com wrote: Hi, I have an application where I want to have the ability for the user to save one of the photos they are viewing to their phone locally. I got saving working, and now I want to automaticallyrefreshso they don't have to turn off their phone before it shows up in thegallery. I googled around and saw this: sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED, Uri.parse(Environment.getExternalStorageDirectory().getAbsolutePath() ))); I tried doing that, but it didn'trefreshfor me. Does anyone have any ideas? -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- 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
[android-developers] Re: refresh gallery after saving photo in android
I wanted to bring up this querstion again, since I stumble upon the same problem but still haven't found a solution. Does anyone know how to programmatically refresh a gallery after storing a photo? On Jul 1, 2:45 am, Julian lepin...@gmail.com wrote: Well, for starters most of the code samples include file:// before the path in Uri.parse, so you might want to add that. That said, I'm not having much luck forcing a rescan of a particular folder on the SD card... On Jun 7, 1:19 am, Andy Triboletti andy.tribole...@gmail.com wrote: Hi, I have an application where I want to have the ability for the user to save one of the photos they are viewing to their phone locally. I got saving working, and now I want to automaticallyrefreshso they don't have to turn off their phone before it shows up in thegallery. I googled around and saw this: sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED, Uri.parse(Environment.getExternalStorageDirectory().getAbsolutePath() ))); I tried doing that, but it didn'trefreshfor me. Does anyone have any ideas? -- 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
[android-developers] Re: refresh gallery after saving photo in android
Well, for starters most of the code samples include file:// before the path in Uri.parse, so you might want to add that. That said, I'm not having much luck forcing a rescan of a particular folder on the SD card... On Jun 7, 1:19 am, Andy Triboletti andy.tribole...@gmail.com wrote: Hi, I have an application where I want to have the ability for the user to save one of the photos they are viewing to their phone locally. I got saving working, and now I want to automatically refresh so they don't have to turn off their phone before it shows up in the gallery. I googled around and saw this: sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED, Uri.parse(Environment.getExternalStorageDirectory().getAbsolutePath() ))); I tried doing that, but it didn't refresh for me. Does anyone have any ideas? -- 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