N
N
Neic2015-06-30 10:27:53
Android
Neic, 2015-06-30 10:27:53

How to get the execution of an AsyncTask to a new activity?

How to get the result of a executed AsyncTask into a new activity after orientation change? Perhaps regular means is possible or is it better to use some libraries?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Ernesto Guevara, 2015-06-30
@guevara

developer.android.com/guide/topics/resources/runti...

V
Vladimir Yakushev, 2015-06-30
@VYakushev

The service will not help you either, because. when reconnecting the activity, you need to somehow reconnect to the task in order to get the result. It may also happen that the task ended somewhere in the process of reconnecting. So it is necessary to store the result somewhere for some time. Read habrahabr.ru/post/114570 , this solution helped me at one time.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question