[android-developers] Re: Download progress

2009-06-17 Thread bain
use AsyncTask.doInBackGround to download and launch progress bar in pre, end in post On Jun 17, 11:54 am, Ivan Soto wrote: > Hi, I'm trying to make my app display a download progress for bigger files. > But I can't figure how to make it work properly.The data is an image I plan > to set up as wa

[android-developers] Re: Download progress

2009-06-17 Thread Streets Of Boston
Why do you create a byte-array (content)? If the wall-paper is big, you're using quite a bit of extra memory. If you want to be able to monitor download progress, wrap it inside your own implementation of an input-stream URL url = new URL(address1); HttpURLConnection uc = (HttpUR

[android-developers] Re: Download progress

2009-06-17 Thread Ivan Soto
Considering I'm really new to Java, can you give me an example of how the implementation should be done? Thanks! Ivan Soto Fernandez Web Developer http://ivansotof.com On Wed, Jun 17, 2009 at 12:30 PM, Streets Of Boston wrote: > > Why do you create a byte-array (content)? If the wall-paper i