Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

After extracting code to lib widget is no longer working

I had a perfectly working widget as part of my project. Then I decided to extract common code (including the widget) into the library project. After doing this everything works except the widget. It appears in the list of widgets available for addition but when I place it on the desktop all I get is this toast message: "Application is not installed on your phone". Can someone shed light on this?

Neither configuration nor code has changed. Widget definition exists in both meta files (project and lib) with project metafile containing absolute (including path) names and all permissions.

like image 697
Bostone Avatar asked Feb 25 '23 17:02

Bostone


1 Answers

I've ran into the same problem today. However I guess I've found an answer.

Check the correctness of android:configure element in AppWidget metadata XML file. If you have widget configuration activity, probably its class name or package has changed when you extracted widget to different project.

Now system cannot find activity that you mentioned and complains with cryptric "Application is not installed on your phone".

like image 145
uaraven Avatar answered Mar 08 '23 14:03

uaraven