简体   繁体   English

在Android上使用GData和Google Analytics

[英]Using GData and the Google Analytics on Android

I am wondering what my options are for using GData and specifically the analytics api on android to build a small widget. 我想知道我的选择是什么用于使用GData,特别是android上的分析API来构建一个小小部件。 After searching around for a while I couldnt come up with any libraries with decent examples. 经过一段时间的搜索后,我无法想出任何具有良好示例的库。

Are there any dedicated libraries with some decent examples / doco to do this sort of thing? 有没有专门的图书馆有一些不错的例子/ doco来做这种事情? I would like to target 1.5 but if the are 2.0 only I guess that is fine too. 我想以1.5为目标,但如果仅为2.0,我猜这也很好。

Here is a Google API library that supports Android. 是一个支持Android的Google API库。 It supports all Google API's (including gdata). 它支持所有Google API(包括gdata)。 I don't think it has GData abstractions specifically for Analytics yet, so you might have to familiarize yourself with how the data feed looks, which you can do here . 我认为它还没有专门针对Google Analytics的GData抽象,因此您可能需要熟悉数据Feed的外观,您可以在此处进行操作

Please try google-spreadsheet-lib-android 请尝试google-spreadsheet-lib-android

Though its written for SpreadSheet, but you can follow this approach to access Google's other service API. 虽然它是为SpreadSheet编写的,但您可以按照这种方法访问Google的其他服务API。 At present it support SpreadSheet and Document List API and based on need I am planning to add more API support. 目前它支持SpreadSheet和Document List API,并且根据需要我计划添加更多的API支持。

GData API doesn't work on Android, so no straight forward solution. GData API在Android上不起作用,因此没有直接的解决方案。

Hope it helps. 希望能帮助到你。

Cheers, 干杯,
Prasanta Prasanta

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM