Procházet zdrojové kódy

Add Flurry to locale plugin

master
Chris Smith před 14 roky
rodič
revize
c765d0dcdb

+ 6
- 0
code/LocalePlugin/src/uk/co/md87/android/contextanalyser/locale/EditActivity.java Zobrazit soubor

@@ -31,6 +31,7 @@ import android.view.MenuItem;
31 31
 import android.widget.LinearLayout;
32 32
 import android.widget.TextView;
33 33
 
34
+import com.flurry.android.FlurryAgent;
34 35
 import com.twofortyfouram.SharedResources;
35 36
 
36 37
 /**
@@ -49,6 +50,8 @@ public class EditActivity extends Activity {
49 50
     public void onCreate(final Bundle savedInstanceState) {
50 51
         super.onCreate(savedInstanceState);
51 52
 
53
+        FlurryAgent.onStartSession(this, "FRC4VR4CREJG3BTGSTLV");
54
+
52 55
         setContentView(R.layout.main);
53 56
 
54 57
         final String breadcrumbString = getIntent()
@@ -77,8 +80,10 @@ public class EditActivity extends Activity {
77 80
     @Override
78 81
     public void finish() {
79 82
         if (isCancelled) {
83
+            FlurryAgent.onEvent("cancel");
80 84
             setResult(RESULT_CANCELED);
81 85
         } else {
86
+            FlurryAgent.onEvent("save");
82 87
             final Intent returnIntent = new Intent();
83 88
 
84 89
             final Bundle storeAndForwardExtras = new Bundle();
@@ -92,6 +97,7 @@ public class EditActivity extends Activity {
92 97
             setResult(RESULT_OK, returnIntent);
93 98
         }
94 99
 
100
+        FlurryAgent.onEndSession(this);
95 101
         super.finish();
96 102
     }
97 103
 

Načítá se…
Zrušit
Uložit