1) You are right.
2) 
http://developer.android.com/reference/android/content/Context.html#getApplicationContext%28%29

On Fri, Sep 25, 2009 at 6:48 PM, Daniele Baroncelli
<[email protected]> wrote:
>
>> i put up the progress dialog in the onPreExecute(). the activity can
>> then just call execute(), and is otherwise decoupled from the task
>> entirely.
>>
>> i do all my HTTP stuff this way.
>
>
> I am definitely missing somethings, as I don't understand how I can
> show the progress dialog in the onPreExecute()
>
> 1) if the progress dialog is passed as a parameter to the asynctask:
> how can you access that parameter from the preExecute?
> as far as I understood you can access the parameters only from the
> doInBackground() method
>
> 2) if the progress dialof is instantiated in the onPreExecute():
> which value did you use for the context parameter required in the
> costructor ProgressDialog(Context) ?
>
> I'll be very glad to anyone who would clear these doubts out
>
> Cheers
>
> Daniele
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to