Questions tagged [jobintentservice]

98 questions
1
vote
1 answer

Start a JobIntentService Implicitly

As you know this is how we fire a JobIntentService: JobIntentService.enqueueWork(this, MyJobIntentService.class, JOB_ID, intent); In this approach we KNOW which service we…
Farshad
  • 3,074
  • 2
  • 30
  • 44
1
vote
1 answer

JobIntentService runs periodically?

I have a JobIntentService in my project. But When i make startService to this Service, "onHandleWork" methods runs only 1 time. how can i make it run periodically?
1
vote
0 answers

JobIntentService as foreground service

I am working with geofences based on this Google sample. However, I am finding that geofence transitions are not occurring accurately in the background unless I am in Google Maps or a different location based app. Because of this I am attempting to…
AshesToAshes
  • 127
  • 1
  • 1
  • 11
1
vote
1 answer

Android JobIntentService seems to be restarted

I have a broadcast receiver that listens for power connection events. Whenever the device is connected to power, I attempt to transfer files from the APP to a Server in a machine running Ubuntu. The files are transferred over Bluetooth. Since the…
Roger
  • 579
  • 4
  • 13
1
vote
1 answer

Android: How to fix BroadcastReceiver in JobIntentService?

I have an Activity with an AlarmManager that fires a BroadcastReceiver. The BroadcastReceiver fires a JobIntentService to send a Notification to the user. When the user taps "CLEAR ALL" or swipes to dismiss the Notification, I want the…
AJW
  • 1,578
  • 3
  • 36
  • 77
1
vote
1 answer

Android: how to fix incrementing setNumber() for a Notification?

I use a JobIntentService launched from a BroadcastReceiver to send the user a Notification that a due date is near. When the next Notification for another due date is near, I just want to update the existing Notification and increment the…
AJW
  • 1,578
  • 3
  • 36
  • 77
1
vote
1 answer

Android JobIntentService ADB Error: Requires permission android.permission.BIND_JOB_SERVICE

I'm trying to setup a JobIntentService and test it using adb. When I use this command: adb shell am startservice -a "com.example.package.action.DO_THING" It produces the error: Error: Requires permission android.permission.BIND_JOB_SERVICE My…
0rigin
  • 38
  • 6
1
vote
1 answer

How do we use setMinimumLetancy using FirebaseJobDispatcher?

I am using FirebaseJobDispatcher for posting the data. FirebaseJobDispatcher dispatcher = new FirebaseJobDispatcher(new GooglePlayDriver(DetectedActivitiesIntentService.this)); Job myJob = dispatcher.newJobBuilder() …
0
votes
0 answers

Cannot resolve symbol 'JobIntentService'

I am trying to follow this tutorial: https://spin.atomicobject.com/2018/08/27/custom-gboard-sticker-pack/ However I am failing at Step 3, because I cannot extend my subclass from JobIntentService. I get the Error Message Cannot resolve symbol…
alex
  • 576
  • 4
  • 25
0
votes
1 answer

Long running background task from BroadcastReceiver - which class to use?

Since AsyncTask, IntentSerrvice and JobIntentService are all deprecated, which tool or class should I go for in 2022? I want to re-schedule alarms in a BroadcastReceiver after a device rebooted (since alarms get lost in the process). The task will…
Big_Chair
  • 2,781
  • 3
  • 31
  • 58
0
votes
2 answers

Long running service to receive push messages from emqx

I want to implement a long running service to receive push messages from emqx server (even when the program is not running). If I use android Service or JobIntentService, it will be necessary to display a notification which is not intended. If I use…
Faz
  • 322
  • 2
  • 14
0
votes
1 answer

When app is onAppBackgrounded I need to upload data to server android

I need to upload the data to the server in a different thread (not on the main thread). I have tried WorkManager to do this job like below. But WorkManager is not getting triggered every time I background the app. How can I send the data to the…
0
votes
1 answer

Kotlin: How to call JobIntentService from Fragment?

I'm creating GPS tracking app. So I need to run this app at background (or foreground?). How can I call JobIntentService (SecondClass) class when I tap to button "Start" in Fragment (FirstClass)? I looked for example at this code - but still I don't…
djlj
  • 31
  • 2
  • 6
0
votes
0 answers

Do JobIntentServices limits the number of threads? Application with multiple JobIntentServices is gives just two threads for all services

I was expecting that multiple JobIntentServices would use always one thread for each. I have several JobIntentServices class Client1 : JobIntentService() { ... } , class Client2 : JobIntentService() { ... } , class Client3 : JobIntentService()…
0
votes
1 answer

How to prevent TransactionTooLarge exception while passing data between JobIntentService to activity via Broadcast receiver

After login Page, I am downloading data from server using JobIntentService and passing the data to activity via BroadcastReceiver. For smaller amount of data it works fine but when I am working on live data it is giving below exception: Caused by:…