// To use this WifiManager method, AndroidManifest.xml must have the 
following permission:

// <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>

WifiManager wifiManager = (WifiManager) getSystemService(Context.
WIFI_SERVICE);

 List<ScanResult> results = wifiManager.getScanResults();


for (Iterator iterator = results.iterator(); iterator.hasNext();) {

ScanResult s = (ScanResult) iterator.next();

String ssid = s.SSID;

 }

On Thursday, August 16, 2012 11:32:15 PM UTC-5, Meena Rengarajan wrote:
>
> How can i use SSID in a List in Android(ie) in my code List<ScanResult> 
> results; ?
>
> By using SSID Should get specific wifi enabled device properties by 
> programmatically. With that help, should transfer the datas between two 
> Wifi enabled devices in android. Can anyone help me in this ?
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to