android developered
1,添加应用获得获得appkey 55384c8c67e58e0d2600193b
2,下载sdk http://dev.umeng.com/analytics/android-doc/sdk-download
3,集成jar文件到项目里面,配置主manifest
<manifest……>
<uses-sdk android:minSdkVersion="4"></uses-sdk>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"></uses-permission>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
<uses-permission android:name="android.permission.READ_PHONE_STATE"></uses-permission>
<application ……>
……
<activity ……/>
<meta-data android:value="YOUR_APP_KEY" android:name="UMENG_APPKEY"></meta-data>
<meta-data android:value="Channel ID" android:name="UMENG_CHANNEL"/>
</application>
</manifest>
4,功能介绍
(1) session 统计
在每个activity里面调用此方法
public void onResume() {
super.onResume();
MobclickAgent.onResume(this);
}
public void onPause() {
super.onPause();
MobclickAgent.onPause(this);
}
(2 页面统计)
http://dev.umeng.com/analytics/android-doc/integration