Back to project page LibGeppa.
The source code is released under:
Apache License
If you think the Android project LibGeppa 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 net.cattaka.libgeppa.bluetooth; //from w w w . java 2 s. c o m import android.bluetooth.BluetoothAdapter; public class BluetoothAdapterFactory { public static BluetoothAdapterFactory mFactory = new BluetoothAdapterFactory(); public static synchronized IBluetoothAdapter getDefaultAdapter() { return mFactory.getAdapter(); } public static synchronized void replaceFactory(BluetoothAdapterFactory factory) { mFactory = factory; } public IBluetoothAdapter getAdapter() { return new BluetoothAdapterWrapper(BluetoothAdapter.getDefaultAdapter()); } }