[android-developers] Re: AsyncTask null exception for the activity reference in the doInBackground method while rotating.
activity#getApplicationContext returns the Application context, which
is a reference to this class, http://developer.android.com/reference/android/app/Application.html,
and is available for the livetime of your application.
On Oct 26, 11:40 am, Bluemercury <joao.ro...@gmail.com> wrote:
> Also wouldnt using the activity.getApplicationContext() result in the same
> problem??? if activity is null i would stil lget the null exception???
>
> regards,
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home