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. did someone implement a ScrollView with horizontal scroll support?


It looks like the standard ScrollView does not support horizontal
scroll. Has anyone implement a ScrollView with horizontal scroll
support? It would be appreciated if you can share it.


2. Problem with textview in a Dialog

Hi everyone :)

I'm a real beginner in Android and find it really coll but I do have
one problem :

This is what I'm trying to do : set the dialog content view whos
description is in a XML file and change the value of some of those
textfield. Like this :

Dialog d = new Dialog(context);

TextView tv = (TextView) findViewById(;

and my meetind_detail.xml file :

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="

<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content" android:id="@+id/MDDate"
<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content" android:id="@+id/MDDateVALUE" ></

But when calling the setText(...) method on the "tv" object I got a
NullPointerException because tv is null.
I guess the view is not loaded yet and therefore the textfield doesnt
exists yet.

What am I supposed to do ?

Thanks a lot everyone for your help :)



3. Enable/Disable "Require Pattern"

4. Invalid Phone Numbers Problem [SOLVED]

5. 3D modeling library for Opengles in Android

6. EditText appearance

7. Help me plz