Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Moving AppWidgetProvider under different Package name breaks active widgets

I have an AppWidgetProvider under package "com.developer.application"

I tried moving this AppWidgetProvider under package "com.developer.application.widgets" Upon doing so I updated all references in the AndroidManifest to accommodate the move.

After uploading the changes to the device, the widgets (associated with the aforementioned AppWidgetProvider) that were currently on the home screen break and just forever show the "Loading" graphic.

I know nothing is wrong with my pointers/package paths because if I re-add the widget to the home screen everything works fine.

So simply put, moving an AppWidgetProvider to a different package and updating all necessary references still breaks the active home screen widget(s).

Any ideas? Thank you!

Matt.

like image 363
Matt M Avatar asked Jun 16 '12 05:06

Matt M


1 Answers

I've also experienced that.

My guess is that the launcher saves the class name of the widget (including package name), so it just breaks when you change it.

like image 182
Ran Avatar answered Sep 28 '22 09:09

Ran