+1点击也不会在Android中整合工作在Google+ [英] +1 click is not working in Android integration with Google+
本文介绍了+1点击也不会在Android中整合工作在Google+的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我跟着此链接在我的Android应用程序中使用+1按钮以+1的链接或网站,但遗憾的是它并没有达到预期效果,当我点击它,它没有回应。我尝试使用以下命令:
I followed this link to use the +1 button in my Android application to +1 a link or a website, but unfortunately it didn't work as expected and it didn't respond when I click on it. I tried to use the following:
mPlusOneButton.setOnPlusOneClickListener(new OnPlusOneClickListener() {
@Override
public void onPlusOneClick(Intent arg0) {
// TODO Auto-generated method stub
startActivityForResult(arg0, 0);
}
});
但也没有反应。作为一个例子,我试图用code的以下行:
But also no response. As an example I tried to use the following line of code:
mPlusOneButton.initialize(plusClient, "http://www.googleplustoday.net", PLUS_ONE_REQUEST_CODE);
和有我的谷歌,加上个人资料的+1标签没有影响。
And there is no effect on my Google plus profile at the +1 tab.
谁能提供帮助?先谢谢了。
Who can help? Thanks in advance.
推荐答案
确认要连接到谷歌加:
mPlusOneButton.setOnPlusOneClickListener(new OnPlusOneClickListener() {
@Override
public void onPlusOneClick(Intent intent) {
if(!plusClient.isConnected()) {
plusClient.connect();
} else {
startActivityForResult(intent, 0);
}
}
}
这篇关于+1点击也不会在Android中整合工作在Google+的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文