[android-developers] Re: Resume activity while download

2012-02-08 Thread dnkoutso
You could start a service that uses your AsyncTask to do the job and 
reports the results to all the binders. I assume you want the download to 
continue even if the user leaves your Activity right?

-- 
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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Resume activity while download

2012-02-01 Thread Ed Harned
This open source project supports a general purpose multi-threading
service:
http://coopsoft.com/ar/AndroidArticle.html

Ed

On Jan 31, 10:21 am, TreKing treking...@gmail.com wrote:
 On Tue, Jan 31, 2012 at 9:10 AM, ColletJb collet...@gmail.com wrote:
  How could I handle the progress updates with a separated service ?
  With AIDL ?

 Check the Service documentation page. There is a LocalService example.

 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

-- 
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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Resume activity while download

2012-01-31 Thread ColletJb
With my current implementation, I use AsyncTask. It supports progress
updates and many other things.

How could I handle the progress updates with a separated service ?
With AIDL ?

Thanks for your help

On 31 jan, 15:59, TreKing treking...@gmail.com wrote:
 On Tue, Jan 31, 2012 at 8:01 AM, ColletJb collet...@gmail.com wrote:
  Can anyone help me with this ?

 Instead of background thread you probably want a background service, to
 which you bind and unbind as your details activity comes and goes. So the
 download logic and state is stored in the service and reflected in the
 Activity when the user comes back to it. Your Market example does this -
 you'll see the download / install progress as a notification as the
 (assumed) background service is doing its thing.

 --- 
 --
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

-- 
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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: Resume activity while download

2012-01-31 Thread TreKing
On Tue, Jan 31, 2012 at 9:10 AM, ColletJb collet...@gmail.com wrote:

 How could I handle the progress updates with a separated service ?
 With AIDL ?


Check the Service documentation page. There is a LocalService example.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en