URI marketUri = Uri.parse("market://search?q= ");
Play Books和Play Music应用程序都将Play商店应用程序打开到正确的类别,因此如果他们可以打开特定的catergory,那么我想我可以搜索一个.有没有人有这方面的信息?
解决方法 我找到了解决方案.这是我用来购买音乐类别的当前方法.public static voID shopFor(Context context,String artistname) { String str = "https://market.androID.com/search?q=%s&c=music&featured=MUSIC_STORE_SEARCH"; Intent shopIntent = new Intent(Intent.ACTION_VIEW,Uri.parse(String.format(str,Uri.encode(artistname)))); shopIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); shopIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK); context.startActivity(shopIntent);}总结
以上是内存溢出为你收集整理的android – 搜索特定的Play商店类别全部内容,希望文章能够帮你解决android – 搜索特定的Play商店类别所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)