Hi,
I am trying to create an application that contains AppWidgets, but
only get to show the original layout of the same, unable to interact
with them. The main steps that I followed are:
AppWidgetManager mAppWidgetManager =
AppWidgetManager.getInstance
(this);
AppWidgetHost mAppWidgetHost = new AppWidgetHost(this, hostId);
appWidgetId = mAppWidgetHost.allocateAppWidgetId();
// i is an integer used to specify the widget I want to insert
AppWidgetHostView appWidgetHostView = mAppWidgetHost.createView(this,
appWidgetId, appWidgetProviderInfo.get(i));
appWidgetHostView.setAppWidget(appWidgetId,
(AppWidgetProviderInfo)
appWidgetProviderInfo.get(i));
And then insert the appWidgetHostView into my application layout.Has
anyone managed to enter AppWidgets into their applications and can
tell me what I'm doing wrong?
Thank you very much
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---