I made a widget which reads an image from internal storage and displays it in an ImageView. It is working fine on the emulator (Android 2.3.3. API Level 10) but when I run it on my device (Droid Razr Android 2.3.6), it does not display the image. The widget is there on the screen but its just blank. Other parts of the widget are working fine like the Configuration Activity etc. Only the image is not appearing. What could be wrong ?
Thanks for your help!
Okay I fixed it. In my Storage class through which I store and read images from internal memory, there is a function that takes the fileName as a parameter. Now this fileName was to be used when making the final call to store it. Instead, I had written “fileName”. So there was only one file in the storage named fileName. This led to problems when reading from the storage using the actual fileName.