On Fri, Sep 10, 2010 at 9:56 AM, AndrĂ© <[email protected]> wrote:

> Can anyone wee what I'm doing wrong?


Best typo ever.

Also, I'm very confused on how you've coded this up. It's declared like an
AsyncTask, but the code executes as if it's an Activity. I'm assuming this
is an inner class? If so, then this:

cancel.setOnClickListener((OnClickListener) this);

would be trying to add the AsyncTask as an OnclickListener, not the
Activity.
Furthermore, you've declared "listen" as the listener that cancels the
dialog, but never actually use it ...

I would suggest you move the Task to it's own class and pass anything it
needs in the arguments.

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

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