A throwaway test project answering one question: can an Android home-screen App Widget live inside a library module (appwidgetlibrary) rather than in the app itself, and still work when the app depends on it?
Not meant as a reusable library — it's the experiment, kept for reference.
| Module | What it is |
|---|---|
appwidgetlibrary/ |
A library module containing an AppWidgetProvider (MyAppWidget1) and a small WebActivity |
app/ |
A demo app that depends on the module and hosts the widget |
appwidgetlibrary/src/main/java/.../WidgetRelated/MyAppWidget1.java is the home-screen widget, declared in the library's manifest. The app module just pulls the library in — proving a widget provider and its manifest entry survive being packaged in an Android library.
git clone https://github.com/p32929/SimpleWidgetLibraryForTesting.gitOpen it in Android Studio, run the app module on a device/emulator, then add the widget from your launcher's widget picker.
Contributions are warmly welcomed and greatly appreciated! Whether it's a bug fix, new feature, or improvement, your input helps make this project better for everyone.
Before submitting a pull request, please:
- Create an issue describing the feature or bug fix you'd like to work on
- Wait for discussion and approval to ensure alignment with project goals
- Fork the repository and create your feature branch
- Submit your pull request with a clear description of changes
This approach helps avoid duplicate efforts and ensures smooth collaboration. Thank you for considering contributing!
Sharing this repository with your friends is just one click away from here
If this saved you time, you can buy me a coffee — it keeps these projects maintained and free. Other payment options: https://p32929.github.io/SendMoney2MeV1/







