ndt-dev - [ndt-dev] [ndt] r397 committed - Start re-factoring activity to more closely match HTML5 front end.
Subject: NDT-DEV email list created
List archive
[ndt-dev] [ndt] r397 committed - Start re-factoring activity to more closely match HTML5 front end.
Chronological Thread
- From:
- To:
- Subject: [ndt-dev] [ndt] r397 committed - Start re-factoring activity to more closely match HTML5 front end.
- Date: Fri, 10 Jun 2011 21:05:45 +0000
Revision: 397
Author:
Date: Fri Jun 10 12:49:15 2011
Log: Start re-factoring activity to more closely match HTML5 front end.
http://code.google.com/p/ndt/source/detail?r=397
Modified:
/branches/android/Android/AndroidManifest.xml
/branches/android/Android/res/values/strings.xml
/branches/android/Android/src/net/measurementlab/ndt/AndroidNdt.java
=======================================
--- /branches/android/Android/AndroidManifest.xml Thu Jul 8 12:32:30
2010
+++ /branches/android/Android/AndroidManifest.xml Fri Jun 10 12:49:15
2011
@@ -2,8 +2,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="net.measurementlab.ndt" android:versionCode="1"
android:versionName="1.0b1">
- <application android:icon="@drawable/ndt" android:label="@string/app_name">
- <activity android:name=".AndroidNdt" android:label="@string/app_name">
+ <application android:icon="@drawable/ndt" android:label="@string/app_name" android:theme="@style/NdtTheme">
+ <activity android:name=".AndroidNdt2" android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
@@ -14,7 +14,7 @@
<!-- Statistics.java: Report detailed information to user -->
<activity android:name=".Statistics" android:label="@string/statistics" />
</application>
- <uses-sdk android:minSdkVersion="2" />
+ <uses-sdk android:minSdkVersion="8" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
=======================================
--- /branches/android/Android/res/values/strings.xml Wed Jun 9 15:23:05 2010
+++ /branches/android/Android/res/values/strings.xml Fri Jun 10 12:49:15 2011
@@ -34,4 +34,7 @@
<string name="email_title">NDT Mobile Client for Android Result on %1$s</string>
<string name="intent_error">Intent Error.</string>
<string name="test_again">Press Start to test again.</string>
+ <string name="mlab">M-Lab</string>
+ <string name="mlabdesc">Network Diagnostic Tool (NDT) provides a sophisticated speed and diagnostic test. An NDT test reports more than just the upload and download speeds — it also attempts to determine what, if any, problems limited these speeds, differentiating between computer configuration and network infrastructure problems. While the diagnostic messages are most useful for expert users, they can also help novice users by allowing them to provide detailed trouble reports to their network administrator.</string>
+
</resources>
=======================================
--- /branches/android/Android/src/net/measurementlab/ndt/AndroidNdt.java Wed Jun 9 15:23:05 2010
+++ /branches/android/Android/src/net/measurementlab/ndt/AndroidNdt.java Fri Jun 10 12:49:15 2011
@@ -146,18 +146,23 @@
serverName = Constants.SERVER_NAME[serverNumber];
serverHost = Constants.SERVER_HOST[serverNumber];
uiHandler = new UiHandler(Looper.myLooper());
- uiServices = new AndroidUiServices(this, uiHandler);
- textViewMain = (TextView) findViewById(R.id.TextViewMain);
- textViewMain.setMovementMethod(ScrollingMovementMethod.getInstance());
- textViewMain.setClickable(false);
- textViewMain.setLongClickable(false);
- textViewMain.append("\n" + getString(R.string.version_indicator, NdtTests.VERSION));
- textViewMain.append("\n" + getString(R.string.default_server_indicator, serverName));
- textViewMain.append("\n");
- mobileInfo = getMobileProperty();
- textViewMain.append(mobileInfo);
- textViewMain.append("\n");
- initComponents();
+ try {
+ uiServices = new AndroidUiServices(this, uiHandler);
+
+ textViewMain = (TextView) findViewById(R.id.TextViewMain);
+
textViewMain.setMovementMethod(ScrollingMovementMethod.getInstance());
+ textViewMain.setClickable(false);
+ textViewMain.setLongClickable(false);
+ textViewMain.append("\n" + getString(R.string.version_indicator, NdtTests.VERSION));
+ textViewMain.append("\n" + getString(R.string.default_server_indicator, serverName));
+ textViewMain.append("\n");
+ mobileInfo = getMobileProperty();
+ textViewMain.append(mobileInfo);
+ textViewMain.append("\n");
+ initComponents();
+ } catch (Exception e) {
+ Log.i("ndt", "Error in create.", e);
+ }
}
/**
- [ndt-dev] [ndt] r397 committed - Start re-factoring activity to more closely match HTML5 front end., ndt, 06/10/2011
Archive powered by MHonArc 2.6.16.