Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add Umeng analytics.

  • Loading branch information...
commit 572cd1d60ce6412228c7158257bcae5fb8f770ba 1 parent 291d34f
@jubal authored
View
1  .classpath
@@ -4,5 +4,6 @@
<classpathentry kind="src" path="gen"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
+ <classpathentry kind="lib" path="jar/AndroidAnalyticSDK3.2.1.jar"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>
View
10 AndroidManifest.xml
@@ -5,6 +5,12 @@
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="8" />
+ <uses-permission android:name="android.permission.INTERNET"/>
+ <uses-permission android:name="android.permission.READ_PHONE_STATE"/>
+ <uses-permission android:name="android.permission.READ_LOGS"/>
+ <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
+ <uses-permission android:name="android.permission.ACCESS_NETWORK_STAT"/>
+ <uses-permission android:name="android.permission.ACCESS_WIFI_STAT"/>
<application
android:icon="@drawable/ic_launcher"
@@ -23,6 +29,10 @@
<action android:name="android.intent.action.CARSHARINGSETTING"/>
</intent-filter>
</activity>
+
+ <meta-data android:value="4e9e70925270156c9a000060"
+ android:name="UMENG_APPKEY"></meta-data>
+ <meta-data android:value="DEV" android:name="UMENG_CHANNEL"></meta-data>
</application>
</manifest>
View
BIN  jar/AndroidAnalyticSDK3.2.1.jar
Binary file not shown
View
5 src/com/mls/CarSharing/BaseActivity.java
@@ -1,5 +1,7 @@
package com.mls.CarSharing;
+import com.mobclick.android.MobclickAgent;
+
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
@@ -13,6 +15,7 @@
public void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
mTagString=this.toString();
+ MobclickAgent.onError(this);
log("onCreate");
}
@@ -25,12 +28,14 @@ public void onStart(){
@Override
public void onResume(){
super.onResume();
+ MobclickAgent.onResume(this);
log("onResume");
}
@Override
public void onPause(){
super.onPause();
+ MobclickAgent.onPause(this);
log("onPause");
}
Please sign in to comment.
Something went wrong with that request. Please try again.