Hello Friends,
One of my friend using Image Loader class to load an image from an url and displaying it
in a list view. She told me that the Image Loader is loading the image on an emulator, when
she run the app on a real device it's not loading any image.(Just showing the default image).
This problem occurs only when we didn't pass the permission in AndroidManifest.xml file.
When I saw her code I found following permission is missing..
After adding this , the problem is resolved and the the app is working fine on
both emulator as well as on real device.
This issued is faced by most of the android developer , So always remember add
all permission while using lazy Image loader class.
Enjoy.... :)
Happy Coding....
One of my friend using Image Loader class to load an image from an url and displaying it
in a list view. She told me that the Image Loader is loading the image on an emulator, when
she run the app on a real device it's not loading any image.(Just showing the default image).
This problem occurs only when we didn't pass the permission in AndroidManifest.xml file.
When I saw her code I found following permission is missing..
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
After adding this , the problem is resolved and the the app is working fine on
both emulator as well as on real device.
This issued is faced by most of the android developer , So always remember add
all permission while using lazy Image loader class.
Enjoy.... :)
Happy Coding....
Hi Mukesh,
ReplyDeleteYou have did excellent work by providing such a good examples thanks a lot for it. I have one question. what is the best way to cache web response in android BufferedInputStream or Sqlite. also pls provide some example code for it if you can. Thank in advance..
Thanks Murlidhar,
ReplyDeleteI think sqlite is the best way bcoz its worked on offline two.