Questions tagged [jobintentservice]
98 questions
0
votes
1 answer
Android JobIntentService as wrapper on another service
This one will require a bit of context, please bare with me...
I have migrated a dependency for evaluating NFC data to a new application. Whenever an NFC tag is discovered, my application will spawn an Activity to handle the event. In the onCreate…

Basti Vagabond
- 1,458
- 1
- 18
- 26
0
votes
0 answers
How to run Camera as a background service not in main thread(background thread) in andoid
How to create camera as background service which should be run in other than main thread.
When am trying to run through thread handler getting crashed due to windgowmanager which required UI thread. How can i resolve this issue

Santhosh M
- 21
- 3
0
votes
1 answer
When to release the coroutine resources in android service?
I am using kotlin coroutines in my JobIntentService, So on onHandleWork I would launch my coroutine, once this tasks end, I need to clean up the resources by cancelling the Job. onDestroy called immediately after starting of the service, Since I am…

Stack
- 1,164
- 1
- 13
- 26
0
votes
0 answers
Android JobIntentService stops In between loop
I have Service extends JobIntentService which I used to run in the background to get the location of the user even when the app is closed. But the service gets destroyed inbetween without any errors. How to run it full time?
My Code below:
public…

GK_
- 1,212
- 1
- 12
- 26
0
votes
0 answers
JobIntentService for devices having versions Oreo and above
I have used JobIntentService to download the data in background and storing the data into the ormlite database. While using JobIntentService the device dozes off then it gets stuck and don't download the data further in Android Q. Also if it runs…

shruity
- 178
- 1
- 2
- 16
0
votes
0 answers
JobIntentService? or IntentService with ForegroudService? or both? for Locationtracker + Timer
What i want: Building an app which tracks the location and the time in background for backpacking. The app should track the location and the time in background.
Question: which one should I use: JobIntentService? or IntentService with…

elpaso
- 11
- 1
- 5
0
votes
1 answer
JobIntentService not call OnHandleWork
I've custom JobIntentService witn static method enqueueWork.
public static void enqueueWork(@NonNull Context context, @NonNull Intent intent) {
enqueueWork(context, MyJobIntentService.class, JOB_ID, intent);
}
Also…

Sibirman
- 39
- 6
0
votes
1 answer
Does not require android.permission.BIND_JOB_SERVICE permission in Android
Although this has been answered. I have tried those but no luck. In my case, I am using JobService and JobIntentService in same project for testing and learning things. JobService is working fine but when I am trying JobIntentService it is not…

Abdul Waheed
- 4,540
- 6
- 35
- 58
0
votes
1 answer
Calling an activity method from a JobIntentService
I would like to call a non-static method in the for-loop inside the onHandleWork. How can I achieve that?
@Override
protected void onHandleWork(@NonNull Intent intent) {
Log.d(TAG, "onHandleWork");
String input =…

Tester2389
- 149
- 1
- 12
0
votes
1 answer
How can I access my activity's ViewModel from within a service?
I am building an app that needs to detect certain objects in photos. I first load and keep all the photos I'd like to inspect into my room Database and connect it to my view with a ViewHolder.
When the user clicks a button, I want the detection…

Tsabary
- 3,119
- 2
- 24
- 66
0
votes
0 answers
My 'JobIntentService' isn't working good in background
When I start JobIntentService, it works fine, but after entering phone-sleep it suspends after some time. When I unlock my phone, it starts working again.
I want to have a long task working in background, it have to not suspend or stop.
Here's my…

Mateusz Szwedka
- 1
- 3
0
votes
0 answers
Secondry Constructor data inside onHandleWork in JobIntentService is coming null
I can't figure out ,why the data inside the onHandleWork becomes null , Here is my effort:
class OfferJobIntentService :JobIntentService {
var oppoPayRepository:OppoPayRepository?=null
var preferenceProvider:…

Barun Singh
- 1
- 2
0
votes
1 answer
IllegalArgumentException on JobIntentService mainly on Samsung devices
I get a lot of IllegalArgumentException crashes which I cannot reproduce. 99% of them are from Samsung Galaxy devices.
This is the log from Play Store Console:
java.lang.RuntimeException:
at android.os.AsyncTask$3.done (AsyncTask.java:354)
at…

Dimitris
- 35
- 1
- 6
0
votes
1 answer
JobIntentService not working on API below Oreo (API <= 26)
I'm setting up a new service for Android and I'm using JobIntentService for the first time. The service includes also a notification which is not displayed when I'm running the app in an Android version below Oreo. The job itself works until the…

MMG
- 21
- 1
- 9
0
votes
1 answer
JobIntentService onHandleWork not working well
I converted all my IntentServices / Services in IntentJobServices / JobServices so my app is compatible with all security policy.
But I have a problem to Bind and Start my JobIntentService...
I need to Start the IntentJob and then Bind to it, but…

Z3R0
- 1,011
- 10
- 19