Questions tagged [jobservice]
110 questions
2
votes
4 answers
No such service ComponentInfo Android JobScheduler
I'm trying to schedule a job with the JobScheduler, but i get an Exception as if I had not added the service in the AndroidManifest.xml:
java.lang.IllegalArgumentException: No such service…

Davi Lessa
- 23
- 1
- 4
2
votes
2 answers
Start JobService in foreground on Android
I use a com.firebase.jobdispatcher.JobService to sync data, I start it by scheduling a Job using FirebaseJobDispatcher.
Problem: I don't like the delay before it runs on my very first app start.
Is there a way in which I can start the service, on…

Frank
- 12,010
- 8
- 61
- 78
2
votes
0 answers
Android JobScheduler detect connectivity state changed
I want to detect connectivity state changed on Android Nougat. I read in Android documentation that is not possible to receive CONNECTIVITY_ACTION. So I attempt to use JobScheduler to get connectivity state changed. I did it in this way.
I create…

Michael
- 780
- 1
- 10
- 34
2
votes
1 answer
how to run a job service at a given time
i want to create something like a reminder app which notify user at given times
, i want to use job scheduler api to achieve this let's say i want to run the service at 9 am and 12 am what should be added in the following code to achieve…

Priyamal
- 2,919
- 2
- 25
- 52
1
vote
1 answer
Open an app from a JobService without "Display Over Other Apps" permission
I am new to android development. I've been trying to open an app from a JobService that is scheduled from the onReceive() method of an implicit broadcast-receiver, declared in my manifest.
From some posts, I found that one can use the…

Lucas Soares
- 36
- 6
1
vote
1 answer
Replace JobService() by Kotlin Coroutines?
Ther is a
@ExperimentalUnsignedTypes
class SomeNotification : JobService() {
@SuppressLint("CommitPrefEdits")
override fun onStartJob(params: JobParameters?): Boolean {
//..
}
override fun onStopJob(params:…

Pavel Pipovic
- 339
- 1
- 3
- 12
1
vote
1 answer
androidstudio service not Working in Androidx
Activity Code
JobScheduler scheduler = (JobScheduler) getSystemService(Context.JOB_SCHEDULER_SERVICE);
ComponentName componentName = new ComponentName(this, EJobService.class);
JobInfo info = new JobInfo.Builder(123, componentName)
…
user10949835
1
vote
0 answers
Internet Connection Change Job Service need to schedule everytime in activity?
I was reading android documentation for register a listner on network change for android pie and below versions.
I found out , for version above lolipop i can run a job service which monitor network changes.
So my question is
If it monitor network…

Feroz Siddiqui
- 3,840
- 6
- 34
- 69
1
vote
0 answers
Jobscheduler using JobService stops working after a couple of hours
I am trying to test the reliability of using JobScheduler to schedule background tasks on Android API 23, because I noticed that sometimes it misbehaves and stops working.
This is how I schedule a job in SystemManager.java class:
public static void…

Mena
- 3,019
- 1
- 25
- 54
1
vote
1 answer
Why the JobService did not repeat?
I am trying to developing JobScheduler, and I want the App to do something every 1 minute when App has been killed by system.
AndroidManifest.xml

Wun
- 6,211
- 11
- 56
- 101
1
vote
1 answer
Scheduled JobService runs only when I open my app
with JobScheduler I create a job that has to run periodically every 15 min. But it only works if my app is opened. I
When I run app all queued jobs runs one after another, even after device reboot.
AndroidManifest.xml

patonjo
- 440
- 4
- 13
1
vote
0 answers
JobService doesn't stop after calling FirebaseJobDispatcher.cancel()
I have JobService where I register broadcast receiver to listen to screen on/off events. The registration happens in onStartJob().
If I leave the device idle for a couple of minutes, and then call cancel("jobTag") of FirebaseJobDispatcher, I see…

Keselme
- 3,779
- 7
- 36
- 68
1
vote
1 answer
How to stop jobservice when the user exits/closes the app?
I have implemented JobService for my app. The job makes an API call. This has to be done every 4 minutes.
Also the job should start only when the app is being used and should stop when the user exits the app.
I am using setPeriodic to make it run…

NewOne
- 401
- 5
- 19
1
vote
1 answer
How to make a JobService in nativescript-vue
I searched in the google for several hours, but I got only 3 pages with this questions and non of them helped me.
Im on tns: 5.3.0
TestJobService.js
android.app.job.JobService.extend("org.nativescipt.ITPalert.TestJobService", {
onStartJob() {
…

G. Attila
- 81
- 1
- 8
1
vote
1 answer
app was closed JobService not running periodically
I have a Jobservice that runs periodically every time.My activity only is to job start for running on the app.i can stop or destroy the app manually using UI and the JobService not running ,the jobservice why stop i don't know.i attached the my…

kathir
- 49
- 1
- 10