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.
是否可以创建一个 Android 服务,在后台监听播放按钮(在 Android 媒体播放器中)点击(类似于 onPlaybackListener),然后激活一个可以控制当前歌曲的 GUI?即停止。
谢谢
不可以。您不能拦截来自其他应用程序的 GUI 事件。