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.
我有一个要求,在单击我的应用程序的启动器图标时,它应该读出应用程序名称。
我知道这很有趣,但这可能吗?任何方向?
在您的活动的 onCreate/onResume 方法中尝试此操作:MediaPlayer
只需启动播放器
mp = new MediaPlayer(); mp.reset(); mp.setDataSource(fileNamePath); mp.prepare(); mp.start();