上安装应用程序创建窗口小部件部件、应用程序、窗口

2023-09-07 04:52:35 作者:末日狂欢

我只是想知道,有没有什么办法可以让一个Android小工具显示在用户的主屏幕上时,他们安装我的应用程序?另外,我可以让他们选择从内部我的应用程序创建窗口小部件?

解决方案   

我只是想知道,有没有什么办法可以让一个Android小工具显示在用户的主屏幕上时,他们安装我的应用程序?

没有,对不起。没有你的code安装后得到执行。

  

另外,我可以让他们选择从内部我的应用程序创建窗口小部件?

没有,对不起。只有主屏幕可以添加应用程序,窗口小部件的主屏幕。

Android 13大变样,One UI 5.0带来16大新功能,已向三星手机推送

I was just wondering, is there any way I can make an android widget show up on a user's home screen when they install my application? Also, can I let them choose to create a widget from within my application?

解决方案

I was just wondering, is there any way I can make an android widget show up on a user's home screen when they install my application?

No, sorry. None of your code gets executed upon install.

Also, can I let them choose to create a widget from within my application?

No, sorry. Only the home screen can add app widgets to the home screen.