Questions tagged [android-priority-jobqueue]
18 questions
4
votes
3 answers
Make job run and do pooling every 2 mins, whether the app is closed or removed from memory
I am using android-priority-job-queue 'com.github.yigit:android-priority-jobqueue'. To make sure it runs every 2 minutes. Below is the code
public PoolingJob () {
// This job requires network connectivity,
// and should be persisted in case…

UMESH0492
- 1,701
- 18
- 31
4
votes
0 answers
onRun of android-priority-jobqueue not called
I am trying to integrate android-priority-jobqueue in android but onRun is not called i dont know what i am doing wrong.
Here is my Job class
public class UpdateAttachmentJob extends Job {
long id;
String token;
private static final…

George Thomas
- 4,566
- 5
- 30
- 65
1
vote
2 answers
Work grouping/chaining for WorkManager similar to android-priority-jobqueue
We are migrating to WorkManager, the successor of android-priority-jobqueue library. How can we implement work grouping with WorkManager. We could achieve similar structure by using WorkContinuation but it required a reference to WorkRequest instead…

user802421
- 7,465
- 5
- 40
- 63
1
vote
1 answer
Run jobs in a serial in android priority queue
I want to run jobs in serial queue(Wait for first job to start second). I am using android priority queue library which allows you to run jobs in serial by setting same group id but it dont work in my case.
I have added three jobs in…

Sharjeel Haider
- 83
- 1
- 7
1
vote
1 answer
how to manage jobs in job queue in android?
I am working on JOB queue. Here the scenario is i am storing 3 api calls in job queue. The first API is having more information in json. but last two is having less information. According to the priority when network is available it is calling those…

rashmi ranjan
- 380
- 1
- 4
- 14
1
vote
2 answers
Android-Priority-Jobqueue Surviving Orientation Change
I'm trying to implement the library below to survive orientation changes:
https://github.com/yigit/android-priority-jobqueue
Here's my configuration:
Configuration config = new Configuration.Builder(getApplication())
…

savepopulation
- 11,736
- 4
- 55
- 80
1
vote
0 answers
Robolectric getSystemService returns null for PowerManager service
I'm trying to unit test some code that uses a library (android priority jobqueue) that requires the powermanager service to exist in some form, but when it tries to access it, getsystemservice returns null, and the library crashes with a…

Tomasu
- 181
- 1
- 13
1
vote
1 answer
Why is it not possible to loop a call execute to get multiple responses inside my IntentService via Retrofit?
Why is it not possible to loop a call execute to get multiple responses inside my IntentService via Retrofit?
Please see my code:
public class UpdateAgendaService extends IntentService {
public static final int STATUS_RUNNING = 0;
public…

mangu23
- 884
- 9
- 13
1
vote
1 answer
Android JobQueue - Queue jobs
I have a simple scenario where I would like to queue two jobs, Job A and Job B.
Job B must only be called once Job A has finished.
Setup
I have encapsulated the jobManager object within Application.
App.getJobManager().addJobInBackground(new…

Subby
- 5,370
- 15
- 70
- 125
1
vote
0 answers
Lifecycle of JobQueue with respect to callback method
I am using com.birbit:android-priority-jobqueue:1.3.5 to send data to server. Here is how.
@Override
public void onRun() throws Throwable {
MyStuff myStuff = getMyStuffFromContentProvider(mDbId);
SendAfterPhotosCallback callback = new…

Nouvel Travay
- 6,292
- 13
- 40
- 65
1
vote
1 answer
Android Job Queue onRun() not called when using persist()
I'm using Yigits fork of the Path Android Job Queue library to make API calls. I've made a simple class to ping the API. In the class constructor I'm calling super() like this:
super(new…

MadG
- 94
- 6
1
vote
1 answer
Retrieve current list of active jobs in android-priority-jobqueue
I'd like to know if there's a recommended way of retrieving a list of active jobs in https://github.com/yigit/android-priority-jobqueue
That way, if I have persistent jobs still waiting, I can let the user know which ones.

gbhall
- 13,139
- 9
- 37
- 42
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
More control over priority-job-queue
So, I have implemented priority-job-queue which is perfectly documented and meets all my requirements. I have some difficulties though. As per client's request, I had to divide networks call into two parts, offline (queued server calls with…

Farid
- 2,317
- 1
- 20
- 34
0
votes
1 answer
Dependency injection with priority job queue in clean architecture
I'm using priority job queue in an project which uses the concepts of clean architecture. The thing is: to do DI with priority job queue I need to create a BaseJob job like this:
abstract public class BaseJob extends Job {
…

user2601142
- 33
- 5