Back to project page yousense-android-tracker.
The source code is released under:
Energy-efficent motion and location tracker for Android. Based on Mattias's power and tracking work. I plan to release it as GPL, once I have a paper published that goes with it. Might also release i...
If you think the Android project yousense-android-tracker listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.linnap.locationtracker.wifi; //from ww w . j a va 2 s. co m import java.util.ArrayList; import java.util.List; import android.net.wifi.ScanResult; public class ScanResultsData { List<Result> results; boolean failed; public ScanResultsData(List<ScanResult> scanResults, boolean failed) { this.results = new ArrayList<Result>(); this.failed = failed; if (scanResults != null) { for (ScanResult scanResult : scanResults) this.results.add(new Result(scanResult)); } } class Result { String ssid; String bssid; int level; public Result(ScanResult scanResult) { this.ssid = scanResult.SSID; this.bssid = scanResult.BSSID; this.level = scanResult.level; } } @Override public String toString() { return String.format("%d APs, scan %s", results.size(), failed ? "failed" : "succeeded"); } }