Android Google日历API快速启动项目未返回任何结果
嗨,我访问了谷歌日历API的android快速入门指南 所以我在这之后做了一个快速入门的例子 当我运行应用程序时,会发生以下情况: 这是不是意味着它起作用了 我希望您能帮助我:)代码运行良好。 这是基于代码的这一部分发生的:Android Google日历API快速启动项目未返回任何结果,android,google-api,google-calendar-api,Android,Google Api,Google Calendar Api,嗨,我访问了谷歌日历API的android快速入门指南 所以我在这之后做了一个快速入门的例子 当我运行应用程序时,会发生以下情况: 这是不是意味着它起作用了 我希望您能帮助我:)代码运行良好。 这是基于代码的这一部分发生的: @Override protected void onPostExecute(List<String> output) { mProgress.hide(); if (output == null || output.size() == 0
@Override
protected void onPostExecute(List<String> output) {
mProgress.hide();
if (output == null || output.size() == 0) {
mOutputText.setText("No results returned.");
} else {
output.add(0, "Data retrieved using the Google Calendar API:");
mOutputText.setText(TextUtils.join("\n", output));
}
}
@覆盖
受保护的void onPostExecute(列表输出){
mProgress.hide();
if(output==null | | output.size()==0){
setText(“未返回结果”);
}否则{
添加(0,“使用谷歌日历API检索的数据:”);
mouttext.setText(TextUtils.join(“\n”,输出));
}
}
您将收到“未返回任何结果。”
消息,因为它无法获取任何内容。转到你的calendar.google.com
,添加一些虚拟事件,然后再次拨打另一个电话。它应该能够返回事件并在屏幕上显示