diff options
author | Kjetil Ørbekk <kjetil.orbekk@gmail.com> | 2012-02-14 13:40:07 +0100 |
---|---|---|
committer | Kjetil Ørbekk <kjetil.orbekk@gmail.com> | 2012-02-14 13:40:07 +0100 |
commit | c8274d3622d68e020de899c4e16c0a4ccb94db12 (patch) | |
tree | d3522d030ac747f67c79c49165b77ead85ab5af9 /same-android/src/main/java/com/orbekk | |
parent | ebf3d3451e1a04e4f8b0c762fe6c0297884983e5 (diff) |
same-android: Join networks from network list.
Diffstat (limited to 'same-android/src/main/java/com/orbekk')
-rw-r--r-- | same-android/src/main/java/com/orbekk/same/SameControllerActivity.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/same-android/src/main/java/com/orbekk/same/SameControllerActivity.java b/same-android/src/main/java/com/orbekk/same/SameControllerActivity.java index c9829a7..59ec6e2 100644 --- a/same-android/src/main/java/com/orbekk/same/SameControllerActivity.java +++ b/same-android/src/main/java/com/orbekk/same/SameControllerActivity.java @@ -64,9 +64,10 @@ public class SameControllerActivity extends Activity { new AdapterView.OnItemClickListener() { @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { - Toast.makeText(SameControllerActivity.this, - "Join network " + networkNames.get(position), - Toast.LENGTH_SHORT).show(); + String networkName = networkNames.get(position); + int networkIndex = networkNames.indexOf(networkName); + String masterUrl = networkUrls.get(networkIndex); + joinNetwork(masterUrl); } }; |