Google Analytics Android SDK version 1.4.2.
Copyright 2009 Google, Inc. All rights reserved.
================================================================================
DESCRIPTION:
This SDK enables developers to add Google Analytics tracking to applications.
The tracker code is packaged as a single jar file. Add libGoogleAnalytics.jar
to your project's /libs directory (if using Eclipse right click on the jar in
the libs directory and choose "Build Path" -> "Add to Build Path"). See the
samples/SampleApplication application for an illustration of how to use page
tracking and event tracking.
The SDK requires your application to have the following permissions present
in AndroidManifest.xml:
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
An Analytics tracking 'visit' is defined as the events and page views generated
between calls to startNewSession() and stopSession() on the
GoogleAnalyticsTracker. Every time startNewSession() is called a new visit is
started. You should call stopSession() on GoogleAnalyticsTracker when your
application is closing.
You will need an Analytics Account ID to properly initialize the
GoogleAnalyticsTracker object. We recommend you create a new website profile,
by clicking "+ Add new profile" from the main Overview page in Google Analytics
(google.com/analytics). Select "new domain" in the wizard, and choose a
descriptive but fake URL for your app. The Web Property/Account ID will take
the form "UA-0000000-1".
You must indicate to your users, either in the application itself or in your
terms of service, that you reserve the right to anonymously track and report a
user's activity inside of your app.
Referrer Tracking:
Google Analytics can track the source of the application install using referrer
tracking.
To enable referrer tracking, a Broadcast Receiver needs to be registered in
your AndroidManifest.xml:
<receiver android:name="com.google.android.apps.analytics.AnalyticsReceiver"
android:exported="true">
<intent-filter>
<action android:name="com.android.vending.INSTALL_REFERRER" />
</intent-filter>
</receiver>
To pass referrer information to your application, link to it in Market as
follows:
http://market.android.com/search?q=pname:<package>&referrer=<referral>
where <package> is the application's package name, and <referral> is a url
encoded list of Analytics Campaign information. There is a tool you can use
to generate urls at:
http://code.google.com/mobile/analytics/docs/android/#android-market-tracking
All tracked page views/events will be now be attributed to this campaign.
(NOTE: do not start the GoogleAnalyticsTracker in your Application onCreate()
method if using referral tracking).
Implementation Details:
Pageviews, events and Ecommerce hits are stored in an SQLite database and
dispatched to the Google Analytics servers periodically, at a rate determined
by the developer or manually. A battery efficient strategy may be to
"piggy-back" a dispatch just after the application needs to perform network
activity. Dispatching happens by pipelining HTTP requests down a single
connection (one request per pageview/event with a maximum of 30 per dispatch).
================================================================================
BUILD REQUIREMENTS:
Android SDK 1.5+
================================================================================
RUNTIME REQUIREMENTS:
Android OS 1.5+
================================================================================
DOCUMENTATION AND SAMPLES:
You can find the latest, detailed information about the SDK as well as
download examples using the SDK at:
http://code.google.com/mobile/analytics/docs/android/
================================================================================
PACKAGING LIST:
GoogleAnalytics
libGoogleAnalytics.jar
ReadMe.txt
sample
AndroidManifest.xml
build.xml
default.properties
libs
copy-libGoogleAnalytics-jar-into-here.txt
res
drawable
icon.png
layout
main.xml
values
strings.xml
src
com
google
android
apps
analytics
sample
TestActivity.java
================================================================================
没有合适的资源?快使用搜索试试~ 我知道了~
Android\android-sdk\extras
共623个文件
java:260个
xml:112个
html:63个
5星 · 超过95%的资源 需积分: 31 254 下载量 136 浏览量
2012-09-15
08:37:33
上传
评论 4
收藏 20.79MB RAR 举报
温馨提示
android support library Android android-sdk extras support library 这个只包含extras 用于原来sdk的局部升级
资源推荐
资源详情
资源评论
收起资源包目录
Android\android-sdk\extras (623个子文件)
ILicensingService.aidl 960B
ILicenseResultListener.aidl 891B
IMarketBillingService.aidl 848B
resources.ap_ 11KB
resources.ap_ 11KB
TestAnAndroidWebApp.apk 647KB
SimpleApp.apk 13KB
androidwinusba64.cat 10KB
androidwinusb86.cat 10KB
proguard.cfg 1KB
proguard.cfg 1KB
SimpleGoogleTest.class 3KB
SimpleGoogleTest.class 2KB
R.class 1KB
R$string.class 1KB
R$drawable.class 1KB
R$layout.class 1KB
R$attr.class 976B
SimpleAppActivity.class 516B
SimpleAppActivity.class 516B
R.class 471B
R.class 441B
R.class 441B
R$string.class 418B
R$string.class 403B
R$string.class 403B
R$drawable.class 391B
R$layout.class 385B
R$drawable.class 376B
R$drawable.class 376B
R$layout.class 370B
R$layout.class 370B
R$attr.class 331B
R$attr.class 316B
R$attr.class 316B
.classpath 537B
.classpath 356B
.classpath 281B
stylesheet.css 1KB
R.java.d 650B
R.java.d 575B
classes.dex 1.88MB
classes.dex 2KB
WUDFUpdate_01009.dll 2.05MB
WUDFUpdate_01009.dll 1.75MB
WdfCoInstaller01009.dll 1.64MB
WdfCoInstaller01009.dll 1.39MB
winusbcoinstaller2.dll 979KB
winusbcoinstaller2.dll 831KB
IntelHaxm.exe 1.92MB
inherit.gif 57B
.gitignore 620B
.gitignore 75B
.gitignore 26B
.gitignore 24B
.gitignore 24B
AdView.html 129KB
index-all.html 74KB
AdRequest.html 53KB
AdSize.html 37KB
CustomEventAdapter.html 37KB
AdMobAdapter.html 33KB
AdMobAdapterExtras.html 23KB
InterstitialAd.html 20KB
MediationBannerAdapter.html 20KB
AdRequest.ErrorCode.html 20KB
MediationInterstitialAdapter.html 19KB
MediationBannerListener.html 18KB
MediationAdRequest.html 18KB
AdRequest.Gender.html 17KB
MediationInterstitialListener.html 16KB
CustomEventServerParameters.html 16KB
MediationServerParameters.html 15KB
AdMobAdapterServerParameters.html 15KB
overview-tree.html 15KB
CustomEventInterstitial.html 15KB
CustomEventListener.html 15KB
MediationServerParameters.MappingException.html 14KB
CustomEventBanner.html 14KB
MediationAdapter.html 13KB
CustomEventBannerListener.html 13KB
AdListener.html 13KB
CustomEventInterstitialListener.html 12KB
Ad.html 11KB
EmptyNetworkExtras.html 10KB
package-summary.html 9KB
package-summary.html 9KB
package-tree.html 9KB
help-doc.html 9KB
package-tree.html 9KB
constant-values.html 8KB
package-tree.html 8KB
package-summary.html 8KB
package-tree.html 7KB
NetworkExtras.html 7KB
deprecated-list.html 7KB
package-summary.html 7KB
serialized-form.html 6KB
overview-summary.html 6KB
allclasses-frame.html 5KB
共 623 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7
malaroy
- 粉丝: 2
- 资源: 22
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
- 4
- 5
前往页