is this possible to save AsyncTask class object on rotation and reuse it again.
public class MyTask extends AsyncTask<Void, Void, Integer>
{
}
any good solution. Thanks
is this possible to save AsyncTask class object on rotation and reuse it again.
public class MyTask extends AsyncTask<Void, Void, Integer>
{
}
any good solution. Thanks
is this possible to save AsyncTask class object on rotation and reuse it again.
Use onRetainNonConfigurationInstance()
or a retained fragment.
thanks for reply but onRetainNonConfigurationInstance() deprecated after 3.0
That is because they recommend that you use a retained fragment instead. If you are not using fragments, use onRetainNonConfigurationInstance()
.