Reading an image from SDCARD

Put your problem here if it does not fit any of the other categories.

Reading an image from SDCARD

Postby pramod1561 » Sun May 30, 2010 6:02 pm

Hi,

I am developing a quiz application. I need to read an image from SDCard and put the thumbnail of the image in the quiz card. When the user clicks on the thumbnail, the full image should be shown. I am pretty new to android. Can someone tell me how I can get a thumbnail view and show the full image when clicked. Any help is appreciated.

Regards,
Pramod
pramod1561
Freshman
Freshman
 
Posts: 2
Joined: Mon May 17, 2010 9:46 pm

Top

Re: Reading an image from SDCARD

Postby vengeance_mj » Mon May 31, 2010 6:41 am

I do not think there is a thumbnail view in Android.At least I do not have the knowledge of it. The one thing you can do is get the Image dimensions and try to set 20% of its height and width in the ImageView. You can then add an onClickListener on it and expand it to its full dimension either by redrawing the canvas or opening up a different activity.
vengeance_mj
Senior Developer
Senior Developer
 
Posts: 174
Joined: Thu Oct 29, 2009 2:32 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 19 guests