设置应用程序窗口小部件到主屏幕编程 [英] Set App Widget to Home Screen programmatically
问题描述
我想我的设置自定义应用程序窗口小部件到主屏幕。我寻觅了很多,实现code,也运行一些演示但在所有不能被设置为主页屏幕上点击按钮控件后发生什么,而不是将菜单设置从设备点击
添加 - > Widgets->下面我Widget图标
点击我的Widget图标后,将被设置为主页屏幕。
但我并不需要这个我想,点击按钮,从我的活动部件后,将设置主屏幕而不去这里。
添加 - > Widgets->下面我Widget图标
所以,请帮我这个方法。
我想,点击按钮,从我的活动部件后,将设置主屏幕而不去这里
块引用>这是不可能的。
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.
解决方案i want that after click on button from my activity widget will be set to home screen without going here
That is not possible.
这篇关于设置应用程序窗口小部件到主屏幕编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!