On Wed, Oct 26, 2011 at 11:31 AM, Bluemercury <[email protected]> wrote: > Well the thing is, this Asynctask is binded to a parent activity, that the > subactivities use when they want to do some background work. They each > implement the method you see in the code i've posted, > the activity.doBackGroundRequest(); > I've actually had errors even after the line if(activity!=null)...so how can > i synchronized the code...
Move the logic out of the activities and into other objects that will remain stable during configuration changes, such as the AsyncTask itself. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in NYC: http://marakana.com/training/android/ -- 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

