On Wed, Jun 23, 2010 at 9:39 AM, Jake Colman <[email protected]> wrote:
> I am trying to create a simple AppWidget using a service to initialize
> the content in the onUpdate() method.  The data is not being refreshed
> and logcat shows me the following warning:
>
> AppWidgetService  W  updateAppWidgetProvider: provider doesn't exist:
> ComponentInfo{com.jnc.zmanminder/com.jnc.zmanminder.ZMUpdateService}

This means you are trying to state that ZMUpdateService is an
AppWidgetProvider, in one or more places in your code.

> public class ZMUpdateService extends Service {
>  public void onStart(Intent intent, int startId) {
>    RemoteViews updateViews = buildUpdate(this);
>    ComponentName thisWidget = new ComponentName(this, ZMUpdateService.class);

Note: you are claiming your AppWidgetProvider is ZMUpdateService, when
it is really ZmanMinderAppWidget.

If it helps, here is a complete app widget example:

http://github.com/commonsguy/cw-advandroid/tree/master/AppWidget/Microblog/

It assumes you have an identi.ca account you can use.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_ Version 1.6
Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to