Renaming Pictures

by ivan » Fri, 13 Feb 2009 07:33:28 GMT

Sponsored Links
 I'm writing a camera app that captures a jpeg and saves it to the
app's current working directory.  Then the app uses
cr, String imagePath, String name, String description)" to save a copy
of the picture to the media directory on the sdcard where the native
Camera stores it's images.  Everything works fine except for the fact
that the insertImage function disregards the name I use for the image
and gives the image some numerical name instead.

Has anyone successfully circumvented this issue?

... any thoughts or code snippets?


Renaming Pictures

by doubleslash » Sat, 07 Mar 2009 10:54:16 GMT

 I have tried to save an image using MediaStore just like you, but it
causes a camera crash. I have to restart the phone to see the inserted
image. If you can save a picture taken by the camera (inside
onPictureCallback) , could you show me how?
Thanks so much


Sponsored Links

Other Threads

1. Is MapController's zoomToSpan() execution deferred?

My application has a MapView which shows a collection of items in a
satellite view.  I use the MapController's zoomToSpan() method to
initialize the zoom level of MapView.  I later discovered that the
MapView was showing a blank white screen with grey X's (zoom'd too
far, zoom out once and everything looks as expected) for the use case
when the collection of item's locations were very close to each
other.  So, I modified the code from this:

mapController.zoomToSpan(latitudeDelta, longitudeDelta);

to this:

mapController.zoomToSpan(latitudeDelta, longitudeDelta);

if (mapView.getZoomLevel() > mapView.getMaxZoomLevel()) {

but, I still got the same result.  I added some debug before and after
the zoomToSpan() to retrieve the zoom level from MapView and noticed
that the zoom level did not change.  I'm guessing somehow that the
work is queued up??

I don't know if this information is important or not to this problem,
but I'll also mention that the MapView is created from a MapActivity
which is hosted in the tab host of a TabActivity that contains three
tabs, one of which is the map.  I searched this forum and elsewhere
and haven't seen anyone encounter such a problem before.  I'm hoping
someone can point me in the right direction.


2. Goodbye friends and thanks for all the help.

After yesterdays little farce,

and the total lack of care factor re: Google and developers in
countries unable to set up merchant accounts...

I've decided to shelve all my consumer Android projects and go back to
other platforms. Unfortunately, not all apps are suitable for all
revenue models. :(

and beer still needs real money.

When things change I will be back, as I still believe Android has a
fantastic potential that is only just beginning to be realised.

Just wanted to say thanks to everyone here for the help and the
general good feeling that exists in this forum.

Best Regards,



3. Porting Android 2.0 on Samsung 360 M1

4. Memory problem with UI elements

5. Launch Local Drawable Resource in the Gallery app Using Intents

6. does the USB Tethering implement by usbnet?

7. Android file system security