use*_*487 1 android share button rate
我很困惑这个代码我正在寻找somenthing类似我有一个按钮,我希望它说率和当点击它带你到Android市场,用户可以评价我的应用程序,请帮助
Button bRate = (Button) findViewById(R.id.button7);
bRate.setOnClickListener(new View.OnClickListener() {
//plus the code on the top here is my idea of the code
}
Run Code Online (Sandbox Code Playgroud)
Elipse说错了,我明白我需要把我的市场链接,但按钮仍然不起作用
我无法将其发布在同一页面上这里是原始问题的链接
Sam*_*iya 14
您刚刚添加了应用包名称...
https://play.google.com/store/apps/details?id=your packagename
Run Code Online (Sandbox Code Playgroud)
并致电使用 Intent.ACTION_VIEW
String str ="https://play.google.com/store/apps/details?id=com.zeustechnocrats.quickfoods";
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(str)));
Run Code Online (Sandbox Code Playgroud)