简体   繁体   中英

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>

Try the above to make your application show up in the default listing when the dialog appears. Also refer to How to get current playing song details from MediaPlayer for getting the current playing song details.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM