4

I have implemented aViewPagerin my customize home Launcher application and I added 5 pages in theViewPager.

Now I want to add home screen widgets and application shortcuts on individual pages in myViewPager. What would be the best way to accomplish this?

HandlerExploit
  • 8,131
  • 4
  • 31
  • 50
sam_k
  • 5,983
  • 14
  • 76
  • 110

1 Answers1

1

Here is a similar question (in part about Widgets): Any AppWidgetHost-tutorials out there?

And here is an AppWidgetHost tutorial with a mostly working example. At least it's a good starting point.

Note: there is a misprint in line 176 of the example:

int appWidgetId = WidgetScreen.this.mAppWidgetHost.allocateAppWidgetId();

should be replaced by

int appWidgetId = mAppWidgetHost.allocateAppWidgetId();
Community
  • 1
  • 1
praetorian droid
  • 2,989
  • 1
  • 17
  • 19