0

Android 音楽アプリからトラック情報を取得するには、これらの IntentFilter を使用してレシーバーを起動します。

IntentFilter iF = new IntentFilter();
iF.addAction("com.android.music.metachanged");
iF.addAction("com.android.music.playstatechanged");
iF.addAction("com.android.music.playbackcomplete");
iF.addAction("com.android.music.queuechanged");
iF.addAction("com.android.music.metachanged");
iF.addAction("com.miui.player.metachanged");
iF.addAction("com.htc.music.metachanged");
iF.addAction("com.nullsoft.winamp.metachanged");
iF.addAction("com.sec.android.app.music.metachanged");
iF.addAction("com.real.IMP.metachanged");

あなたは他の人を知っていますか?

4

2 に答える 2

0

これを試すことができます:

...
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType("uri-to-your-file", "audio/*");
context.startActivity(intent);
于 2012-07-28T16:34:35.060 に答える