android - Failed to initiate ap scan : how avoid it? -


i want make many ap scan htc phone under android 1.6. use method :

wifimanager.startscan(); 

i want repeat 4 ms. problem : actually, logcat shows many times : "failed initiate ap scan". searched on website , found method :

wifi.startscanactive(); 

but eclipse doesn't know it. if method exist android 1.6, better method case startscan?

so main question : how can avoid message "failed initiate ap scan" in order improve rate of successful scan?

it's not possible scan fast 4ms on android.

you expect 400-500ms minimum depending on different phones.

startscanactive() hidden api, can access via reflect

method method = wifimanager.class.getmethod("startscanactive"); method.setaccessible(true); object r = method.invoke(null);  // null static hidden method 

Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -