You guessed right!  Thanks for the tips, and I'll be clearer in the future.

Best,
Paul

On Wed, Mar 31, 2010 at 8:49 AM, Mark Murphy <mmur...@commonsware.com>wrote:

> Paul Tongyoo wrote:
> >
> > Just curious if there's any reason why I can't use an AsyncTask -- my
> > current implementation uses AsyncTask and I'm experiencing inconsistent
> > widget refreshing.
>
> You don't say where you are using an AsyncTask. And I'm not sure whether
> "widget" means View or "app widget".
>
> :: insert grumble about Android confusing naming convention here ::
>
> I am going to take a guess that you are trying to use an AsyncTask from
> the AppWidgetProvider. That's a bit dangerous -- BroadcastReceivers like
> an AppWidgetProvider are not supposed to run background threads
> directly. I recommend using an IntentService for app widget updates.
>
> If that's not what you are trying to do, I apologize for guessing
> incorrectly, and please respond on-thread with more details.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://twitter.com/commonsguy
>
> _Android Programming Tutorials_ Version 2.0 Available!
>
> --
> 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<android-developers%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>
> To unsubscribe, reply using "remove me" as the subject.
>

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