Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
96 views

My goal is to be able actively process an image in the background, but when the app is in the foreground I'd need a preview which shows the processed image, meaning the original frame and bounding ...
 sentientbottleofwine's user avatar
1 vote
1 answer
388 views

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 ...
Sergey's user avatar
  • 1,368
1 vote
0 answers
65 views

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 ...
Gabriel Garcia's user avatar
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
166 views

After auto-updating the application, the accessibility permission is automatically revoked, even though it was already granted. The device's OS is Android 10. There are multiple devices on which my ...
Sachin's user avatar
  • 11
0 votes
0 answers
137 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
87 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 vote
0 answers
117 views

I have an app that starts a custom foreground service that keeps running even if the app is closed. To do that, I start the service when the user touches a button in the UI and then I bind to it in ...
soyxan's user avatar
  • 123
0 votes
2 answers
3k views

I was starting the foreground service by manually binding and then using its method. However, I recently came across Koin and found https://insert-koin.io/docs/reference/koin-compose/compose @...
Cyber Avater's user avatar
  • 2,116
2 votes
1 answer
66 views

I have such a method implementation and I want to understand what will happen when this method is called. Could you give me a hint override fun onDestroy() { Timber.d("$this: onDestroy&...
Murad Akhmedov's user avatar
0 votes
1 answer
559 views

I have an Android application which uses a SDK library to send data. I packed the SDK library as .aar file and added the dependency in the App. I'm trying to replicate the following exception in my ...
Popeye's user avatar
  • 263
0 votes
0 answers
151 views

I'm learning Android and currently, I am dealing with the background stuff and came to know about two things services and workManager. Before I got started with any of the ones I got to know about ...
ADITYA RAJ's user avatar
1 vote
1 answer
38 views

from here i started the service Intent intent=new Intent(getActivity(),MyService.class); s=sn; u=ur; intent.putExtra("uri",u); ServiceConnection ...
mm m's user avatar
  • 75
0 votes
0 answers
39 views

I want to ask for a solution from you guys, how do I create a button in the service then I can return the string value through the callback interface
KRACK's user avatar
  • 1
2 votes
1 answer
5k views

I want to use service in jetpack compose. I am trying to bind services in compose app but it always return null to me. I tried this stack overflow. But it didn't work to me. Anyone guide me on this ? ...
Vivek Modi's user avatar
  • 7,859
0 votes
1 answer
328 views

In this project, I provide two example apps: a "service app" providing a service like this: <manifest xmlns:android="http://schemas.android.com/apk/res/android" package=&...
Victor Paléologue's user avatar
0 votes
1 answer
75 views

I have scenario(for theoretical purposes): What happens if, say, there is only one Activity that is bound to a Service and it decides to never call unbindService() method? Will the Service ever get ...
Manish Kumar Sharma's user avatar
1 vote
0 answers
228 views

Assuming that I have implemented a SensorEventListener from which I generate the values deriving from the movement of the accelerometer of the device; that I have implemented the visualization in the ...
Gnagno's user avatar
  • 11
0 votes
1 answer
1k views

I have an android service, which is connected to a service connection. Upon initialization, I'd like to send a single String, for example "test message" to the Service connection. How would ...
Justin's user avatar
  • 67
3 votes
2 answers
2k views

I have a project with three mudules: com.example.library - defines the AIDL interface // IRemoteService.aidl package com.example.library; interface IRemoteService { int add(int a,int b); int ...
yaugenka's user avatar
  • 2,881
0 votes
0 answers
335 views

Background: I have a few services (open for other apps to use) which run in the same process. The RPC is implemented using AIDL and therefore the services have to be open to multiple threads. This ...
user avatar
1 vote
1 answer
224 views

In the bound services documentation, it says When a service is unbound from all clients, the Android system destroys it (unless it was also started with a startService() call). As such, you don't ...
user avatar
0 votes
1 answer
1k views

I am making a audio player app. I created a service for audio player and playback notification. I am facing problem with the previous/next buttons in the Player as well as the playback notification. ...
user avatar
2 votes
0 answers
367 views

I have a service that is designed to run in the foreground and allow clients to bind to it. It is similar to a music foreground service (described here) that plays music and allows an app to bind to ...
stuckinator_1000's user avatar
3 votes
1 answer
246 views

In order to test and control my regular android application, I wrote a command line Linux test program and used adb shell to execute this test program. I can send a broadcast or start an activity to/...
progquester's user avatar
  • 1,896
0 votes
0 answers
592 views

I'm currently trying to remake our company app that has been outsourced. We do not have access to the source code so its not possible to look at the code. Our outsourced app has a service running in ...
Adriaan's user avatar
  • 814
0 votes
0 answers
1k views

I want to take a accessibility service instance and call there method in Activity. I tried taking AccessibilityService as = new AccessibilityService () as.doSomething() but this works for first time ...
ROHIT GANDE's user avatar
3 votes
0 answers
726 views

Android application consist from visual part(activity) and bound service. Visual part is used to configure Service. Config is stored in Jetpack DataStore. Service read config on every client ...
yankovic's user avatar
  • 105
1 vote
1 answer
631 views

This question is more about what tools to use not about exact code. I have an android app that allows a user to define some tasks. Each task is related to periodical REST HTTP queries - let's say ...
user2146414's user avatar
  • 1,057
1 vote
0 answers
1k views

Describe the bug: I have an app which uses Intune SDK for android. We want to integrate a service with with android:isolatedProcess="true" for root detection related functionality on our App....
Pradip Tilala's user avatar
0 votes
2 answers
1k views

Binders are used for Inter(not intra) Process Communication/Remote Method Invocation so why/how the communication between Activity and Service is possible via binders where there are no different ...
Sandeep Gupta's user avatar
0 votes
0 answers
48 views

My app has a service that starts and stops independently of the main activity. The service can be considered to be running all the time. I am looking for the correct way to pass data to this service. ...
Alex A.'s user avatar
  • 452
1 vote
0 answers
508 views

I've tried to scope down the code as much as possible to identify the problem (although may have missed some pieces) but essentially I'm having an issue that occurs for Android 11 or higher where the ...
Nic Capdevila's user avatar
2 votes
0 answers
724 views

I am using a BroadcastReceiver to send a broadcast to restart the FirebaseMessagingService when the service is destroyed. However, when starting service this way, the FirebaseMessagingService gets ...
Richard's user avatar
  • 7,493
0 votes
1 answer
2k views

I have a simple android app with an activity that binds a service. The basic code is like this: public class MyActivity extends AppCompatActivity { private MyService service; private boolean ...
Josef's user avatar
  • 324
1 vote
0 answers
676 views

In the following link: https://developer.android.com/guide/topics/connectivity/telecom/selfManaged I see the quote Use the addNewIncomingCall(PhoneAccountHandle, Bundle) method to inform the telecom ...
Aaron's user avatar
  • 75
1 vote
0 answers
30 views

I am creating a separate thread in a android bounded service's onStartCommand() and running it using a condition check in Runnable's Run() e.g. while (condition), there is a activity which is using ...
rajiv kumar's user avatar
6 votes
2 answers
2k views

First of all, this question is NOT about how I can prevent the app from being killed. Actually I want it to be killed. Now the problem. My application connects to a BLE devices and I want the ...
Mohru's user avatar
  • 743
0 votes
1 answer
219 views

I'm trying to bind to a remote service of the Drozer test app (sieve), but I keep crashing this app with a NullPointerException, and I don't understand why. The basic idea is to send a PIN code to the ...
User0815's user avatar
1 vote
2 answers
822 views

Currently, I need a bound (Music)Service, because I need to interact with it. But I also want it to not be stopped, even when all components have unbound themselves. My service code: class ...
K.Hayoev's user avatar
  • 404
1 vote
1 answer
1k views

I am starting a service in a different process from an activity. The service is designed to run even when the app is closed. After starting the service from the activity, I close the app. Now when I ...
Junior's user avatar
  • 230
0 votes
1 answer
231 views

I have a client that binds a service. This client should wait 5 seconds asynchronously to bind the service, unless the process that the service lives inis already alive. To determine if the process is ...
Brian J. Roberts's user avatar
0 votes
0 answers
25 views

My question is exactly as it says on the title. Why is it that Android bound services always load after a whole fragment lifecycle is complete? Bound services are meant to be loaded on the activity ...
JoanaBrew's user avatar
0 votes
0 answers
245 views

I have 2 services A and B. A creates B and binds to B via the Context#bindService() with the CONTEXT_AUTO_CREATE flag. Normally when A unbinds from B, B is destroyed. Under this approach, A and B are ...
mango's user avatar
  • 103
1 vote
2 answers
2k views

I have a service that updates data every now and then. I currently use sharedPreferences to store the data and use LocalBroadcast to communicate between the service and UI. I would like to improve ...
joke4me's user avatar
  • 852
0 votes
0 answers
394 views

I want to know if there is any efficient way to make app to app communication using IPC. I went to the guide of services that uses AIDL from the docs. But what I really want is to have an image to ...
Ashutosh Soni's user avatar
1 vote
1 answer
999 views

Am trying to bind one service as an isolated process in my react native Android app <service android:name="com.xx.xx.services.IsolatedService" android:...
Arjun T Raj's user avatar
  • 3,207
0 votes
0 answers
344 views

I have a TimerService that I'd like to bind to with a TimerFragment, so I can call the Service's methods and observe its LiveData in the fragment. The problem I'm running into is that when I start my ...
Cameron's user avatar
  • 1,660
2 votes
3 answers
1k views

Let's say my application has several activities. When I come to the first activity, I will initiate an api call. User won't be blocked during this api call and can navigate to other activities during ...
Jossy Paul's user avatar
  • 1,287
0 votes
2 answers
1k views

Following is my service class class LocalAudioService : Service() { var player: SimpleExoPlayer? = null private var playerNotificationManager: PlayerNotificationManager? = null private ...
BraveEvidence's user avatar

1
2 3 4 5
9