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

Getting empty JSONArray as response after making a POST request using Volley on Android

I am expecting a JSONArray with a list of JSONObjects in the response that was originally passed in the request body. However, I'm getting a success response with an empty JSONArray. I'm certain that the API is working fine since I tested it on…
Terrel Lewis
  • 157
  • 3
  • 8
0
votes
4 answers

Why job service is still running when application is force stopped?

In my audio recording application, I created a job service which will schedule a job of recording at scheduled frequency intervals. Once I schedule the job to record for every 5 minitues(example), after few recordings, when I force stop the…
0
votes
0 answers

FirebaseJobDispatcher not scheduling service when app is closed in Nougat

I've one task to send all the entries to server from SQLite database once internet is connected, whether the application is in foreground or background or closed. And all the entries must go sequentially to server. I'm using firebase job dispatcher…
0
votes
1 answer

How to know that do Firebase JobDispatcher Background job active now programatically.

How to know that do Firebase JobDispatcher Background job active now programmatically for a particular tag.
0
votes
1 answer

Job scheduler in android nougat is not running

I am trying to make job scheduler run after every 3 seconds but it doesnt work on android noughat. Here is my code. mJobScheduler = (JobScheduler) getSystemService( Context.JOB_SCHEDULER_SERVICE ); JobInfo.Builder builder = new…
0
votes
3 answers

can not resolve symbol JobIntentService

Following build.gradle configuration on my project compileSdkVersion 27 buildToolsVersion "23.0.3" defaultConfig { applicationId "com.android.tt" minSdkVersion 16 targetSdkVersion 27 versionCode 1 versionName "1.0" …
0
votes
1 answer

Android Priority-Job-Queue keep retrying until success

So I have to download a bunch of image files from a server and I'm using Priority-Job-Queue. So far seems to works fine and I'm using a simple AsyncTask for the downloading part. Since I want the images to be downloaded no matter what I only added…
Mes
  • 1,671
  • 3
  • 20
  • 36
0
votes
1 answer

How to push notification to android app, when new data is available at server?

What i did is : I have used JobScheduler. In every two hours, it checks weather there is a new data available or not in Server->Database->Table. If new data available it retrieves the data and notifies to the subscriber. Kindly any one suggest me…
0
votes
2 answers

Android JobScheduler multiple threads

I'm using JobScheduler to send an email every 15 minutes. The JobScheduler is scheduled in MainActivity onCreate and therefore every time main activity is opened, the email gets sent. but after 15 minutes only one email is sent at a time. I want the…
helpmeplease
  • 101
  • 1
  • 1
  • 9
0
votes
1 answer

Does Job scheduler api work when app is killed?

I am making an android app, and there is a scenario where I want to use background services to send GPS data to the server if the network is available. I am planning to use JobSchdulerApi. I am curious to know if this will work when the app is…
Apoorva Jain
  • 475
  • 5
  • 11
0
votes
1 answer

Android JobScheduler needs to check for working interrnet first and then run other tasks

Ok I am using JobScheduler to sync data with a database. I know you can set requirements in JobScheduler to run a job like unmetered network etc etc, but the problem is Jobscheduler doesnt checks if internet is working it just checks if you are…
user3277530
  • 351
  • 6
  • 14
0
votes
0 answers

How to know that my app was restarted to run a scheduled job

Sometimes my app is forced to quit and then later Android restarts it just to run a scheduled job. I can't find a callback that would correspond to this scenario: that my app got killed in the meantime, so I have to restore all my retained state. I…
Marko Topolnik
  • 195,646
  • 29
  • 319
  • 436
0
votes
1 answer

How to use Firebase JobDispatcher for async reconnection of nv-websocket-client?

In an Android app (with minSdkVersion 16) I use the nv-websocket-client library: public class MainActivity extends AppCompatActivity { private WebSocket mWs; private WebSocketFactory mWsFactory = new WebSocketFactory(); private…
0
votes
1 answer

Schedule a Job when Internet goes off with Android O

Here is what I want to achieve: Monitor network state in the background. When the device doesn't have internet. Trigger a Job. Currently I see, there is no possibility to trigger a job when the device goes in "No Internet" state. Any workaround…
0
votes
1 answer

Android-Job run every time device is plugged in

In my Android app I need to run a background service every time the device is plugged in and idle (it should start after the user connects his device to the charger and end when he disconnects it). What I want is a similar thing to listening for the…
fergaral
  • 2,077
  • 6
  • 17
  • 34