1. Introducing Channels - a new way to chat with other Android users!
    Dismiss Notice

Thumbnails Problems


Last Updated:

  1. Cpouwels

    Cpouwels New Member This Topic's Starter

    Joined:
    Apr 15, 2009
    Messages:
    1
    Likes Received:
    0
    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...