Skip to main content
The 2024 Developer Survey results are live! See the results

All 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 ...
warbi's user avatar
  • 2,725
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 ...
Brian Reinhold's user avatar
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 ...
Akki's user avatar
  • 803
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 ...
Hyeonseo Yang's user avatar
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 ...
Daniel Brewer's user avatar
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 ...
Manvi Gupta's user avatar
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 ...
EarlGrey's user avatar
  • 531
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,...
Jame's user avatar
  • 3,816
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 ...
Simon's user avatar
  • 10k
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 ...
user3452075's user avatar
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 ...
Andrew Irwin's user avatar
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 ...
madboy's user avatar
  • 21
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 ...
Amit's user avatar
  • 51
0 votes
1 answer
270 views

How to get bluetooth profiles status in android

Is there anyway to get the bluetooth profiles status programatically?
Sainath's user avatar
  • 31
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 ...
Sainath's user avatar
  • 31

15 30 50 per page