What you need to do is simply declare both the widget and the application in one AndroidManifest.xml.
Inside the application tag in the manifest, declare the application an activity tag and a widget with a receiver tag.
Basically, try to "combine" both manifestos into one.
Please let me know if my answer confuses you.
source share