Back to project page WifiHotspotBTEnabler.
The source code is released under:
GNU General Public License
If you think the Android project WifiHotspotBTEnabler 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 ca.diogosoares.android.HotspotBTEnabler; /*www . ja v a 2 s . c o m*/ import java.util.Comparator; /*** * * @author Diogo Soares, 02/2014 * */ public class BTDevice { public String name = ""; public String address = ""; public BTDevice() {} public BTDevice(String name, String address) { this.name = name; this.address = address; } @Override public String toString() { return name + " (" + address +")"; } } class BTDeviceComparator implements Comparator<BTDevice> { @Override public int compare(BTDevice o1, BTDevice o2) { return o1.toString().compareTo(o2.toString()); } }