'this' in an Activity refers to the Context, because an Activity is a Context (Activity extends Context). this.getApplicationContext() returns an Application. An Application is a Context as well.
But the ProgressDialog really likes an Activity, not just a Context. As you discovered, not just any Context will work correctly: If the Context is an Application, then you get a run-time error. -- 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

