0

现在我正在使用

Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("market://music"));
startActivity(intent);

在似乎崩溃的安卓市场推出音乐商店。另外,我怎么能在其中包含搜索字符串。如果有可能,那就是。

4

3 回答 3

1

Do you want to launch Market at the Google Music application?

If so, you can use this code:

Intent i = new Intent(Intent.ACTION_VIEW);
i.setData(Uri.parse("market://details?id=com.google.android.music"));
startActivity(i);

Edit: ... Or are you trying to launch Market at the Music section? I don't think it's possible. Also, many users can't access the Music store in Market, so it won't work for those users (which is basically anyone outside the US).

于 2012-03-05T23:32:38.257 回答
0

我终于在网上的某个地方找到了这个并且它有效!

public void buyMusic(View v){
     Uri uri = Uri.parse("market://details?id=album-Bbeyjqldhuyoda7byal4op4he2u");
     Intent it = new Intent(Intent.ACTION_VIEW, uri);
     startActivity(it);
}
于 2012-03-06T01:12:23.140 回答
0

如果您想以音乐模式启动市场,请尝试使用https://market.android.com/music. 如果您想搜索特定音乐,请尝试https://market.android.com/search?q=sting&c=music

于 2012-03-05T23:36:27.200 回答