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
0 answers

Android Local broadcast is not working from JobService

I am trying to send broadcast from JobService and receiving it from an activity . Here is what I have tried MyJobService @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP) public class MyJobService extends JobService { @Override public…
mSapps
  • 601
  • 9
  • 24
0
votes
0 answers

How can I set an alarm manager to be triggered when there is internet connection?

I have used alarm manager to sound at a specific time or repeating on specific days but I can't seem to find a way to make it be triggered at a specific condition which is "on available network". I need to do this because I'm using an intent in the…
0
votes
1 answer

android-job: Periodic once a day, DeviceIdle = true, as soon as possible

need some help to set up my perodic job correctly with android-job lib. I want to start a job once a day and the device is ideling. Additionally the job should start as soon as possible on day. That means in best way the job start at 00:01 AM. And…
Scrounger
  • 261
  • 3
  • 5
0
votes
1 answer

JobScheduler not working after setting time interval

I try to run JobScheduler for periodic interval 10 sec. e.g. builder.setPeriodic(10000). But not able to start TestJobService IntentService on button click and doesn't show any error message. Can any body help me. public void onClick(View v){ …
Pritesh Patel
  • 678
  • 17
  • 35
0
votes
2 answers

Scheduled JobService after device Reboots

Does scheduled JobService(JobScheduler api or firebase jobdispather) , which has not been executed due to specified conditions are not met automatically rescheduled after device reboots? Or we need to reschedule .
ak0692
  • 233
  • 2
  • 13
0
votes
1 answer

Can i use Firebase JobDispatcher for triggering time specific tasks

I am developing an application where certain tasks as to be done in background at a specific time. Android developer docs suggests various methods. I know AlarmManager can be used for this purpose. But, I think, using AlarmManager in Android 6.0 in…
John
  • 8,846
  • 8
  • 50
  • 85
0
votes
0 answers

On JobService of a JobScheduler

I've couple of questions regarding JobScheduler service of Android. First of all, how or/and when the related JobService of a JobScheduler started? For example, after I call schedule method or something else? I'm also a bit curious about how exactly…
stdout
  • 2,471
  • 2
  • 31
  • 40
0
votes
1 answer

JobScheduler setRequiredNetworkType(JobInfo.NETWORK_TYPE_ANY) not working

The following code never runs. The job is scheduled successfully however it is never actually executed. I've even set an overriding deadline of 1m10s. The device is connected to WiFi at all times and even after 5 hours of wait, I never see it…
strangetimes
  • 4,953
  • 1
  • 34
  • 62
0
votes
1 answer

LocalBroadcastManager broadcast not consumed

The Intents I broadcast with LocalBroadcastManager don't seem to be consumed, but instead accumulate. Each time I send a broadcast, I receive both it and all previously sent broadcasts, in onReceive. In a periodical JobService I'm creating a…
0
votes
0 answers

How to Update Sqlite database using an api+job scheduler in android 21 and above?

I am trying to use Job Scheduler for updating the sqlite database. But the moment i start the app, it crashes and in logs it says it cant find a table. Could someone tell me what i am doing wrong?
Pawan Kumar
  • 594
  • 4
  • 18
0
votes
1 answer

Schedule same job after x sec on completion

I am using com.github.yigit:android-priority-jobqueue. I am stuck how to schedule same job after x sec on completion or in onRun() call. Is there any method?
UMESH0492
  • 1,701
  • 18
  • 31
0
votes
0 answers

App unpredictable behavior

I am making an app that uses Async Task and JobShceduler,and uses SQlite, the problem is that when I ran the app in emulator Api 23 it doesn't crash however if I ran the same app in SAmsung Grand Prime Kitkat the app crashes. I am a beginner and I…
0
votes
1 answer

Android - follow up on GcmTaskService and the GcmNetworkManager - scheduling tasks after a force stop

To start with, I am aware of all questions and answers in this stackoverflow question, in the official documentation and in this github sample project Unfortunately, from my testing I couldn't verify the whole "tasks continue to run after…
0
votes
1 answer

Scheduling background sync jobs in Android (API > 15)

We have a requirement to schedule periodic sync jobs for an Android Application. There is no hard schedule requirement but as long as the sync runs every 6-7 hours, it should be fine (provided there is network connectivity). We're using…
-1
votes
1 answer

Run a service (push notif) in a exact time repeatedly even if phone is in doze mode

I want to run a service (push notification) in a specific time every day even if phone is in a doze mode l. Using alarm manager with method of setExactAndAllowWhileIdle() has two issues first it just support sdk 23 and upper, second it cannot be…