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
"android.provider.MediaStore.Images.Media.insertImage(ContentResolver
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?

thanks.
--~--~---------~--~----~------------~-------~--~----~



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. Trouble in generating the MD5 Fingerprint for SDK Debug Certificate to work on map API's

i used linux ubuntu 10.10....... my android debug.keystore is in the 
location~/.android/debug.keystore.

i used the following terminal commands as explained in 
http://code.google.com/android/add-ons/google-apis/mapkey.html

rakib@rakib-laptop:~/.android$ \

and it returns the following error

list: unrecognized option '-keypass'
list: Try 'list -help' for more information

i have no idea why this is not recognizing the option -keypass....... 
EVERYONE else is using this.

-- 

2. Camera preview frame rate very low

Hi All,

  Using camera application available in the froyo build, I was able to 
stream VGA frame at 7 fps maximum.
 But my sensor streaming frame rate at 30 fps. How to optimize the 
camera application ?


*Test environment: *
  Board : Omap3evm board.
  Application : Default camera application came with froyo distribution.

I googled the same problem and got some patches available for ecliar.
http://code.google.com/p/android/issues/detail?id=2794

Like this similar patch available for froyo too ?

Thanks and regards,
Ananth.

--

3. Could anyone tell me what i need to develop this app...?

4. Fwd: Downloading Linux kernel meant for Android

5. WiFi gets jammed in "turning off" state

6. Samsung Galaxy S II

7. Reducing resource folder size from apk