Here, this is my code, How do i wanna put all the strings which is
scanned and how do i wanna use Array adapter then how do i wanna get all
the values from list ?
Can anyone help me here please ?
wifi.startScan();
int length = 10;
String[] str1 =new String[length];
List<ScanResult> results = wifi.getScanResults();
for(int i=0;i<results.size();i++){
ScanResult result = (ScanResult)results[i];
str1[i] = result.SSID;
}
ArrayAdapter<String>adapter=new
ArrayAdapter<String>(this,android.R.layout.simple_list_item_1,android.R.id.text1,str1);
lv.setAdapter(adapter);
// for (ScanResult result : results) {
//Toast.makeText(this, result.SSID + " " +
result.level,Toast.LENGTH_SHORT).show();
--
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