android-jobscheduler Questions

2

I'm using JobScheduler to schedule jobs. Mainly I'm using it for the .setRequiredNetworkType() method, which allows you to specify that you only want the job to be scheduled when a network connecti...
Circumrotate asked 7/9, 2016 at 7:33

6

I am trying out the new JoScheduler API that has come with Android Lollipop. I have so far managed to successfully create and have a job run with a delay of 6000 milliseconds with no network requir...
Gourd asked 15/4, 2015 at 15:6

6

Solved

I face very weird situation on certain device (Nexus 5x with Android 7): when I clean its data and uninstall it, then install it with Studio, the app is not unitialized but it uses data from 24th j...
Jourdain asked 5/2, 2017 at 11:2

2

I am working on making my alarm app compatible with a soon to be released Android 12 and lately I stumbled upon a problem. It seems that since Android 12 update, jobs scheduled in Job Scheduler dur...
Unmask asked 17/9, 2021 at 11:37

4

Solved

I would like to use Androids new JobScheduler in my app but right now I don't know how to pass my object which contains the data (byte array) that should be sent via network by a job. I searched fo...
Diannadianne asked 27/11, 2015 at 12:23

2

Solved

I was following the video for JobScheduler: https://www.youtube.com/watch?v=XFN3MrnNhZA But lint was giving me that context.getSystemService(class) is api 23. So am I missing something or did and...
Menhaden asked 14/12, 2017 at 13:50

1

Solved

I've just develop an Android app (minSdkVersion 23/ targetSdkVersion 29) that can connect to a BluetoothLE device to obtain data periodically. Now, in the MainActivity (not the first activity), I d...

3

I am trying to implement my first JobService. I understand that a call to onStartJob is practically guaranteed (yes there are some edges if I specify some outrageous requirements without an expirat...
Territerrible asked 7/6, 2016 at 21:19

4

Solved

I've wrote an app for creating and reminding task which uses local SqliteDatabase. I wrote a jobScheduler service to check the device time and date with tasks on the database and if matches shows a...
Illiberal asked 14/4, 2018 at 14:25

0

Documentation implies it's scoped per the service class: A unique job ID for scheduling; must be the same value for all work enqueued for the same class. However, I have two services with the...
Tananarive asked 14/2, 2020 at 1:13

6

I'm trying to use the android Job Scheduler API and all I'm trying to do is have the Job Scheduler run every 5 seconds. However when I run it, the corresponding service is hit every two minutes. I ...
Courier asked 7/4, 2015 at 12:48

4

Solved

I want to create a running job with a specific time and a given periodicity. For example, I want to schedule a job the second day of each month and it should run every month. Looking at the JobInf...
Symbolist asked 8/1, 2018 at 11:49

2

Solved

I have app which needs to sync the data as soon as internet is connected on device. I have the sync work in Worker class and it is working fine. But I need to run this class as soon as internet is...

7

I have an app which has a feature A which should run in background every minute. Feature A is that the app should connect to a database, read some data then get the current location of the device a...

4

I didn't see example of using jobFinshed of JobService, seems like we have to track changes when some condition meet we have to call jobFinished() method, am I right?
Lactoflavin asked 14/6, 2017 at 20:33

2

We observe a rare IllegalStateException inside JobScheduler implementation when JobScheduler is accessed within Application.onCreate() method. I wonder if this is a platform flaw? We are observing...
Acis asked 28/2, 2018 at 9:0

2

I use the following code to schedule a background job execute every 15 mins. WorkManager workManager = WorkManager.getInstance(); PeriodicWorkRequest ulpBackup; ulpBackup = new PeriodicWorkReque...

3

Solved

I'm tring to create a jobService. Here is what onStartJob() looks like. @Override public boolean onStartJob(JobParameters params) { Log.d(TAG, "onStartJob"); Log.d(TAG, "Params= " + params.getJo...
Icarian asked 27/5, 2016 at 16:48

2

Solved

I have one periodic job I want to run and it is implemented with the help of Evernote's Android Job library. What I wish to achieve is to updateMyLocation ever 15 mins. The problem is that every ...
Serialize asked 11/9, 2017 at 18:11

1

We converted our main Application class to Kotlin recently. Since then we are experiencing crashes, especially during the night (when our application was probably killed by the system), when our Jo...

2

Since Android Oreo background execution limits, the docs recommend to refactor IntentServices to JobIntentService. https://developer.android.com/about/versions/oreo/background JobIntentService ru...

0

Iam trying to simulate the Doze mode while my app is running in the background. What happens is that the thread will continue to run, even though the device has entered Doze mode. The docs specifi...

1

Solved

I need a component in my Android app that is best being described as a watchdog, i.e. a function that is executed every 30min +/- 5min and asserts that a certain condition is still met. The watchdo...

2

Solved

According to the documentation, jobs must have a unique Job ID per uid. If I use a 3rd party library which also schedules jobs, does this mean I can't use the same Job ID as theirs? If so, how can ...
Baggy asked 7/6, 2017 at 13:58

2

Solved

I want to run a task in my app everyday, I am using JobScheduler for it and works fine in stock OS, but when I try to run it in phones which has custom ROM (Xiaomi) it doesn't work unless I explici...
Reenareenforce asked 22/10, 2018 at 10:44

© 2022 - 2025 — McMap. All rights reserved.