Access point signal level updating

by Doughy » Wed, 17 Dec 2008 07:11:53 GMT

Sponsored Links
 I'm writing an application that requires that I check the signal
levels of all access points in the vicinity.  I am using the
WifiManager as follows:

WifiManager wm = (WifiManager)getSystemService(Context.WIFI_SERVICE);
boolean scanResult = wm.startScan();
String totalString = "";
List<ScanResult> scan = wm.getScanResults();

In the documentation, it states the following about startScan():
"public boolean startScan()
Request a scan for access points. Returns immediately. The
availability of the results is made known later by means of an
asynchronous event sent on completion of the scan."

Can anyone describe for me the process that occurs when startScan() is
called?  I'm particularly interested in how the signal levels are
calculated.  For example, say I am interested in the signal level for
access point "AP1."  Will the signal level for this be available every
time I call startScan, or does it rely a beacon coming from AP1?  Is
there a way for me to get close to continuous updates of the signal
levels for each access point, or will there always be a large delay in
the update?

If I'm not making sense, let me know and I'll clarify.

Other Threads

1. Exclude directory with adb pull

Hy guys, I need a help.
With my java application I have created a private directory in my
/data/data/ The name is "backup".

I want that when anyone execute "adb pull /data" my directory must not be
Can someone help me?

Thanks for all.


2. receiver enabled=false , problems after instantiation to set to listen

Hello List,

in my manifest I set an custom object Dots that extends a 
BroadcastReceiver to receive a certain broadcast string.

<intent-filter >
<action android:name="org.dadata.demo.receiverTest" />

I dont want Android to instantiate the object for me hence the enable=false.

In the Activity a new Dots is created

Dots dots = new Dots()

How do i now make the Dots start listening to the broadcasting. I tried 
this, but it doesnt work and it also feels much to complicated..

ComponentName cName = new 
PackageManager pm = this.getPackageManager();
pm.setComponentEnabledSetting(cName , 

Is there a workable easy way to do this?

Thank you,



3. how to show dialog with only the progress image

4. How can I add my definition variables in Android source?

5. how to show dialog with only the progress image

6. Struggling with google maps (SOLVED)

7. Connection status