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

Hi,

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.

Thanks
--~--~---------~--~----~------------~-------~--~----~

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);
d.setTitle(R.string.MeetingDetails);
d.setContentView(R.layout.meeting_detail);

TextView tv = (TextView) findViewById(R.id.MDDateVALUE);
tv.setText("TEST");

d.show();

and my meetind_detail.xml file :

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    >

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


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 :)

Geoffrey.

--~--~---------~--~----~------------~-------~--~----~

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