Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我创建了一个 Daydream 服务,它运行良好,但我想将其设为默认值(不需要转到设置/屏幕保护程序...)。有没有办法设置屏幕保护程序默认包,如setDefaultComponent(packageName,serviceClassName)?
setDefaultComponent
packageName
serviceClassName
零售服务:
您将无法强制更改用户的默认白日梦,而是;您可以将用户导航到特定的设置页面,以便用户做出决定。默认设置是敏感的,将决定权留给用户是唯一的方法和正确的方法。要打开特定设置页面,请参阅下面的答案。
开启白日梦设定