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. activity animation

How to animate activity entrance and exit?
And activity relaunch after onNewIntent() ?

I used android:theme in the manifest file but it didn't work for me.


2. Lock_layer timed out


     I was not able to find any other POST with a possible "solution"
to this problem.
     My application CRASH when RETURNING from an ACTIVITY to ANOTHER.

    The message:
     lock_layer timed out (is the CPU pegged?) layer=0,
lcblk=0x42480020 state=0000003 (was 0000042)
     lock_layer() timed out but didn't appear to need to be locked and
we recovered (layer=0 lcblk=0x42480020 state=0000)

    The problem not always happens, so its intermittent.
    I made the code as simple as possible at onSTOP and onDESTROY. So
my code only goes at the BACK BUTTON handler.
    My code:

 public void onStop(){

protected void onDestroy() {

 public boolean onKeyDown(int keyCode, KeyEvent event)  {
        if (keyCode == KeyEvent.KEYCODE_BACK && event.getRepeatCount()
== 0) {
            // do something on back.
                Log.e("BACK PRESSED","BACK WAS PRESSED!");
                while (this.spriteRenderer.drawingState==true)
                        Log.e("OpenGLActivity","Waitting to UNLOCK AFTER END 
            return true;

        return super.onKeyDown(keyCode, event);

   The METHOD at UTIL class is:
    static void unLockScreen(WakeLock wl) {
                if (wl.isHeld())

     I'm not ASKING your help to CODE the solution for me.
     Just let me know WHY I HAVE THIS PROBLEM, and WHAT I SHOULD DO to
     (The ACTIVITY that CALLS this METHOD has a GLSurfaceView and I'm
using VBO to draw objects on screen)
     Thanks for your attention.
     Best regards,


3. JmDNS/zeroconf/Bonjour with Android SDK 2.0

4. touchscreen: getPressure and getSize should change as finger drags, yes?

5. Can't play any video on android 2.0 (AOSP)

6. Memory optimizations

7. super free register