Hello.
I have an activity that need long time query.

So, i query for partial data(need short time only) on
AsyncQueryHandler and displayed it's result on screen using
QueryAdapter.

Next, i query all data on AsynTask(query / get data on doInBackground,
display datas on onPostExecute).



It works asynchronously with Main thread well. i can display screen
very fast(although displaying data is not complete), can get UI
response well while AsyncTask working.



But, problem occur when i move to another activity(ex : press HOME
key) while AsyncTask working.
It wait until AsyncTask's background work(get data from cursor)
complete.



I tried to do background task on another Component(i used service).
but, it works same.


How can i start / use asynchronous working thread doesn't care owner
component's life cycle?
Thanks.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to