Set App Widget to Home Screen programmatically

吃可爱长大的小学妹 提交于 2019-12-11 08:25:15

问题


I want to set my custom app widget to home screen. I have searched a lot and implement code and also run some demo But in all that what happen after click on button widget can't be set to home screen instead going to menu setting from device click on

Add->Widgets->Then my widget Icon

after click on my widget icon it will be set to home screen.

But i don't need this i want that after click on button from my activity widget will be set to home screen without going here.

Add->Widgets->Then my widget Icon

So please help me for this approach.


回答1:


i want that after click on button from my activity widget will be set to home screen without going here

That is not possible.



来源:https://stackoverflow.com/questions/23196053/set-app-widget-to-home-screen-programmatically

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!