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

Run my background service at a specific time and periodically using JobScheduler

I want to run a background service to fetch new data every 24 hours starting from 11:45 PM using JobScheduler, the problem is that I can't find how to tell the jobSheduler that my service should start running at 11:45 PM ? private void…
0
votes
1 answer

Can't cancel and schedule Android Job Service again

I have job service that upload files to server. I'm trying to cancel and schedule it again after it but job isn't scheduling again. I do it like this: jobScheduler.cancel(UPLOADER_JOB_ID); jobScheduler.schedule(jobInfo); This is happening…
Olexii Muraviov
  • 1,456
  • 1
  • 12
  • 36
0
votes
1 answer

JobScheduler problems on Android 8

I have my application that uses JobScheduler to check is it alive or not. As far as it must work in cases: User removed app from recent apps Smartphone was rebooted or battery was exhausted Anyway application should launch as soon as it is…
Yura
  • 969
  • 14
  • 33
0
votes
1 answer

Http request in background with Firebase job dispatcher: asynchronous or synchronous?

I am using Firebase Job Dispatcher and setting it up like described in https://github.com/firebase/firebase-jobdispatcher-android/blob/master/README.md. The job to be scheduled is a http request. The http request could run while the app is on the…
0
votes
0 answers

JobScheduler behave strange on HTC One with Android 5.0.2

I am developing an app that uses the JobScheduler API introduced in Android 5.0. I schedule jobs and log when they are executed. This work well on my test devices except on the HTC One running Anroid 5.0.2. The HTC device does not consider the…
Alex
  • 1,395
  • 1
  • 13
  • 22
0
votes
1 answer

Firebase Job Dispatcher not triggering at specified time, date as daily/weekly etc

Job myJob = dispatcher.newJobBuilder() // the JobService that will be called .setService(MyJobService.class) // uniquely identifies the job .setTag("my-unique-tag") …
0
votes
2 answers

How to work around the Android JobScheduler timeout?

I have an app that connects to the Bitmessage network, i.e. is downloading and processing data from the P2P network all the time. Also, it should (optionally) only use WiFi/unmetered networks. I've implemented this by using the JobScheduler, but…
Chris
  • 117
  • 7
0
votes
1 answer

Getter and Setter is not working in JobScheduler

I get into an issue which I am not able to figure out. I had used getter and setter for a string type longitude which is set in onLocationChanged() method of location provider(which is changing its value as expected) and the getter is supposed to be…
Amrita Stha
  • 2,973
  • 3
  • 25
  • 46
0
votes
0 answers

FusedLocationApi is not working while scheduling it with JobScheduler

Calling FusedLocationApi within jobscheduler doesn't work. I have tried in 2 ways but onConnected() are never called in both of them. How can I make it work? Thankyou MainActivity.class public class MainActivity extends AppCompatActivity implements…
0
votes
1 answer

How to convert PersistableBundle to Bundle in android?

I am looking for a way to convert PersistableBundle to Bundle in android. Is there any simpler way to do this? They both do not inherit from same class and hence i cannot typecast them. Edit: I found this way to copy public static Bundle…
0
votes
1 answer

Networking with Jobscheduler

Is networking using HttpUrlConnection etc (for uploading data to server) possible with JobScheduler? Or I've to go with GCMNetworkManager? How can I perform network operation scheduling? MainActivity.class jobScheduler =…
Amrita Stha
  • 2,973
  • 3
  • 25
  • 46
0
votes
1 answer

Detect user has disconnected of the Wifi in Android Nougat

When an app is in background mode, how can we detect that the user has disconnected of the Wi-Fi? As everybody knows, after Android 7.0, our BroadcastsReceveirs are no longer fired when a CONNECTIVITY_ACTION broadcast intent is sent. Register the…
0
votes
0 answers

DailyReminder on Java Android

I'm creating a catalogue movie , and now I want to create some notification or anything like this, if user is not opening the app,for a few day or hours,it will show a notification like "Hey Catalogue Movie is missing you",i want the notification is…
0
votes
1 answer

Jobscheduler not starting job

I made a class RefreshService that extends JobService, and in it I have a static method scheduleJob(): public static void scheduleJob(final Context context) { final JobScheduler jobScheduler = (JobScheduler)…
Quorrin
  • 99
  • 1
  • 3
  • 10
0
votes
2 answers

Android How schedule task for every night with JobDispatcher api?

i have to download json response from web server on every night,previously i have used AlarmManager for scheduling tasks but i think for this kind of situation JobDispatcher is great because it auto perform task if network available so i don't have…