Skip to Content.
Sympa Menu

ndt-dev - [ndt-dev] [ndt] r402 committed - Rough out next screen, wire up intent.

Subject: NDT-DEV email list created

List archive

[ndt-dev] [ndt] r402 committed - Rough out next screen, wire up intent.


Chronological Thread 
  • From:
  • To:
  • Subject: [ndt-dev] [ndt] r402 committed - Rough out next screen, wire up intent.
  • Date: Mon, 20 Jun 2011 14:03:28 +0000

Revision: 402
Author:

Date: Mon Jun 20 07:02:17 2011
Log: Rough out next screen, wire up intent.
http://code.google.com/p/ndt/source/detail?r=402

Modified:
/branches/android/Android/AndroidManifest.xml
/branches/android/Android/src/net/measurementlab/ndt/AndroidNdt2.java
/branches/android/Android/src/net/measurementlab/ndt/Constants.java

=======================================
--- /branches/android/Android/AndroidManifest.xml Fri Jun 10 12:49:15
2011
+++ /branches/android/Android/AndroidManifest.xml Mon Jun 20 07:02:17
2011
@@ -9,6 +9,12 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
+ <activity android:name=".ServerLocation" android:label="@string/app_name" android:theme="@style/NdtTheme">
+ <intent-filter>
+ <category android:name="android.intent.category.DEFAULT" />
+ <action android:name="net.measurementlab.ndt.ServerLocation" />
+ </intent-filter>
+ </activity>
<!-- SelectServer.java: Options Activity for selecting the test server -->
<activity android:name=".SelectServer" android:label="@string/choice_server_title" />
<!-- Statistics.java: Report detailed information to user -->
=======================================
--- /branches/android/Android/src/net/measurementlab/ndt/AndroidNdt2.java Fri Jun 17 08:22:59 2011
+++ /branches/android/Android/src/net/measurementlab/ndt/AndroidNdt2.java Mon Jun 20 07:02:17 2011
@@ -3,16 +3,20 @@
package net.measurementlab.ndt;

import android.app.Activity;
+import android.content.Intent;
import android.graphics.Typeface;
import android.os.Bundle;
import android.util.Log;
+import android.view.View;
+import android.view.View.OnClickListener;
+import android.widget.Button;
import android.widget.TextView;

/**
* UI Thread and Entry Point of NDT mobile client.
*/
public class AndroidNdt2 extends Activity {
-
+
/**
* Initializes the activity.
*/
@@ -25,5 +29,19 @@
"fonts/League_Gothic.otf");
TextView textView = (TextView) findViewById(R.id.MLabDesc);
textView.setTypeface(typeFace);
+
+ Button startButton = (Button) findViewById(R.id.ButtonStart);
+ startButton.setOnClickListener(new OnClickListener() {
+
+ @Override
+ public void onClick(View v) {
+ try {
+ Intent intent = new
Intent(Constants.SERVER_LOCATION);
+ startActivity(intent);
+ } catch (Throwable t) {
+ Log.e("ndt", "Problem invoking server
location.", t);
+ }
+ }
+ });
}
}
=======================================
--- /branches/android/Android/src/net/measurementlab/ndt/Constants.java Thu Jul 8 12:32:21 2010
+++ /branches/android/Android/src/net/measurementlab/ndt/Constants.java Mon Jun 20 07:02:17 2011
@@ -28,6 +28,7 @@
public static final int ACTIVITY_STATISTICS = 1;

// Intents ID
+ public static final String SERVER_LOCATION = "net.measurementlab.ndt.ServerLocation";
public static final String INTENT_SERVER_NO = "serverno";
public static final String INTENT_STATISTICS = "statistics";
public static final String INTENT_LOCATION = "location";


  • [ndt-dev] [ndt] r402 committed - Rough out next screen, wire up intent., ndt, 06/20/2011

Archive powered by MHonArc 2.6.16.

Top of Page