It seems that your activity is being recreated on orientation changes because this configuration change is not declared on the manifest, and the post execute is called after the activity is destroyed. To check that, put log messages on the onCreate, onConfigurationChanged and onDestroy activity methods (you might need to override those functions and don't forget to call super implementation if so). Those logs along with the exception logging will say if the crash happened after the activity is destroyed and if it's been created multiple times to react to the orientation change. Hope it helps you investigating. Let us know
- Fernando On Feb 23, 10:00 pm, TreKing <[email protected]> wrote: > On Tue, Feb 22, 2011 at 11:58 PM, Manish Garg <[email protected]>wrote: > > > If user change the orientation at the time of fetching and onPostExecute > > get called after orientation change, my application is crashing. > > Try this first.http://www.google.com/search?q=asynctask+orientation+change > > --------------------------------------------------------------------------- > ---------------------- > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago > transit tracking app for Android-powered devices -- 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

