Hello guys,
I have an AsyncTask (in a separate file) which is invoked on an
activity. When I instantiate the AsyncTask, I send the activity as a
param. How can I access the acitivity's instance variables from the
onPostExecute method of the AsyncTask?
Thanks!
--
You received this message
On Mon, May 16, 2011 at 7:37 PM, elioncho elion...@gmail.com wrote:
I have an AsyncTask (in a separate file) which is invoked on an
activity. When I instantiate the AsyncTask, I send the activity as a
param. How can I access the acitivity's instance variables from the
onPostExecute method of
In addition to what Mark has pointed out keep in mind that when the
device is rotated the activity is restarted but not the asynctask. So
you will end up with a null activity variable. It is fairly well
documented on the android developer site how to deal with device
rotation or configuration
3 matches
Mail list logo