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. MMS not going through to iphone

Hello All,
We have an issue with the MMS application that we have developed. This
is a third party MMS app using http, We can send message to all phones
from the Android, except for iphone. When we send the message to an
iphone from the Android, we get a REJECT alert.

Can anyone help?

Many thanks,


2. Installed Android 2.3 SDK -- Ant Fails

Ever since I installed Gingerbread I am now getting this error when I
attempt to do an ant compile.  I ran android update project just to
make sure things were up to date.  I did happen to notice that
android-9 DOES NOT have an ant folder.  I do realize I'm setup to
build against API Level 7.

This is the error:

bher...@gotham:/Development/android/zlcore(master)$ ant compile
Buildfile: /Development/android/zlcore/build.xml
    [setup] Android SDK Tools Revision 8
    [setup] Project Target: Google APIs
    [setup] Vendor: Google Inc.
    [setup] Platform Version: 2.1-update1
    [setup] API level: 7
    [setup] Project Type: Android Library
    [setup] ------------------
    [setup] Resolving library dependencies:
    [setup] No library dependencies.
    [setup] ------------------
    [setup] Importing rules file: tools/ant/lib_rules.xml

     [echo] Creating output directories if needed...


     [echo] Generating / from the resources...

     [echo] Compiling aidl files into Java classes...

Reference android.libraries.src not found.


3. Fwd: [ASK] Newbie coders in android

4. ShellCommandUnresponsiveException

5. Google Maps versi 5.0 !

6. (WTB) Gtab

7. Android Search Dialog behavior