Search code examples
androidandroid-widgetwidgetlauncher

Adding other Android widgets into your app


I'm working on a program for android very similar to a car/media dock program but not quite. It will have shortcuts to launch apps, but I also want to add widgets to it. I don't want this app to be a widget that the user can add to their homescreen. I want the user to choose a widget they have installed and have that widget built into my dock program that fully functions....and that's where I hit a road bump that I can't figure out how to accomplish.

I tried looking through the launcher2 code but that's way more complex then what I need and I can't find any documentation for this function anywhere.

Thanks in advance for your help.


Solution

  • Have you seen this AppWidgetHost tutorial?