Answer the question
In order to leave comments, you need to log in
Why doesn't loading an image from a file work?
Here is the code:
Bitmap result = BitmapFactory.decodeFile("/data/data/com.lizaalert/cache/14350.jpg");
if(result == null){
Log.e(MainActivity.TAG, "onPostExecute::BitmapFactory Bitmap result == null" );
}
ImageView iv = (ImageView) findViewById(R.id.imageView1);
iv.setImageBitmap(result);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question