![](/img/trans.png)
[英]How can I play a MediaPlayer theme song at the background of my app?
[英]how can i get song details, when user chooses a song>complete action using dialog> into my app
如何從sdcard中獲取要播放的歌曲詳細信息並使用我的應用程序完成操作。清單中的屬性是什么,如何將歌曲詳細信息提取到我的applicatin中?
<activity android:label="Name" android:name=".activity.ActivityName" android:configChanges="keyboard|orientation">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="audio/*" />
</intent-filter>
</activity>
嘗試上述操作,以在出現對話框時將您的應用程序顯示在默認列表中。 另請參閱如何從MediaPlayer獲取當前播放的歌曲詳細信息以獲取當前播放的歌曲詳細信息。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.