thanx a lot dude ..

On Thu, May 5, 2011 at 01:27, Streets Of Boston <flyingdutc...@gmail.com>wrote:

> '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 android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to