Wednesday, April 25, 2012

Android: Load bitmap from SD Card

       String fileSavePath = Environment.getExternalStorageDirectory() + "abc.png";
       Bitmap bitmap = BitmapFactory.decodeFile(fileSavePath);
       ImageView imageView = (ImageView)findViewById(R.id.imageview);
       imageView.setImageBitmap(bitmap);

No comments:

Post a Comment