[android-developers] Downloading file and asynctask opinion needed

2011-01-06 Thread Mystique
Hi, in my app I have an asynctask to download a file but the file size is only 50kb so it is almost instantaneous. Is worth worth to put it on async? Or I'm asking for trouble and should keep it simple? -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] Downloading file and asynctask opinion needed

2011-01-06 Thread TreKing
On Thu, Jan 6, 2011 at 11:02 PM, Mystique joven.ch...@gmail.com wrote: Hi, in my app I have an asynctask to download a file but the file size is only 50kb so it is almost instantaneous. How fast is it when there's little or no network connection?

Re: [android-developers] Downloading file and asynctask opinion needed

2011-01-06 Thread Marc Lester Tan
Yes, i think it's still better to keep it in asynctask as you will never know when the user is in high speed mobile internet or not and also not to block the ui thread. Marc On Fri, Jan 7, 2011 at 1:02 PM, Mystique joven.ch...@gmail.com wrote: Hi, in my app I have an asynctask to download a

Re: [android-developers] Downloading file and asynctask opinion needed

2011-01-06 Thread Frank Weiss
I suggest using AsyncTask for that, but keep it in the activity instead of a service. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group,