如何显示我在Android应用程序的速度对话框 [英] how to show the rate dialog for my application in android

查看:111
本文介绍了如何显示我在Android应用程序的速度对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发的应用程序,使用户评论我在谷歌Play商店中的应用程序, 所以我想,当点击我的应用程序的速度按钮的用户,他重定向到的速率对话框,在市场没有我的应用程序页面。 我的code是:

 尝试{
    最后弦乐PKGNAME = getPackageName();
    startActivity(新意图(Intent.ACTION_VIEW,Uri.parse(市场://细节ID =+包名称)));
}赶上(例外五){
    vShowDialog(的getString(R.string.cannot_connect_title)的getString(R.string.cannot_connect_title)+的getString(R.string.error_TryAgain));
}
 

解决方案

据我所知,你不能做更多的事情则只需打开谷歌播放您想要的网页应用程序。无论发生什么事情后,也就是从你的范围。

I'm developing application that make the user to rate my application in Google play store, So I want the user when click the rate button in my application, he redirect to the rate dialog in the market not my application page. My code is :

try {
    final String pkgName = getPackageName();
    startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=" + pkgName)));
} catch (Exception e) {
    vShowDialog(getString(R.string.cannot_connect_title), getString(R.string.cannot_connect_title) + getString(R.string.error_TryAgain));
}

解决方案

As far as I know, you can't do much more then simply open the Google Play app on your desired page. Whatever happens after that is out of your reach.

这篇关于如何显示我在Android应用程序的速度对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆