Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
53 views

I have a Foreground Service with two timers. I would like the timer number 2 to start when the timer 1 is paused, and I would like timer number 1 to resume when timer number 2 is stopped. Also, I ...
Joyce Opio's user avatar
0 votes
1 answer
105 views

I try start foreground service (FOREGROUND_SERVICE_SPECIAL_USE) for Android 16 by BOOT_COMPLETED and get android.app.ForegroundServiceStartNotAllowedException. I know about boot restrictions, but ...
Style-7's user avatar
  • 1,408
1 vote
0 answers
68 views

I keep facing the same error seen from Firebase Crashlytics. Fatal Exception: android.app.RemoteServiceException$ForegroundServiceDidNotStartInTimeException Context.startForegroundService() did not ...
Hyejung's user avatar
  • 1,314
0 votes
2 answers
90 views

I recently learned about Foreground Services in Android and how to use them. Often what is used in examples is something like this: class MyForegroundService : Service() { ... override fun ...
Screenshooter's user avatar
0 votes
1 answer
104 views

I want to implement just a simple timer which runs in background. For this purpose I have wrote it as a foreground service special use (its use does not fit the existent foreground services). I ...
rsp's user avatar
  • 109
0 votes
0 answers
30 views

I'm using Android Studio trying to record audio in an Android foreground service using MediaRecorder. The file is created successfully, but when I play it, it contains no audio. Here's the relevant ...
asmgx's user avatar
  • 8,170
-1 votes
2 answers
56 views

in my project i have an audio controller class class AudioController(val context: Context){ private val player = ExoPlayer.Builder(context).build() private val _state = MutableStateFlow(...
Jaimin Vashi's user avatar
-1 votes
0 answers
42 views

I'm writing an app which manages the ringer mode, but want it to be aware of changes to the ringer mode external to the app (e.g., by pressing the volume buttons and changing the mode there). I can ...
khpylon's user avatar
  • 11
0 votes
0 answers
38 views

I have a .net Android application (migrated from xamarin) and inside it there is a webView that displays a web app and also I have an Android Foreground Service that periodically is making a call to ...
Pavel Marius's user avatar
0 votes
2 answers
51 views

I have a foreground service that is used to launch a timer for a given object. I would like to: Pass the object's id to the foreground service when the service is started and store it in the service ...
Joyce Opio's user avatar
1 vote
1 answer
112 views

I have an Android Wear OS emergency app, which monitors the user and looks out for emergency events. When the app is closed, I use a foreground service, to keep monitoring in the background. This ...
theproductivepickle's user avatar
0 votes
0 answers
38 views

I'm working on an Android app where I rely on Google Calendar webhook notifications to sync calendar events. To listen to these incoming notifications, I'm currently using a ...
Bhavik Maradiya's user avatar
0 votes
3 answers
106 views

I am creating time tracking app in .net MAUI. And I want to run timer continues even app minimized so for that I am creating Android foreground service in MAUI. And it is work also but my issue is ...
Prakash Menaria's user avatar
1 vote
0 answers
98 views

<manifest xmlns:android="http://schemas.android.com/apk/res/android"> <uses-permission android:name="android.permission.POST_NOTIFICATIONS" /> <uses-...
oldogz's user avatar
  • 11
0 votes
0 answers
47 views

I build an Android application using Kotlin and Java. In this app I build some Service. Now with Android 12 I have no issue. From new device if I try to start this service, I receive the following ...
bircastri's user avatar
  • 2,177
1 vote
0 answers
172 views

I have a live app on the Play Store that recently started crashing on Android 15 devices with the following error: Caused by java.lang.SecurityException Starting FGS with type microphone callerApp=...
Mansi Shah's user avatar
0 votes
0 answers
36 views

I am trying to create app-install/app-update events logger and I have to manually register BroadcastReceiver intercepting android.intent.action.PACKAGE_ADDED to make it work. In order to receive ...
cora32's user avatar
  • 400
1 vote
2 answers
316 views

I’m seeing a repetitive crash in production when starting a foreground service from the background. The issue has occurred ~177K times in the last 30 days, mostly on Samsung devices (~50%) running ...
vikeshdass's user avatar
  • 2,263
1 vote
0 answers
58 views

I’ve implemented a BOOT_COMPLETED BroadcastReceiver that starts a ForegroundService (BootService) after reboot. Inside the service, I use startActivity() to launch a fullscreen MainActivity (WebView-...
No-codeZone's user avatar
0 votes
0 answers
68 views

I'm building an Flutter Android foreground audio streaming service using ExoPlayer in Kotlin. The service plays live audio streams and shows media controls via a notification. It works fine while the ...
Muhammad Talha's user avatar
0 votes
0 answers
35 views

A foreground service is being launched upon a FCM event received by RN messaging().setBackgroundMessageHandler - @react-native-firebase/messaging which triggers a notification to display. The JS side ...
szpanel's user avatar
  • 39
0 votes
0 answers
28 views

I have a foreground service which is basically used for counting down from certain number. As 1 foreground service can have only 1 notification, I show other notifications using notification manager, ...
nasibeyyubov's user avatar
  • 2,810
0 votes
0 answers
237 views

I'm developing a child safety app as a pet project. On the parent's device, there's a map that shows the child's current location. On the child's device, I run a background service that also includes ...
WizAnd's user avatar
  • 11
1 vote
2 answers
202 views

I have integrated foreground service like below in my MAUI application. MyForegroundService.cs under Platforms.Android // MyForegroundService.cs using Android.App; using Android.Content; using Android....
Matthew Pans's user avatar
1 vote
0 answers
198 views

I need help creating a foreground service in python-flet. Can anyone help me with advice or provide a procedure on how to create a foreground service using flet, python, pyjnius... and pyproject.toml ...
Peter Kačmarík's user avatar
0 votes
1 answer
171 views

I have a foreground service and I starts it by: context.startForegroundService(Intent(context, MyForegroundService::class.java)) In the service, it uses START_STICKY override fun onStartCommand(...
Benjamin Ting's user avatar
1 vote
0 answers
161 views

Almost 200K users are experiencing the following crash in my Android app. The error is: android.app.RemoteServiceException$ForegroundServiceDidNotStartInTimeException: Context.startForegroundService() ...
despicable_dev's user avatar
0 votes
0 answers
49 views

I'm experiencing unexpected behavior with a foreground service on OnePlus 10R (Android 14). The service restarts on its own even after the app is killed (swiped from recents). This does not happen on ...
Vishwas Bhatt's user avatar
0 votes
0 answers
24 views

I'm working on an app whose main task is to send location data. I've found that using a callback with FusedLocationProviderClient and a foreground service works perfectly, regardless of the time ...
Szymon Tomson's user avatar
0 votes
0 answers
118 views

I am developing an Android app that runs a foreground service to track location and record audio continuously on an Android 15 (Motorola) device. The service works fine when started, but after ...
Jigar Viradiya's user avatar
0 votes
0 answers
41 views

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 ...
kareem mohamed's user avatar
2 votes
0 answers
196 views

I am trying to automatically launch my application when an Android TV restarts. I have already implemented the following approaches, but none seem to work on API 34 (Android 14+) due to restrictions ...
Amitesh Singh Kundan's user avatar
0 votes
1 answer
61 views

Problem: I'm using ConnectyCube in my Flutter app for handling video calls. When a call is initiated from one device to another and the receiving device is in the background, the call notification ...
yash gupta's user avatar
1 vote
0 answers
97 views

I am facing a problem with the android google activity recognisation service to detect user activity , When I install appplication it work just fine and I get udpate like still ,tilt , on foot , in ...
Vishwas Bhatt's user avatar
0 votes
0 answers
122 views

I am working on an alarm app which is created in flutter. I am using android_alarm_manager_plus, flutter_foreground_task, flutter_local_notifications as the major packages to implement core ...
Immanuel Dsouza's user avatar
0 votes
0 answers
47 views

I'm working on an Android project where I need to count the number of clicks or screen touches that occur on an underlying application, even when my app is running in the foreground. Here's the ...
poison pawn's user avatar
0 votes
0 answers
51 views

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 ...
Prashant Shaw's user avatar
0 votes
1 answer
213 views

I'm starting the service in onCreate in the Activity using startForegroundService for Android Oreo and above and using startService for lower, in service I used startForeground in Service by calling ...
Khalid Ahmed's user avatar
1 vote
0 answers
211 views

There is a very, very low probability that my program will have the following crash: java.lang.SecurityException: Media projections require a foreground service of type ServiceInfo....
progquester's user avatar
  • 1,916
0 votes
1 answer
54 views

Android Question Requirements for MainApp: Let's say I have an Android application (MainApp) that hosts an Activity with the following responsibilities: Notifying another app (CriticalNfcApp) to ...
Luke's user avatar
  • 645
0 votes
1 answer
66 views

I created a foreground sticky service, I am learning to develop android apps The service is nothing but to print the time for every 5 sec and check the data from the server when the service is running,...
vishak raj's user avatar
4 votes
1 answer
226 views

I'm encountering a crash in production that I cannot reproduce locally. The crash is logged in Crashlytics as follows: Fatal Exception: android.app.RemoteServiceException$...
Furqan Khan's user avatar
0 votes
1 answer
66 views

I have an Android app with a few components, each set to run in their own processes: The activities A content provider Foreground service Accessibility service I've noticed that heavy work being ...
Flyview's user avatar
  • 2,001
0 votes
2 answers
94 views

I'm getting this error Starting FGS with type location callerApp=ProcessRecord{22f416f 27792:smartsense.co.in.sensephone:remote/u0a255} targetSDK=34 requires permissions: all of the permissions allOf=...
Sourabh Bhatt's user avatar
0 votes
0 answers
139 views

I am building an app where you can send and receive MQTT messages through topics. I am using unity and i have switched to android platform for this. My problem is that when i change app the code stop ...
Jim Mede's user avatar
0 votes
1 answer
127 views

I have been researching without results for some time now. A foreground service whose service is forever running needs to be created. Idea can be found on this gist: https://gist.github.com/varunon9/...
brzi_gonzales's user avatar
1 vote
1 answer
800 views

In a video conferencing app, I recently added a foreground service to my App's manifest because after the app is in background for about a minute, others in a call are not able to see or hear the ...
Austin Ezeh's user avatar
0 votes
1 answer
41 views

I am trying to make a xamarin app, with android and ios. I have made a service, to broadcast the users location at interval, but everytime it tries to broadcast (using SendLocationToServer() ) it ...
Me No's user avatar
  • 11
1 vote
1 answer
166 views

I'm trying to call Headless task triggered by CallScreeningService by passing the incoming number to Headless.js which handles the data. It also triggered foreground service for my RN app. The log ...
NgKs's user avatar
  • 11
0 votes
0 answers
87 views

I have application where I use TimeTask for counting timeFromLastOrderLoad. val t: TimerTask = object : TimerTask() { override fun run() { timeFromLastOrderLoad += 1 ...
Takeshi567's user avatar

1
2 3 4 5
17