downloading an image

by Will » Mon, 02 Mar 2009 11:25:24 GMT

Sponsored Links
 How do I download an image? Is there an easy way, given a URL, to
download a .jpg into res/drawable?
I'm trying to download an image and then display it. I'm using a class
that I've tested (but not on android) that downloads an image to a
specified path. When I run it in android, the image doesn't download.
Any help would be SUPER.


Other Threads

1. Can you detect a touch to the screen when the screen is off? (Wake up screen with a touch)

I was wondering if it was possible to detect a touch of the screen
when the screen is off.

I know this doesn't make sense for most apps (if its in your pocket
you dont want it to register touches when off) but for the app im
developing i need/want it to.
The phone is going to be left on the table when this app is used,
usually in the dark, and so want to turn the screen off whilst its not
being used (so the light doesn't distract you), but i don't want the
normal screen lock to come on, i want to be able to just touch the
screen and it comes back to life.

One option would be to just make the screen back, but still on, i
don't really want this option because power is still used, and black
isnt properly black it has a glow to it. I would like to have a screen
that is off, but touchable, anyone out there got any ideas?

Many thanks


2. Google Maps API hidden maps and opengl

I'm trying to create a MapView in a service (live wallpaper), but have
it hidden so that I can render it to a Bitmap, and then map it to a
texture to render in opengl. I have a Canvas and a Bitmap, and I
intended to call myMap.draw(myCanvas) in order to get it into the
correct bitmap so that I could then bind it as a texture.

When I Initialize I do the following

 myMap = new MapView(ctx, APPSTATICS.MAP_API_KEY);

I get an error

java.lang.RuntimeException: stub
   at<init> (Unknown Source)

Any idea why I can't create a new mapview which I can use to draw to a
offscreen bitmap?

   Adam Hammer


3. unable to retrieve Gps data

4. App rotation problem

5. How can i listen Outgoing calls.

6. Install Android on Samsung S5620, can we ?

7. How to Show a pdf file in Android Emulator?