I'm testing WifiManager on a G1 phone, and I have a couple questions.
I don't think I'm thinking about this thing correctly yet.
Anyway, I have an Activity class which is derived from ListActivity,
because I want to list all of the SSID's and their signal strengths.
This class has a member which is a WifiManager. This calls
WifiManager.startScan(). I have another class which is derived from
BroadcastReceiver, which is only set up for this purpose (it captures
the android.net.wifi.SCAN_RESULTS" action):
<code>
<receiver android:name="ScanReceiver" android:enabled="true">
<intent-filter>
<action android:name="android.net.wifi.SCAN_RESULTS" />
</intent-filter>
</receiver>
</code>
How can I call WifiManager.getScanResults() in this BroadcastReceiver
class? How can I populate the Activity GUI with information? Do I
have to create an intent, which is handled by the Activity class? Am
I doing this correctly?
I think the short answer for you guys would be to point me to the G1
source for listing SSIDs (if it's part of the release), since I have
that at my disposal.
Thanks,
Benry
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---