Run widget from code

Is it possible to somehow launch a widget from our application immediately, without having to select widgets. Thus, it automatically adds a widget to our home screen using code.

Thank.

+3
source share
2 answers

Can be done if you want to change the startup code. But modification is not recommended for your purpose, as it tightly connects with your application.

+1
source

No, this is impossible to do.

+5
source

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


All Articles