android 调用本地音乐播放器

Intent intent_music = new Intent(Intent.ACTION_PICK);  
			intent_music.setDataAndType(Uri.EMPTY,"vnd.android.cursor.dir/playlist");  
			intent_music.putExtra("withtabs", true); // 显示tab选项卡  
			intent_music.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); 
			
			Intent j =Intent.createChooser(intent_music, "Choose an application to open with:");
			if (j == intent_music) {
				startActivity(j); 
			} else {
				Intent intent = new Intent("android.intent.action.MUSIC_PLAYER"); 	 
				startActivity(intent);
			}

android 调用本地音乐播放器,布布扣,bubuko.com

android 调用本地音乐播放器

上一篇:2G内存编译android4.0


下一篇:[公告][重要]Senparc.Weixin v4.9.0 & Senparc.Weixin.MP v14.3.104更新说明