wood burning stoves 2.0*
The moose likes Android and the fly likes Unable to get Bitmap image Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Unable to get Bitmap image " Watch "Unable to get Bitmap image " New topic
Author

Unable to get Bitmap image

Rohit Savant
Greenhorn

Joined: Oct 30, 2012
Posts: 15



Bitmap image=getBitmap(url);
I am trying to get image from rss feed. I managed to get the data.
But the image view remains Empty.Although the program does not crash.
I think i am fetching the image in wrong manner.

Thank you for your help in advance.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41046
    
  43
You should start by not ignoring exceptions. Instead, print a stack trace to the logcat output so that you'll know if something goes wrong.


Ping & DNS - my free Android networking tools app
Rohit Savant
Greenhorn

Joined: Oct 30, 2012
Posts: 15

Thank you for suggestion.
I wrote printstacktrace(). But there is no exception been thrown.



this is how i m setting the image.
 
Consider Paul's rocket mass heater.
 
subject: Unable to get Bitmap image
 
Similar Threads
How to set the bitmap height at runtime
java.lang.InternalError: array size too large
Creating a new Bitmap in xml by cropping an existing image
Text to Bitmap convertion
Giving path alias to network folder in server.xml