Dynamically create Widgets on Android

Is it possible to create multiple widgets at runtime? The application (Activity) should in some cases generate a new widget (or edit an existing one) with a new name and label and do some primitive click actions that should be available in the desktop widget menu.

+3
source share
2 answers

Is it possible to create multiple widgets at runtime?

No.

The application (Activity) should in some cases generate a new widget (or edit exists) with a new name and shortcut and do some primitive actions when pressed, which should be available as a menu widget on the desktop.

. , .

!

+1

, , .

, X- onCreate().

0

Source: https://habr.com/ru/post/1744467/


All Articles