Skip to content

About

Test project checking whether an Android home-screen App Widget can live in a library module

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

SimpleWidgetLibraryForTesting

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.

What's in here

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

The point

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.

Build and run

git clone https://github.com/p32929/SimpleWidgetLibraryForTesting.git

Open it in Android Studio, run the app module on a device/emulator, then add the widget from your launcher's widget picker.

Contributing

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:

  1. Create an issue describing the feature or bug fix you'd like to work on
  2. Wait for discussion and approval to ensure alignment with project goals
  3. Fork the repository and create your feature branch
  4. 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!

Share

Sharing this repository with your friends is just one click away from here

facebook twitter tumblr pocket pinterest reddit linkedin whatsapp


Support

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/

Buy Me A Coffee

About

Test project checking whether an Android home-screen App Widget can live in a library module

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages