6,704 questions
0
votes
0
answers
25
views
Start forground service in home widget
When I use the start foreground service in the home widget, I get the error ForegroundServiceStartNotAllowedException. And when I use start service, it runs without error. However, I need to use the ...
0
votes
1
answer
50
views
Access android device camera into a service
I am stuck into a problem programming an android application, using Java. I am implementing a Service, since my application should run in background, without affecting the other functionalities of the ...
0
votes
1
answer
46
views
java.lang.SecurityException: Not allowed to start service Intent without permission com.wssnps.permission.COM_WSSNPS
I am getting this exception
java.lang.SecurityException: Not allowed to start service Intent { act=data cmp=app/**.ServiceActivity (has extras) } without permission com.wssnps.permission.COM_WSSNPS
...
-1
votes
1
answer
40
views
android implement expire duration change using countdown timer even when app in background
I have an e commerce app in which I have a list of elements which comes from backend, each item has its expiration duration like (5 minutes) for showing discount.
Each time I call api, it sends me ...
0
votes
0
answers
52
views
How do I set up an Android service in the recommended app architecture
I have inherited a WearOS app, which needs to use the watch sensors to record health data, such as heart rate, temperature and acceleration. The app is made in Java, is around 7 years old and it doesn'...
0
votes
0
answers
27
views
How to Implement Foreground & Background Services in React Native CLI (Latest Android SDK)?
I am working on a React Native CLI project and need to implement Android services, specifically Foreground and Background services. However, most of the tutorials I’ve found are outdated, and the ...
0
votes
1
answer
63
views
Why is my android services process ends the moment it starts?
I'm trying to build an android service that continues the bluetooth low energy scan from my jetpack compose app that interacts with a ble beacon. My goal now is simply to get my foreground service ...
0
votes
1
answer
49
views
Start another application from a service in Android 11
I'm developing some applications with kotlin that will communicate with each other. This case affects 2 of those applications: a service and an application to play videos. The development is for a ...
1
vote
1
answer
224
views
Connect service with app via AIDL in AOSP
I'm trying to connect HAL service to the user app via AIDL. I've tried connecting app to service without luck. How to properly connect user app to HAL C++ service via AIDL? What am I doing wrong?
For ...
0
votes
0
answers
35
views
No custom broadcasts are received on an android service
I'm developing some apps for a specific device running Android 11 (API level 30) in kotlin. I have 2 apps that need to communicate with each other and I have thought to do it using custom broadcasts. ...
1
vote
0
answers
52
views
Plugin for Android Application is Unable to Locate Service
my team and I are working on a plugin for the Android app CivTAK. Plugins in the context of this application are treated as individual apps with just a Service and no Activity that are discovered by ...
0
votes
1
answer
98
views
Text display in random position in all other activities of app, by triggering from one activity
I have Main, Home activities are there Launcher app side (.apk). PlayActivity, Profile, and Init are there on the library side (.aar)
from the server side 1 message will trigger, then I want to show ...
0
votes
1
answer
96
views
Android Studio - Timeout error xml preview
The preview took too long to load. The issue can be caused by long operations or infinite loops on the Preview code. If you think this issue is not caused by your code, you can report a bug in our ...
1
vote
0
answers
247
views
Flutter app crashes: Context.startForegroundService() did not then call Service.startForeground()
I am using flutter background service to run a beacon scan in the background and in the foreground when the app is disconnected.
I get the folowing response when the app crashes. The app only occurs ...
2
votes
1
answer
757
views
Crash with ForegroundServiceDidNotStartInTimeException on Android 14
I have foreground service with notification that tracks user location, but in the Crashlytics I see that the app crashes for some users with Android 14. I can not reproduce it.
Fatal Exception: ...