1. Check out our companion app, Forums for Android! Download from Google Play

Thumbnails Problems

Discussion in 'Android Apps & Games' started by Cpouwels, Apr 15, 2009.

  1. Cpouwels

    Cpouwels New Member
    Thread Starter
    5

    Apr 15, 2009
    1
    0
    5
    Hi,

    I have an problem using the MediaStore.Images.Media.insertImage Method
    I want to create my own camera/ image viewer app. I can open pictures created with the normal camera app. but when i try to use my own pictures i doens't ind any pictures same goes for the standard image viewer it also doesn't find any pictures. i found out that i didn't got any thumbnails.

    I tries to use the MediaStore.Images.Media.insertImage method. It does give me the thumbnails i need but also an extra photo and when i set the title and discription it doesnt use them.

    here is my code i use to save the Image.

    Bitmap photo = BitmapFactory.decodeByteArray(data, 0, data.length);
    String url = MediaStore.Images.Media.insertImage(cr,
    photo
    , "Title" + random.nextDouble(), "Discription");

    thanks for any help

    gr Cpouwels
     

    Advertisement

Share This Page

Loading...