All Questions
Tagged with bluetooth-lowenergy java
539
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
54
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 ...
-1
votes
0
answers
20
views
How to Request Bluetooth Permission with a Pop-up in Android 13 while doing this I got an error
Android Bluetooth Permission not working on Android 13.
I want pop up for Permission to ask user for Bluetooth and location
Getting error in permission
package com.eapro.myproject
import android....
0
votes
1
answer
21
views
Standard BLE library android.bluetooth. DFU mode
How do I download DFU firmware via the BLE standard library (android.bluetooth) in Android Studio?
I am using an NRF controller. I debug via NRF Connect. There is an option to upload firmware via DFU ...
0
votes
0
answers
32
views
i am not able to connect to ble device,where is the problem in my mainactivity.java code can somebody help me fix it?
this is mainactivity.java that is in android studio.
package com.example.bleapp;
import android.Manifest;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothGatt;
import ...
-1
votes
0
answers
21
views
Android BLE Advertise & Gatt Server Which NOT Require Pairing/Bonding to Connect
I'm using the same code from here :
https://github.com/itanbp/android-ble-peripheral-central/tree/master/app/src/main/java/itan/com/bluetoothle
I start BLE advertising and GattServer. I added my read &...
0
votes
0
answers
24
views
Flutter: universal_ble package. Can't set notification on the bluetooth device
I have 2 apps: desktop on Flutter and mobile Java on Android. What I'm tryin to do is to connect to the Android app's GattServer and set its characteristic to notify me when its value change through ...
0
votes
0
answers
48
views
The instrument is not functional with android BLE writeCharacteristic
It's my first time posting questions, so if it's not enough, I'll post more.
I wrote the code writeCharacteristic using Java.
I get a return if I sent it normally, but there is no response from the ...
1
vote
0
answers
26
views
Identical phones with identical app and identical setup; one can find bluetooth devices the other cannot
I have several smartphones of the same model. Five of them I have been using for testing and building an app. Now I have to deploy the app the the other smartphones I have had laying in a drawer. ...
0
votes
0
answers
123
views
BLE Android Nordic
I'm writing an android application, using
no.nordicsemi.android:ble:2.3.1.
I connect to the sensor and write 49KB data to it.
Before recording, I set the desired interval (CONNECTION_PRIORITY_HIGH 11....
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
2
answers
220
views
How to obtain Bluetooth LE Appearance on Android using ScanRecord.getAdvertisingDataMap or is it possible that way?
I'm trying to obtain Appearance data of Bluetooth Low Energy devices in Android (in a Flutter app but seemingly iOS doesn't provide appearance, so I'm focusing on Android). ScanRecord has a https://...
0
votes
1
answer
132
views
Parsing BLE Adversitement Packages in Android
I am trying to read data from a BLE transmitter connected to a scale that measures in kilograms, I am able to read data, and it varies when I change the weight on the scale, but I am not able to ...
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 ...
0
votes
1
answer
82
views
StartForeground_Service still does not work
I'm working on a Bluetooth Advertisement Program. It compiles in SDK 28. As required by the documentation I added the permission android.permission.FOREGROUND. But even now, if the button for ...