Questions tagged [android-job]

For using android-job as an alternative to low level schedulers built into android.

An utility library for Android to run jobs delayed in the background. Depending on the Android version either the JobScheduler, GcmNetworkManager or AlarmManager is getting used.

39 questions
1
vote
0 answers

Adding security permission for service in manifest file for Oreo+

I had a service which other apps used to bind with. And to secure this i have added a permision for the service. As a part of making the my app to Oreo compatible i have to change that service to JobService. To do so i had to add the…
anshul
  • 982
  • 1
  • 11
  • 33
1
vote
1 answer

Android Jobscheduler - How to download large nos of images using Job Scheduler

I have a jobservice which takes image url and download the image into a folder. I want to know how can i create a jobscheduler it will set jobs for me to download the all 400 images. I have to download approx 400 images from different 400 http urls.…
Feroz Siddiqui
  • 3,840
  • 6
  • 34
  • 69
1
vote
0 answers

Is end of execution window in Evenote Android Job ignored when enforced requierements are not met

I'm using Evernote's Android Job library to schedule job to run when device is online with the following code: new JobRequest.Builder(DemoSyncJob.TAG) .setExecutionWindow(1L, SECONDS.toMillis(10)) …
1
vote
1 answer

evernote/android-job - how to schedule and run periodically

I have tried all the below methods from evernote-android-job. Seems the schedulePeriodicJob method is running in some interval and the scheduleAdvancedJob method run only once. Help me how to set values for setExecutionWindow, setExact and…
Gvtha
  • 1,463
  • 1
  • 11
  • 18
1
vote
0 answers

How to keep JobIntentService running on Oreo?

I have two services. One of handles receiving call states. Other handles an overlay window. My problem is I can't keep services running. I could refactor receiving call states service. It gets each states changes and runs like new jobs. But other…
atasoyh
  • 3,045
  • 6
  • 31
  • 57
1
vote
2 answers

Stop the scheduled Periodic Job?

I have been using the android-job Evernote library. I have job which is running continuously every 30 minutes. I have been using code to schedule the job new JobRequest.Builder(TrackJob.TAG) …
1
vote
1 answer

Periodic Job not running consistently when using Evernote Android-Job library

I am trying to schedule a periodic job to run every 15 mins by using evernote's android-job. The problem is job runs 2-3 times and then it doesn't run every 15 mins. Basically in span of 8 hours it ran almost 10-11 times when the device was sitting…
NinjaCoder
  • 2,381
  • 3
  • 24
  • 46
1
vote
1 answer

Does Android Job library DailyJob start an Application class onCreate?

I use Android Job library from Evernote. Version 1.2.0. For daily jobs I use DailyJob (https://evernote.github.io/android-job/javadoc/com/evernote/android/job/DailyJob.html) like that: public class DailySyncJob extends DailyJob { public static…
Good
  • 306
  • 1
  • 17
1
vote
1 answer

Number of Evernote Android-Job periodic jobs keeps building up

Seems like the number of periodic jobs on my device (both emulator and real ones) keeps increasing when the app is updated. It dosen't matter if I install using Android Studio or first create a signed APK and then update via adb (adb install -r…
Ove Stoerholt
  • 3,843
  • 4
  • 25
  • 33
1
vote
1 answer

Is there a way to run a task once the same day and every consequent day at the specified time?

Is there a way to run a task once the same day and every consequent day at the specified time? I am using a library called "android-job" since it persists the scheduled jobs even after device reboot. I have been struggling to make this library work…
0
votes
0 answers

How to achieve long running operation in periodic jobs in Job Manager for Android 12?

I have a list of Master Apis which has to be synced every 24 hours. I tried periodic work requests in Job Manager with foreground notification. Everything was working fine. But I tried to run the same in Android 12, it got failed with an…
Raja Jawahar
  • 6,742
  • 9
  • 45
  • 56
0
votes
1 answer

Scheduling JobService in Android - Minimum periodic interval

I have successfully implemented Android.App.Job.JobService in my app and I am wondering if there is a way I can reduce the 15 minute delay period during testing? I would like if possible; #if DEBUG builder.SetPeriodic(5000); #else …
0
votes
2 answers

Evernote Android_JOB onRunJob() method is never called

I have implemented Evernote Android Job in my android application through implementation 'com.evernote:android-job:1.2.6' And I have define as signleton to get instance I have initiated it in my Application class through …
0
votes
1 answer

java.lang.NoClassDefFoundError: Failed resolution of: Landroid/app/job/JobInfo$TriggerContentUri;

I am using JobScheduler with addTriggerContentUri observing for any changes in the specific content uri. When I run the app I get the above exception.
AndroidDev
  • 1,485
  • 2
  • 18
  • 33
0
votes
1 answer

job scheduler with evernote/android-job library unsynchronized tasks

hi i trying to add an ability to my app that user can activate a option to app change the phone background every 15 minutes but i have a problem im using evernote/android-job library and retrofit and the simple work of public class WallpaperSyncJob…
Rea Teria
  • 133
  • 2
  • 17