Skip to main content
Filter by
Sorted by
Tagged with
0 votes
2 answers
84 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
54 views

I'm implementing a foreground service in Android (Kotlin) that handles GPS tracking. The service continuously calculates and must expose these values: Distance traveled, elapsed duration, current ...
Danfb__'s user avatar
  • 387
0 votes
1 answer
57 views

I'm developing an app that records the screen using the Media Projection API and transmit the data to an overlay surface view, however, the surface view and overlay components are visible but the ...
Arrgina 2657's user avatar
1 vote
1 answer
51 views

I've read that maybe I should declare <service android:enabled="true" ... /> or android:exported="true" in Manifest.xml, or I should use pass BIND_AUTO_CREATE to bindService()...
allexj's user avatar
  • 169
0 votes
0 answers
30 views

I added some logs in the NotificationListenerService service: class NotificationListenerService : NotificationListenerService() { override fun onDestroy() { logi("on Destroy") ...
aj3423's user avatar
  • 3,161
0 votes
0 answers
27 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,811
0 votes
1 answer
58 views

I am working on a bluetooth Android application to read data from a device. Issue: When I kill the app by swiping it up from recents in Samsung, the process is not killed. I checked in Running ...
Raksha Nairy's user avatar
0 votes
1 answer
77 views

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 ...
Jonathan's user avatar
-1 votes
1 answer
44 views

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 ...
nasibeyyubov's user avatar
  • 2,811
0 votes
0 answers
49 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
80 views

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 ...
Jon's user avatar
  • 1,115
0 votes
0 answers
44 views

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. ...
Jon's user avatar
  • 1,115
0 votes
1 answer
100 views

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 ...
insider_ank's user avatar
1 vote
0 answers
355 views

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 ...
Dries Vandenbussche's user avatar
0 votes
0 answers
28 views

I have an Activity and a Service who both use the Room database data. I have the following code for observing changes to the data: viewModelScope.launch(Dispatchers.IO) { repository.read().flowOn(...
theblitz's user avatar
  • 6,891
1 vote
0 answers
41 views

I have a Service called ServiceTechnicianTrackingService that tracks location with foreground notification of the people using phone. public class ServiceTechnicianTrackingService extends Service { ...
Zookey's user avatar
  • 2,707
1 vote
0 answers
205 views

With the recent changes in Android 15 where there are even more restrictions on starting services from the background I have not seen if device admin apps are part of this restriction. Before I would ...
tyczj's user avatar
  • 74.8k
1 vote
0 answers
81 views

I want to send and receive Broadcast between Service and Activity. I registered programmatically created BroadcastReceiver both in Service and Activity with using flag RECEIVER_NOT_EXPORTED for make ...
taehee's user avatar
  • 31
1 vote
0 answers
116 views

I want to show an activity when the users taps on a quick settings tile while the screen is locked. This works as expected using the startActivityAndCollapse method taking Intent as parameter (...
fe60's user avatar
  • 371
1 vote
0 answers
228 views

I am debugging a crash issue reported in the Android Codec2 integration of an audio decoder. The decoder component starts as a lazy service. Please see the source code below, int main() { ALOGE(&...
Rahul M's user avatar
  • 11
0 votes
1 answer
92 views

I've been working on this project for a few days, and either it sends a notification at the moment I schedule it or never. As it stands right now, it creates the channel and the notification, but it ...
Yuzel Rose's user avatar
0 votes
0 answers
133 views

I have a device admin app that is the device owner and I want to bind to the DeviceAdminService class that the admin app has from another app. The problem is that the DeviceAdminService class has ...
tyczj's user avatar
  • 74.8k
0 votes
0 answers
34 views

I have an aidl interface in the client and server applications with which I connect from the Client application to the AIDLApiService service of my Server application. I call 2 methods on the ...
Sunbey13's user avatar
  • 467
3 votes
1 answer
4k views

I am implementing an android application with a service that is returning the location so , i have set the attribute foregroundServiceType to "location". Here is my service in the manifest ...
Patrick Renaud's user avatar
0 votes
0 answers
85 views

I am experiencing an issue where the onServiceConnected callback is not invoked in my client code, despite the service's onCreate and onBind methods being called successfully and return a binder. The ...
Kugge's user avatar
  • 38

1
2 3 4 5
135