multithreading - simultaneously download files in Android -


i'm writing app android device, simple download manager. want download 2/3 files simultaneously, i'm confused how it.

i don't want use async task because killed , want run download in background. think should use intentservice, can run 1 intentservice @ time. have 2 ideas, how it, don't know 1 choose. first run intentservice inside asynctask , second run thread inside intentservice. either ways don't know how inform intentservice new file download, while download running. or maybe should use traditional 'implement runnable'?

i'm writing app android 2.2, don't have downloadmanager service :/.

thanks in advance

asynctask want if download happens while activity up. don't forget though services can killed as application. option service spawns 1 thread per download.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -