Need help in wifi programming

Put your problem here if it does not fit any of the other categories.

Need help in wifi programming

Postby tappy » Sun Jun 28, 2009 8:18 am

Hey all, i need some help regarding the addnetwork function. It seems tat i cant add into it and the configuration network size always return 0 or 1 . Thanks in advance for helping.

Code: Select all
for(int i=0;i<wifiList.size();i++){
       apList.add(wifiList.get(i).SSID.toString());
       WifiConfiguration wc = new WifiConfiguration();
       wc.SSID= wifiList.get(i).SSID;
       wc.BSSID = wifiList.get(i).BSSID;
       wc.networkId = i;
       wifi.addNetwork(wc);
}         
wifiConfigurations = wifi.getConfiguredNetworks();
System.out.println("CONFIGURATION NETWORK SIZE " + wifi.getConfiguredNetworks().size());
tappy
Freshman
Freshman
 
Posts: 8
Joined: Thu May 28, 2009 10:28 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 19 guests