I'm trying to perform an HTTP get request, to download something from a web page (text or image).
What I need is to build a class that allows me to do that and use it in my app when i need it.
The idea is to have two methods:
to download text from a url (return me a String)
to download image (return me a Bitmap)
Example: I have a URL where there is an image, I use my method downloadBitmap()
to get it and then i can do what I want. Like put it into an ImageView
for display.
Sample code is appreciated.