All Questions
Tagged with android-bluetooth java
274
questions
0
votes
1
answer
47
views
How to use BLE specification XML service files?
The link BLE device information XML is a BLE service XML file copied from the original GATT specification files. Can I and how can I use this XML file for my project on Android Studio in Java? I am ...
0
votes
1
answer
55
views
How to read Bluetooth Low Energy GAP characteristic values as a string?
Hello I am new to developing an app and even newer to the concept of BLE. I am developing an application on android using Java that is capable of scanning BLE devices nearby. The main purpose is to ...
0
votes
1
answer
39
views
How can I speed up my Android Bluetooth reception?
Hardware
The Bluetooth device is powered by a chip called atmega32 and uses a bm78 Bluetooth chip.
The clock frequency of the MCU chip is 14.7456 MHz.
The baud rate of Bluetooth device is 115200.
The ...
-1
votes
1
answer
21
views
how to stop blue tooth app process and nfc service process or other name of process in system app in android 12 with java and flamingo?
I use android studio 2022.2.1 flamingo JDK 17 Gradle 8.7
blue tooth and nfc are off but i discover the system app named bluetooth app and nfc services app sometimes running even I manually stop the ...
0
votes
1
answer
23
views
How do I transfer a BluetoothSocket from one activity to another?
In my Android app, I've set up two activities:
Connection Activity: This activity helps find and connect to
Bluetooth devices. It shows a list of both paired and discoverable
devices.
Control ...
0
votes
0
answers
22
views
How can I convert a spannableStringBuilder to integer in java on android without the app crashing?
So I am a highschool student (relevant cause I no real android knowledge) and I am making this app for bluetooth communication.
It should receive the values, convert them to integers, do some math and ...
1
vote
0
answers
54
views
How to receive Bluetooth value in Android app
BluetoothGattCallback mGattCallback = new BluetoothGattCallback() {
@SuppressLint("MissingPermission")
@Override
public void onConnectionStateChange(BluetoothGatt gatt, int ...
0
votes
0
answers
50
views
How to listen to media session events of another app
I have created an app that can listen to headphones action using media sessions and perform custom actions but when another music player platform like spotify or default music player is used media ...
0
votes
0
answers
72
views
W/BluetoothAdapter(25289): getBluetoothService() called with no BluetoothManagerCallback
I am developing an app using dart and flutter,
the app is about printing out some strings using a mobile Bluetooth printer (Honeywell RP4)
i used many packages from pub.dev and usually i get the ...
0
votes
0
answers
44
views
Exception: JVM exception occurred: read failed, socket might closed or timeout, read ret: -1 java.io.IOException
I am encountering following error when connecting my Kivy application to Bluetooth.
Exception: JVM exception occurred: read failed, socket might closed or timeout, read ret: -1 java.io.IOException
I ...
1
vote
0
answers
290
views
Bluetooth connection with Android (versions: 12,13,14)using Java android
Hello Stack Overflow Community,
I have encountered compatibility issues with my Android app in JAVA that uses the HC-05 Bluetooth module. We developed an android application to interact with the ...
0
votes
1
answer
52
views
BlueCove library is not supported for Android
I connected to a Bluetooth device using the BlueCove library in a non-Android Java project. It works fine when testing on Windows, but when I test it on an Android device, I get the following error.
...
0
votes
0
answers
16
views
How can I send a command to the ESP32S Bluetooth module with the mobile application and get the response?
I researched a lot of libraries and sample applications on the internet. But none of them worked because they were up to date. I'm still new to Java. There are two sample source codes below.
First ...
0
votes
1
answer
1k
views
Android 13 Need android.permission.BLUETOOTH_CONNECT when device already connected to Bluetooth Headset
iam using Android 13 sdk 33.
My app is using bluetooth headset.
I got the SecurityException only when iam using Android 13 and i start the application while the device is already connected to the ...
0
votes
0
answers
126
views
warning: [deprecation] getValue() in BluetoothGattCharacteristic has been deprecated in the code: byte[] countByte = characteristic.getValue();
I am updating my current code to API33, i got the warning- warning: [deprecation] getValue() in BluetoothGattCharacteristic has been deprecated
byte[] countByte = characteristic.getValue();
In the ...