summaryrefslogtreecommitdiff
path: root/same-android/src/main/java/com/orbekk/SameService.java
diff options
context:
space:
mode:
authorKjetil Ørbekk <kjetil.orbekk@gmail.com>2012-02-13 20:15:39 +0100
committerKjetil Ørbekk <kjetil.orbekk@gmail.com>2012-02-13 20:15:39 +0100
commit5bc18853d378e8d6c6f965a3e16f1c388cfb8210 (patch)
tree82cb2a9e8adcb331251bd81811cb068a317d07f3 /same-android/src/main/java/com/orbekk/SameService.java
parent5190cf7a9b1db1ef0d7cac007ce73aff248203f0 (diff)
Display discovered networks in user interface.
Diffstat (limited to 'same-android/src/main/java/com/orbekk/SameService.java')
-rw-r--r--same-android/src/main/java/com/orbekk/SameService.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/same-android/src/main/java/com/orbekk/SameService.java b/same-android/src/main/java/com/orbekk/SameService.java
index 305bf44..bc758ab 100644
--- a/same-android/src/main/java/com/orbekk/SameService.java
+++ b/same-android/src/main/java/com/orbekk/SameService.java
@@ -41,19 +41,19 @@ public class SameService extends Service {
private SameController sameController = null;
private Configuration configuration = null;
- // A list with alternating network names and urls.
- private ArrayList<String> availableNetworks = new ArrayList<String>();
+ private ArrayList<String> networkNames = new ArrayList<String>();
+ private ArrayList<String> networkUrls = new ArrayList<String>();
private NetworkNotificationListener networkListener =
new NetworkNotificationListener() {
@Override
public void notifyNetwork(String networkName, String masterUrl) {
logger.info("notifyNetwork({})", networkName);
- availableNetworks.add(networkName);
- availableNetworks.add(masterUrl);
+ networkNames.add(networkName);
+ networkUrls.add(masterUrl);
Intent intent = new Intent(AVAILABLE_NETWORKS_UPDATE);
intent.putStringArrayListExtra(AVAILABLE_NETWORKS,
- availableNetworks);
+ networkNames);
sendBroadcast(intent);
}
};