Reputation: 7415
In my app I have a 4x2 Widget and now I wanted a second 4x1 Widget displayig almost the same content, so I created a secondary appwidget-provider xml. When I then wanted to use the same Widgetprovider Android only showed one widget in the list. :-(
As I found out, you have to use for each Widget defined in the Manifest another widgetprovider... why? how to add multiple widgets in one app?
Furthermore I would liek to have only one widget entry in the List... Can I change the appwidget-provider xml in the AppWidgetConfig Activity so that I don't have to use the initial size? how?
Upvotes: 0
Views: 445
Reputation: 1006664
you have to use for each Widget defined in the Manifest another widgetprovider... why?
Because that is the way they wrote it.
Furthermore I would liek to have only one widget entry in the List
Then only define one AppWidgetProvider
for only one size of app widget.
Can I change the appwidget-provider xml in the AppWidgetConfig Activity so that I don't have to use the initial size?
No.
Upvotes: 1