Friday, April 27, 2012

Show Image from SDCard in Android


File imageFile = new File("/mnt/sdcard/pawan.jpg");
if(imageFile.exists())
{
Bitmap myBitmap = BitmapFactory.decodeFile(imageFile.getAbsolutePath());

use this myBitmap object anywhere.
}

No comments:

Post a Comment