Questions tagged [android-jobscheduler]

Use this tag for questions related to the Android JobSchedule API for scheduling various types of jobs against the framework that will be executed in your application's own process.

Android JobScheduler is an API for scheduling various types of jobs against the framework that will be executed in your application's own process.

see the documentation for more info:

Android JobScheduler reference

558 questions
0
votes
1 answer

How to start task periodically using firebase job scheduler

I used Jobschuler for sending notification every x minutes(determined dynamically) like this ComponentName componentName = new ComponentName(context,ClsJobService.class); JobInfo.Builder builder = new JobInfo.Builder(0, componentName) …
0
votes
2 answers

Why my job is not starting?

I try using JobSchedulers for my chat app (for async send message): val job = dispatcher.newJobBuilder() .setService(BackgroundJobService::class.java) .setTag(BackgroundJobService.TASKTAG_SEND_MESSAGE) …
0
votes
1 answer

action.BOOT_COMPLETED is not working

I have two alarm one starting alarm that start a job scheduler that sends notification at regular interval as describe in scheduler and second alarm is for canceling job scheduler, I wanted to preserve state, like if I restart my phone it should not…
0
votes
1 answer

Firebase Job Dispatcher Execution Window

Task: I want to fetch user's location between 9:00 AM to 9:00 PM. So, i thought to use Job Scheduler but not able to set it to above time slot. Please help me to understand firebase job scheduler. And please tell me how to set scheduler to above…
0
votes
1 answer

Completing tasks in a certain order using android's JobScheduler

I have job A and job B. They are both network related. I need the jobs to be completed in this order: ABA whenever the network is available, but instead, job scheduler completes the jobs in this order: AAB. How can i run tasks when network is…
Martis
  • 183
  • 1
  • 12
0
votes
2 answers

EverNote android-job: How can I run a job at a specific time once a day every week?

I'm developing a weekly scheduler in android and I'm interesting in a periodic job (once a week for example) that is fired at a specific time (for example at 4.00 PM) with evernote android-job I have read this…
mrpep
  • 131
  • 3
  • 12
0
votes
1 answer

How to use FirebaseJobDispatcher to replace CONNECTIVITY_CHANGE reliably

My app is targeting Android 7, with minimum SDK Android 4. Hence, listening to CONNECTIVITY_CHANGE (Even when the app is killed) no longer work anymore. What I wish to do is Even when my main app is killed, when the internet connectivity change…
Cheok Yan Cheng
  • 47,586
  • 132
  • 466
  • 875
0
votes
1 answer

JobScheduler Won't Run in the Background

I am trying to run an accounting calculator in the background using JobScheduler, but somehow, it won't do the calculation. The program runs smoothly, thats why it confuses me why it doesn't work. I appreciate your help. Here's my Job Service…
Anthony S
  • 53
  • 5
0
votes
1 answer

SetRequired... Not working when scheduling a JobService

I created a JobService to be executed by the JobScheduler... Its pretty simple, just Log something in the console with Log.Info(): public override bool OnStartJob(JobParameters @params) { Log.Info("JOBSERVICE", "FOI"); …
user3159043
  • 197
  • 1
  • 1
  • 16
0
votes
1 answer

Is it possible to re-schedule job within your job

I'm using Evernote's JobScheduler. The library provides a way to set a periodic job, however that has a minimum interval of 15 minutes between repetitions. I want to be able to send a user's location to the server every few minutes (maximum 3,…
Asim
  • 6,962
  • 8
  • 38
  • 61
0
votes
0 answers

How to JobScheduler work

I have read about Job Scheduler on Developer page and http://www.vogella.com/tutorials/AndroidTaskScheduling/article.html After reading about it, I am confused and unable to understand on how to use Job Scheduler. Presently I use Alarm Manager, to…
Bhanu Sharma
  • 5,135
  • 2
  • 24
  • 49
0
votes
0 answers

Receiving regular updates from server

My app requires real time updating of information, i.e updates around every 20 seconds, and the size of the data can vary (can be >4KB). What would be the ideal method of polling the server for data or even somehow pushing the data to the client…
0
votes
1 answer

onSharedPreferenceChanged not working with Firebase job

I have a background service which request new data from the server if new data exists it updates the sharedpreferences in my firebase job there is notification show command that shows notification between 0, 20 sec. Notiifcation is showing up in…
0
votes
2 answers

How to schedule a job using Jobscheduler

I am learning how to use JobScheduler. as shown in onresume method, I set the criteria to be met in order to execute the job, the job will be scheduled when the device is not charging, no matter the device is idle or not and the job will be…
Amrmsmb
  • 1
  • 27
  • 104
  • 226
0
votes
1 answer

Run periodic job while a condition is satisfied?

I'm using the following code to make a job run every time there is available internet. What I want in addition is, after the service is triggered (due to available connection) I want that service to continue running g periodically (every 30 seconds)…