android Programming Glossary: mworker
Is AsyncTask really conceptually flawed or am I just missing something? http://stackoverflow.com/questions/3357477/is-asynctask-really-conceptually-flawed-or-am-i-just-missing-something share improve this question How about something like this warning not tested class MyActivity extends Activity Worker mWorker static class Worker extends AsyncTask URL Integer Long MyActivity mActivity Worker MyActivity activity mActivity activity.. result bytes @Override protected void onCreate Bundle savedInstanceState super.onCreate savedInstanceState mWorker Worker getLastNonConfigurationInstance if mWorker null mWorker.mActivity this ... @Override public Object onRetainNonConfigurationInstance.. onCreate Bundle savedInstanceState super.onCreate savedInstanceState mWorker Worker getLastNonConfigurationInstance if mWorker null mWorker.mActivity this ... @Override public Object onRetainNonConfigurationInstance return mWorker @Override protected..
|