tags:

views:

411

answers:

2

First, what ScanResult.capabilities actually is? Because I don't have a device, I can't know the format of it. Second, how to connnect to a specific AP? I look through the api doc but found no method to implement the function. Do I miss something?

A: 

I tried in vain to just browse up the relevant code, knowing that the Android platform is open source, but failed. However, it should still be possible if you're willing to follow the guide on how to get the source.

Of course, reading the source to see how they generate that particular string might well result in your app being "locked" against a particular implementation, I saw indications that they intend to change it from a string into something a bit more structured, later.

unwind
A: 

I am solving these questions too. For example, ad hoc network capabilities are: "[WEP][IBSS]". For AP: "[WPA-PSK-TKIP+CCMP]". I got it on acer liquid with android 1.6. Second qustion i didn't solve yet.

E1