苹果的app评价很容易,直接请求AppStore的一个链接就好了,android市场这么多,请求一个链接肯定不行。之前一直以为很麻烦,也没有仔细研究,今天竟然发现原来很简单。上代码:
Uri uri = Uri.parse("market://details?id=" + context.getPackageName());
Intent goToMarket = new Intent(Intent.ACTION_VIEW, uri);
try {
startActivity(goToMarket);
} catch (ActivityNotFoundException e) {
Toast.makeText(context, "Couldn't launch the market !", Toast.LENGTH_SHORT).show();
}
本文介绍如何在Android应用中快速实现应用市场链接跳转的功能,通过解析URL并使用Intent来启动应用市场查看应用详情。
1252

被折叠的 条评论
为什么被折叠?



