Android PlusOneButton

时间:2012-12-05 09:40:18

标签: android google-plus-one

我正在尝试在我的Android应用程序中使用plusone按钮。

我这样做了:

m_plusClient = new PlusClient(this, this, this);

然后:

m_plusOneButton = (PlusOneButton) m_view.findViewById(R.id.plus_one_button);
m_plusOneButton.initialize(((SinglePlace)getActivity()).m_plusClient, url, 0);

按钮就在那里,但是如果我点击它,它会显示一个无限期的进度条并且什么都不做。加上客户端没有调用回调...

1 个答案:

答案 0 :(得分:1)

您需要先执行以下步骤: https://developers.google.com/+/mobile/android/getting-started 在你跳到+1按钮部分之前。