I tried like this but still its not working. Can u tell wedr i am
doing anything wrong.What i have to mention inside
onMediaScannerConnected()?

File file;
                        do {

                                picture_path = "/sdcard/upload" + i++ + ".jpg";

                                file = new File(picture_path);


                                        MediaScannerConnection scanner = new 
MediaScannerConnection
(ImageCapture.this,
                                                new 
MediaScannerConnectionClient() {

                                                        @Override
                                                        public void 
onMediaScannerConnected() {
                                                                
System.out.println("Connected"
                                                                                
+ (scanner.isConnected()));

                                                        }

                                                        @Override
                                                        public void 
onScanCompleted(String path, Uri uri) {
                                                                // TODO 
Auto-generated method stub

                                                        }

                                                });
                                scanner.connect();
                                scanner.scanFile(picture_path, "image/jpeg");
                                scanner.disconnect();
                        } while (file.exists());




On Jul 6, 12:40 pm, gjs <garyjamessi...@gmail.com> wrote:
> Hi,
>
> See android.media.MediaScannerConnection and scanFile(String path,
> String mimeType)
>
> Regards
>
> On Jul 6, 5:00 pm, Archana <archana.14n...@gmail.com> wrote:
>
> > Hi ,
>
> >     I am working with camera.. I am facing one problem during
> > capturingimage.Theimageis not saving directly to gallery.But when i
> > reboot my device its appearing..
>
> > Can anybody tell me why this happends.and How can i solve it.
>
> > Thanks
> > Archana
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to