I am not an apologist for Copying and pasting programming , so after a little research, we found a way to integrate the widget into several different projects.
- Turn the Widget project into a library project:
properties -> Android -> and check Is Library - Go to the source project and import the Widget project:
properties -> Android -> Add - In the original project manifest, add text between
<receiver>(...)</receiver> , including <intent-filter /> and <meta-data/> , in <application>(...)</application>
And preost, App + Widget integration without Copy-Paste programming!
Henrique de sousa
source share