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.
我希望我的音乐小部件以与 RemoteControlClient 工作方式类似的方式显示在屏幕上。我不希望用户需要事先将小部件添加到锁定屏幕。他们的 4.2 设备上的三星音乐应用程序具有这种行为。
AFAIK,这在公共 SDK 中是不可能的。三星的应用程序可能能够在他们的设备上执行此操作,因为它们是由三星为他们自己的设备开发的,并且作为预安装的系统应用程序具有更大的访问权限。
到目前为止,我所知道的任何 API 都没有这样做。