summaryrefslogtreecommitdiff
path: root/same-android/src/main/java/com/orbekk/same/android
diff options
context:
space:
mode:
authorKjetil Ørbekk <kjetil.orbekk@gmail.com>2012-03-12 13:03:33 +0100
committerKjetil Ørbekk <kjetil.orbekk@gmail.com>2012-03-12 13:04:01 +0100
commit5cd824833cce13bd71a330e7b2767e6390d54bc0 (patch)
treef60299d5342e7596a3d8169568d13e4f02173012 /same-android/src/main/java/com/orbekk/same/android
parent736507d9cffc567afef96cdeaf9ab998c037cd39 (diff)
Add ConnectionState to Client.
Diffstat (limited to 'same-android/src/main/java/com/orbekk/same/android')
-rw-r--r--same-android/src/main/java/com/orbekk/same/android/ClientInterfaceBridge.java7
-rw-r--r--same-android/src/main/java/com/orbekk/same/android/StateViewerActivity.java4
2 files changed, 8 insertions, 3 deletions
diff --git a/same-android/src/main/java/com/orbekk/same/android/ClientInterfaceBridge.java b/same-android/src/main/java/com/orbekk/same/android/ClientInterfaceBridge.java
index 081b7ed..47a6535 100644
--- a/same-android/src/main/java/com/orbekk/same/android/ClientInterfaceBridge.java
+++ b/same-android/src/main/java/com/orbekk/same/android/ClientInterfaceBridge.java
@@ -18,6 +18,7 @@ import android.os.Messenger;
import android.os.RemoteException;
import com.orbekk.same.ClientInterface;
+import com.orbekk.same.ConnectionState;
import com.orbekk.same.State;
import com.orbekk.same.State.Component;
import com.orbekk.same.StateChangedListener;
@@ -193,4 +194,10 @@ public class ClientInterfaceBridge implements ClientInterface {
return VariableFactory.create(this);
}
+ /** Doesn't work yet. Maybe we needs a listener interface? */
+ @Override
+ public ConnectionState getConnectionState() {
+ return null;
+ }
+
}
diff --git a/same-android/src/main/java/com/orbekk/same/android/StateViewerActivity.java b/same-android/src/main/java/com/orbekk/same/android/StateViewerActivity.java
index 679e3b6..fac73c0 100644
--- a/same-android/src/main/java/com/orbekk/same/android/StateViewerActivity.java
+++ b/same-android/src/main/java/com/orbekk/same/android/StateViewerActivity.java
@@ -9,12 +9,10 @@ import android.app.Activity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.ListView;
-import android.widget.Toast;
-import com.orbekk.same.android.R;
import com.orbekk.same.State;
-import com.orbekk.same.StateChangedListener;
import com.orbekk.same.State.Component;
+import com.orbekk.same.StateChangedListener;
public class StateViewerActivity extends Activity {
private Logger logger = LoggerFactory.getLogger(getClass());