Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Launch widget from code

Is there any way we can launch the widget from our application immediately without user have to choose the widget. So it like automatically add widget to our home screen using code.

Thanks.

like image 780
user430926 Avatar asked Nov 20 '25 21:11

user430926


2 Answers

No, this cannot be done.

like image 171
Romain Guy Avatar answered Nov 22 '25 11:11

Romain Guy


Can be done, if you are willing to modify the Launcher code. But modifying it is not recommended for your purpose as it tightly couples with your app.

like image 31
Vinay Avatar answered Nov 22 '25 13:11

Vinay



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!