All Questions
Tagged with android-bluetooth android-service
26
questions
3
votes
0
answers
4k
views
Android 12 - Launching Foreground Service from a background Bluetooth LE scan BroadcastReceiver throws ForegroundServiceStartNotAllowedException
Edit: I believe this to be a bug in AOSP. Please would everyone star this issue so it gets more attention.
My app records the user's trip while driving a vehicle using a Foreground Service to capture ...
1
vote
1
answer
548
views
Android 12 breaks AIDL/IPC with runtime permissions on IPC APK
Pre-Android 12 I could create proprietary Bluetooth health device driver service APKs and exchange info with them from a main application via AIDL. The driver APKs have no UI and launch nothing when ...
0
votes
0
answers
294
views
Not able to turn on/off Bluetooth/WiFi on few devices
My App has a background service which keeps running as foreground service. This service controls the device WiFi/Bluetooth programmatically on certain conditions. Everything works fine BUT on few ...
0
votes
1
answer
227
views
How can I stop a system service programmatically on a rooted android phone?
I am developing an androd bluetooth telnet(?) server which gets commands via bluetooth OPP. My plan is to monitor incoming Opp push, check if it is from certain user, then starting a worker service ...
1
vote
1
answer
755
views
Making a bluetooth service that sends a signal to arduino bluetooth module
So I have been working with arduino for a while and now I've been trying to connect to the blue-tooth module with android studio. I was able to get the blue-tooth to connect but I'm having issues ...
1
vote
1
answer
223
views
Start service on Android O irrespective of app is running or not
I am building an app which will be connected to a bean device (which gives accelerometer reading) via Bluetooth. I have to read the accelerometer readings every 20 secs irrespective of the app is ...
1
vote
3
answers
1k
views
Service doesn't stop when exiting app by press of the back button
In my app, a Service is started in the background to handle BLE communication with a BLE device. I have an Activity (StartActivity) on start of the app which searches the BLE device and when it found ...
0
votes
1
answer
4k
views
Can automatically connect to paired bluetooth device when in range?
I have two Android phones. I want to make an auto connection between them via Bluetooth. For example,
I have my android phone which paired to another Bluetooth. When I put these phone near together,...
0
votes
1
answer
106
views
Android service - invoking methods and passing objects, without binding
I have an app where I need to establish and maintain a bluetooth connection with another phone. However, this connection needs to remain alive even if the screen turns off.
So the way I've done this ...
1
vote
1
answer
95
views
Reading data from Microsoft Band sudenly stops [Android]
Inside an android Service I connect to the Microsoft Band 2 and read data from all the sensors.(I want to receive data even if the screen is locked).
However, after a while I stop receiving any ...
0
votes
1
answer
683
views
dynamically register receiver which on receive starts a service
In my main activity I have a check box which when checked registers a receiver to listen out for changes to the bluetooth device i.e bluetooth connected to a device.
when the phone becomes connected ...
2
votes
0
answers
482
views
Display notification on the condition
The situation is as follows: Depending on certain conditions from time to time sent with intent BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE. Because the user must confirm the action and the phone may ...
0
votes
1
answer
713
views
Android: BLE device is sending packet time is slow and get only max 20 byte at a time
I am developing health application so use BLE device(Hardware).
From BLE Device send 25 byte at one packet but on mobile(Android)
side we receive 20 byte. (I am refer this link)
When receiving each ...
0
votes
1
answer
270
views
How to get bluetooth profiles status in android
Is there anyway to get the bluetooth profiles status programatically?
1
vote
1
answer
517
views
App running in service mode can have user interface?
My application runs when bluetooth is on and even it should detect events from other devices if app is in backgroud mode. So i have to make my app in Service mode. Is it possible to have User ...