Skip to Content.
Sympa Menu

ndt-dev - [ndt-dev] [ndt] r407 committed - Start re-factoring to re-use one activity for all test phases.

Subject: NDT-DEV email list created

List archive

[ndt-dev] [ndt] r407 committed - Start re-factoring to re-use one activity for all test phases.


Chronological Thread 
  • From:
  • To:
  • Subject: [ndt-dev] [ndt] r407 committed - Start re-factoring to re-use one activity for all test phases.
  • Date: Fri, 24 Jun 2011 17:53:53 +0000

Revision: 407
Author:

Date: Fri Jun 24 10:53:15 2011
Log: Start re-factoring to re-use one activity for all test phases.
http://code.google.com/p/ndt/source/detail?r=407

Deleted:
/branches/android/Android/res/layout/upload_testing.xml
/branches/android/Android/src/net/measurementlab/ndt/UploadTesting.java
Modified:
/branches/android/Android/src/net/measurementlab/ndt/Constants.java
/branches/android/Android/src/net/measurementlab/ndt/ServerLocation.java

=======================================
--- /branches/android/Android/res/layout/upload_testing.xml Tue Jun 21 13:11:16 2011
+++ /dev/null
@@ -1,9 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android";
- android:layout_width="match_parent"
android:layout_height="match_parent">
- <TextView android:text="Testing Upload..." android:id="@+id/textView1"
- android:layout_height="wrap_content"
android:layout_width="match_parent"
- style="@style/NdtHeader" />
- <ImageView android:id="@+id/imageView1" android:layout_width="wrap_content"
- android:layout_height="wrap_content" android:src="@drawable/progress_bar_right" />
-</LinearLayout>
=======================================
--- /branches/android/Android/src/net/measurementlab/ndt/UploadTesting.java Tue Jun 21 13:11:16 2011
+++ /dev/null
@@ -1,29 +0,0 @@
-// Copyright 2009 Google Inc. All Rights Reserved.
-
-package net.measurementlab.ndt;
-
-import android.app.Activity;
-import android.graphics.Typeface;
-import android.os.Bundle;
-import android.util.Log;
-import android.widget.TextView;
-
-/**
- * Animated progress while selecting server location.
- */
-public class UploadTesting extends Activity {
-
- /**
- * Initializes the activity.
- */
- @Override
- public void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.server_location);
- Log.i("ndt", "Loaded!");
- Typeface typeFace = Typeface.createFromAsset(getAssets(),
- "fonts/League_Gothic.otf");
- TextView textView = (TextView) findViewById(R.id.NdtServerLocationLabel);
- textView.setTypeface(typeFace);
- }
-}
=======================================
--- /branches/android/Android/src/net/measurementlab/ndt/Constants.java Tue Jun 21 13:11:16 2011
+++ /branches/android/Android/src/net/measurementlab/ndt/Constants.java Fri Jun 24 10:53:15 2011
@@ -29,7 +29,6 @@

// Intents ID
public static final String SERVER_LOCATION = "net.measurementlab.ndt.ServerLocation";
- public static final String UPLOAD_TESTING = "net.measurementlab.ndt.UploadTesting";
public static final String INTENT_SERVER_NO = "serverno";
public static final String INTENT_STATISTICS = "statistics";
public static final String INTENT_LOCATION = "location";
=======================================
--- /branches/android/Android/src/net/measurementlab/ndt/ServerLocation.java Tue Jun 21 13:11:16 2011
+++ /branches/android/Android/src/net/measurementlab/ndt/ServerLocation.java Fri Jun 24 10:53:15 2011
@@ -75,9 +75,6 @@

.getState()));
// TODO need stop when
activity is paused
}
- Intent intent = new
Intent(getApplicationContext(),
- UploadTesting.class);
- startActivity(intent);
} catch (RemoteException e) {
Log.e("ndt", "Error in busy-wait
loop.", e);
} catch (InterruptedException e) {


  • [ndt-dev] [ndt] r407 committed - Start re-factoring to re-use one activity for all test phases., ndt, 06/24/2011

Archive powered by MHonArc 2.6.16.

Top of Page