aboutsummaryrefslogtreecommitdiffstats
path: root/java/BluetoothManager.java
Commit message (Collapse)AuthorAgeFilesLines
* Move java classes to package sub folderSven Gothel2020-02-081-341/+0
|
* BluetoothManager: Expose native get_default_adapter() to java as ↵Sven Gothel2020-02-011-0/+8
| | | | | | | getDefaultAdapter() Notable: manager.stopDiscovery() doesn't lead to !manager.getDiscovering() (radio silence). Only manager.getDefaultAdapter().stopDiscovery() worked.
* BluetoothManager: Allow launching from plain class files (no jar package w/ ↵Sven Gothel2020-01-311-1/+1
| | | | version number)
* Added Java method BluetoothManager::getDiscovering()Misterioso2017-10-031-0/+5
| | | | | Added a method to check if a discovery process is running directly from the BluetoothManager (completion to startDiscovery and stopDiscovery). Signed-off-by: Jorge Esteves <[email protected]>
* Removed System.exit from BluetoothManagerpierantoniomerlino2017-09-071-3/+2
| | | | Signed-off-by: pierantoniomerlino <[email protected]>
* Fixed typo in BluetoothDevice.cxx Java_tinyb_BluetoothDevice_getTxPowerStephan Bodmer2017-08-181-0/+82
| | | | | | | | | | | | | | | | | | instead of getTXPower Fixed class name in helper.cxx get_bluetooth_type, "Ltinyb/BluetoothType" instead of "l" Added a method removeDevices() in BluetoothAdapter class to remove all the known devices (getDevices() will return an empty list after this call). Added startNearbyDiscovery() and stopNearbyDiscovery() in BlutoothManager main class. The start method will clear the internal device list and send a notification to a listener when a new device is found. The implementation is a simple thread which will poll each x miliseconds the list of known devices and compare it to an internal list of known devices, if the device is new, an event is fired to the passed listener. Signed-off-by: sbodmer <[email protected]>
* Force loading of tinyb libpierantoniomerlino2017-07-181-0/+1
| | | | Signed-off-by: pierantoniomerlino <[email protected]>
* java: throw BluetoothExceptions explicitlyPetre Eftime2016-07-051-4/+4
| | | | Signed-off-by: Petre Eftime <[email protected]>
* Add functions to retrieve version information. Check library versions in ↵Petre Eftime2016-05-041-1/+22
| | | | | | getBluetoothManager. Signed-off-by: Petre Eftime <[email protected]>
* java: Add description to find functionsPetre Eftime2016-03-181-4/+100
| | | | Signed-off-by: Petre Eftime <[email protected]>
* java: Add find methods to classes, add AsyncTinyB examplePetre Eftime2016-03-071-0/+16
| | | | Signed-off-by: Petre Eftime <[email protected]>
* jni: Implemented getObject* functions and added defensive checksAndrei Vasiliu2016-02-041-2/+12
| | | | Signed-off-by: Andrei Vasiliu <[email protected]>
* java: Added "autoload library" codeStefan Andritoiu2016-01-271-0/+9
| | | | Signed-off-by: Stefan Andritoiu <[email protected]>
* java: Created Java package tinybAndrei Vasiliu2016-01-251-0/+2
| | | | Signed-off-by: Andrei Vasiliu <[email protected]>
* java: Added javadoc documentation to tinyb Java APIStefan Andritoiu2016-01-251-0/+28
| | | | Signed-off-by: Stefan Andritoiu <[email protected]>
* Java: Added copyright headerAndrei Vasiliu2016-01-131-0/+24
| | | | Signed-off-by: Andrei Vasiliu <[email protected]>
* Java: Added Java APIAndrei Vasiliu2016-01-121-0/+40
Signed-off-by: Andrei Vasiliu <[email protected]>