Example #1
0
 /** 显示请求后的终端周围WiFi列表对话框 */
 private void showWiFiListDialog(ArrayList<HashMap<String, Object>> list) {
   WiFiAlertDialog wifiDialog = new WiFiAlertDialog(mContext);
   wifiDialog.setTitle("WiFi列表");
   WiFiAdapter adapter = new WiFiAdapter(mContext, list);
   wifiDialog.setAdapter(adapter);
   wifiDialog.setOnItemClickListenerEditText(et_wifi_name, list);
 }
Example #2
0
 /** 显示在线终端设备对话框 */
 private void showOnlineTermList() {
   ArrayList<HashMap<String, Object>> list = new ArrayList<HashMap<String, Object>>();
   HashMap<String, Object> map = null;
   int len = onlineTermList.size();
   for (int i = 0; i < len; i++) {
     map = new HashMap<String, Object>();
     map.put("WiFiSSID", onlineTermList.get(i).get("deviceName"));
     map.put("WiFiLevel", R.drawable.icon_device_name);
     list.add(map);
   }
   WiFiAlertDialog wifiDialog = new WiFiAlertDialog(mContext);
   wifiDialog.setTitle("在线设备列表");
   WiFiAdapter adapter = new WiFiAdapter(mContext, list);
   wifiDialog.setAdapter(adapter);
   wifiDialog.setOnItemClickListenerButton(button_wifi_term_select, onlineTermList);
 }