我很困惑这个代码我正在寻找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说错了,我明白我需要把我的市场链接,但按钮仍然不起作用
我无法将其发布在同一页面上这里是原始问题的链接
我有这个代码在Facebook上共享一个应用程序但是当我分享它时,它会放置正确的链接,但应用程序的错误图片
Button bShare = (Button) findViewById(R.id.button7);
bShare.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
final Intent intent = new Intent(Intent.ACTION_SEND);
intent.setType("text/plain");
intent.putExtra(Intent.EXTRA_TEXT, "https://play.google.com/store/apps/details?id=com.myglobaljournal.christmascarol");
startActivity(Intent.createChooser(intent, "Share with"));
Run Code Online (Sandbox Code Playgroud)