Permalink
Browse files

analytics are complete

  • Loading branch information...
1 parent 0edf6b3 commit 4f5e4ef05e88c6fdc732a11a112d3f5de6fe8ec4 Adam Menz committed Jul 14, 2011
@@ -16,7 +16,7 @@
import android.widget.EditText;
import android.widget.Spinner;
-public class AddAccountActivity extends Activity implements OnClickListener{
+public class AddAccountActivity extends GaActivity implements OnClickListener{
EditText usernameText;
EditText apiKeyText;
@@ -27,6 +27,7 @@
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
+ trackPageView(PAGE_PROVIDERS);
setContentView(R.layout.createaccount);
usernameText = (EditText) findViewById(R.id.username);
apiKeyText = (EditText) findViewById(R.id.addaccount_apikey);
@@ -47,6 +47,7 @@
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
+ trackPageView(PAGE_ADD_OBJECT);
setContentView(R.layout.addtextfile);
context = getApplicationContext();
containerName = (String) this.getIntent().getExtras().get("Cname");
@@ -1,6 +1,5 @@
package com.rackspacecloud.android;
-import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.Context;
@@ -13,7 +12,7 @@
import android.widget.EditText;
import android.widget.Toast;
-public class CreatePasswordActivity extends Activity {
+public class CreatePasswordActivity extends GaActivity {
private PasswordManager pwManager;
private EditText passwordText;
@@ -37,7 +37,7 @@
import com.rackspace.cloud.servers.api.client.http.HttpBundle;
import com.rackspace.cloud.servers.api.client.parsers.CloudServersFaultXMLParser;
-public class EnableCDNActivity extends Activity implements OnClickListener,
+public class EnableCDNActivity extends GaActivity implements OnClickListener,
OnItemSelectedListener {
public static String containerName = null;
@@ -53,6 +53,7 @@
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
+ trackPageView(PAGE_CONTAINER_DETAILS);
setContentView(R.layout.enable_cdn_container);
context = getApplicationContext();
containerName = (String) this.getIntent().getExtras().get("Cname");
@@ -149,6 +150,7 @@ protected Dialog onCreateDialog(int id) {
public void onClick(DialogInterface dialog,
int whichButton) {
// User clicked OK so do some stuff
+ trackEvent(CATEGORY_CONTAINER, EVENT_UPDATED, "", -1);
new EnableCDNTask().execute((Void[]) null);
}
})
@@ -170,6 +172,7 @@ public void onClick(DialogInterface dialog,
public void onClick(DialogInterface dialog,
int whichButton) {
// User clicked OK so do some stuff
+ trackEvent(CATEGORY_CONTAINER, EVENT_UPDATED, "", -1);
new ChangeAttributesCDNTask().execute((Void[]) null);
}
})
@@ -23,6 +23,10 @@
protected static final String PAGE_ADD_SERVER = "/AddServer";
protected static final String PAGE_CONTACT = "/ContactInformation";
protected static final String PAGE_ADD_CONTAINER = "/AddContainer";
+ protected static final String PAGE_PASSCODE = "/Passcode";
+ protected static final String PAGE_PROVIDERS = "/Providers";
+ protected static final String PAGE_CONTAINER_DETAILS = "/ContainerDetail";
+ protected static final String PAGE_ADD_OBJECT = "/AddObject";
protected static final String EVENT_CREATE = "created";
protected static final String EVENT_DELETE = "deleted";
@@ -23,6 +23,10 @@
protected static final String PAGE_ADD_SERVER = "/AddServer";
protected static final String PAGE_CONTACT = "/ContactInformation";
protected static final String PAGE_ADD_CONTAINER = "/AddContainer";
+ protected static final String PAGE_PASSCODE = "/Passcode";
+ protected static final String PAGE_PROVIDERS = "/Providers";
+ protected static final String PAGE_CONTAINER_DETAILS = "/ContainerDetail";
+ protected static final String PAGE_ADD_OBJECT = "/AddObject";
protected static final String EVENT_CREATE = "created";
protected static final String EVENT_DELETE = "deleted";
@@ -38,6 +38,7 @@
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
+ trackPageView(PAGE_PASSCODE);
setContentView(R.layout.viewchangepassword);
server = (Server) this.getIntent().getExtras().get("server");
setupButtons();
@@ -30,7 +30,7 @@
public static final String COUNTRY_UK_AUTH_SERVER = "https://lon.auth.api.rackspacecloud.com/v1.0";
//Define web property ID
- public static final String WEB_PROPERTY_ID = "enter your id here";
+ public static final String WEB_PROPERTY_ID = "enter you id here";
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

0 comments on commit 4f5e4ef

Please sign in to comment.