Questions tagged [jobservice]
110 questions
1
vote
2 answers
Is it possible to create a JobService to be fired when alarmclock goes off
Is it possible to create a JobService to be fired when alarmclock goes off?
I used to have this code in the manifest for a Broadcast receiver:
…

Ton
- 9,235
- 15
- 59
- 103
1
vote
0 answers
How to automatically change wallpaper after every 30 seconds using JobScheduler?
I am creating application where there is an option of checkbox allowing user to change wallpaper automatically after 30 seconds. I am using JobScheduler and have passed arraylist of images by serializing them to JsonArray and then to String and…

RahulS
- 11
- 6
1
vote
1 answer
Android send notifications at greatly increasing intervals
I am writing a reminder app for Android that repeatedly sends the user a notification with increasing intervals in between. Namely after 30s, 2m, 10m, ..., 25 days, 4 months, 2 years.
I originally intended to do this by registering a JobService that…

Albert Tomanek
- 387
- 4
- 13
1
vote
1 answer
JobScheduler for Nougat/Oreo
I followed some online tutorials about jobscheduling in android and I tried doing it and found out that the below code compiles without errors. But the problem is there is no toast from the onPostExecute/doInBackground return message. Is there…

CigarDon
- 79
- 1
- 4
- 14
1
vote
0 answers
JobService after on destroyed keep app process running
I create a UploadContactsJobService that extend JobService after uploading finish I called stopCurrentJob method
private void stopCurrentJob() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
JOB_INFO = new…

Ahmed Wahdan
- 330
- 4
- 15
1
vote
0 answers
In JobService open SQLite database with Context
In my application I write jobs into a queue in a SQLite table.
With a JobService I would like to process this queue.
I'm currently struggling to access the database from inside the the JobService as I require the Context. Both getBaseContext() and…

celphy
- 127
- 11
1
vote
1 answer
Scheduling JobService on Android
I have a job service that i want to excecute for every three hours, I have made the jobservice class but I don't know how to excecute it every three hours.
here is my Jobservice class
public class CleanupJobService extends JobService {
private…

mangkool
- 316
- 2
- 18
1
vote
0 answers
Wearable.DataApi.putDataItem not being called from Jobservice in Oreo
Due to Background Service Limitations in Oreo, I put up my Service (used in Nougat, API 25) to send data to Wear (API 23) using Jobscheduler (as recommended replacement).
There I am using an AsyncTask to send data to my wearable.
…

tomseitz
- 503
- 2
- 4
- 14
0
votes
0 answers
why my JobService is not working in some devices?
i'm creating and app which notify the user in some specific period of time, i used JobService to let it working automatically and with the app closed, my problem is... there are some devices that my Job simply does not start, i dont know what is…
0
votes
1 answer
MassTransit.ConfigurationException: The job service must be configured prior to configuring a job consumer, using either ConfigureJobServiceEndpoints
Need some help to incorporate JobService into my current MassTransit. My current project work great with MassTransit Consumer, since I have some long run process, and I don't want to hold up the RabbitMq, so I tried to adopt JobService. I follow the…

Phong Nguyen
- 21
- 3
0
votes
1 answer
JobService stopping by battery save mode and 15% - 10% - 5% status
I'm using a JobService to keep my notifications running even when app is closed by the user, but when cellphone goes to battery save mode or 15%, my service stop to work.
I would like to understand if exists a way to avoid it,…
0
votes
1 answer
Android Target API 31 best way to run a service in background that ALWAYS keep listening to my messaging server (RabbitMQ)
I am trying to create a notification service in my android app that always keeps listening to my RabbitMQ server for new messages. I want it to be able to send notifications even from background. Basically I am trying to create a notification…

Harsh Palit
- 15
- 6
0
votes
0 answers
Simplifying the usage of similar API calls
I have 2 different requests that have the same parameters and response handling, but it depends on one flag if the app should use on or the other API.
Everything works just fine but I have a question about simplifying the Main.java.
I tried to use…

Richard
- 1,087
- 18
- 52
0
votes
1 answer
JobService to fire Notification by using Switch widget on Android
I have an app with a Switch that has to fire my JobService. I called two methods in setOnCheckedChangeListener of the Switch, one for register and one for unregister the job.
It seems to work, like debug shows, but the the background work inside the…

riccardogabellone
- 268
- 1
- 6
- 17
0
votes
0 answers
Android: I'm trying to delete the pictures in the gallery using the Jobscheduler, but I can't delete them
I'm creating an Android app that manages screenshot folders in the gallery.
One of the functions of the app is to automatically delete screenshot images, and to do this, I created two classes: DeleteActivity and MyJobService. MyJobService class is…

onerat
- 3
- 3