Skip to main content
The 2024 Developer Survey results are live! See the results

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
0 votes
0 answers
17 views

Does jobscheduler have features that Workmanager doesn't have

In the android docs it is mentioned that, In most cases, the best option for running background tasks is to use WorkManager, though in some cases it may be appropriate to use the platform ...
Surya Dhanush G's user avatar
0 votes
0 answers
41 views

Can we use recurring OneTimeWorkRequest that enqueues another OneTimeWorkRequest every 5 mins to achieve period of 5 min using WorkManager in Android?

I am trying to implement a periodic task that should run every 5 mins and check the connectivity of my device to certain URLs every 5 mins. I want to use WorkManager for this. However, the minimum ...
Prashant Ravi's user avatar
0 votes
0 answers
33 views

JobScheduler doesn't work when application removed from recent app android

I'm building chat application and I'm using pusher service for this. as I need my application received messages when user close the application I used JobService and it works correctly when user ...
Mohamed Hossam's user avatar
1 vote
0 answers
77 views

How does stopping&throttling a Worker/JobScheduler work?

Background I work on some Worker that could take some time, but probably not too much time and it would be fine to reschedule it again in case the OS said it's too much. We plan to use ...
android developer's user avatar
0 votes
0 answers
31 views

JobScheduler not scheduling service in every minute

I want to schedule a job starting within 1 minute and continue on same interval. I have tried as below but not working. public static void scheduleJob(Context context) { ComponentName ...
D.J's user avatar
  • 1,529
1 vote
0 answers
319 views

Android Kotlin: Getting Location = null when device in Doze mode in OEM devices like Samsung, Xiaomi and so on

I used FusedLocationProviderClient with JobScheduler to get current location all time and it working well when app in background. But getCurrentLocation() method return Location = null when I tested ...
Falguni Rana's user avatar
2 votes
1 answer
216 views

Is there a way to detect Network Connected and Disconnected events in Android 13?

I'm looking for a solution to detect Network Events in my Android project, specifically the Connected and Disconnected Events. With older Android versions, we were able to listen such events from ...
Affection77's user avatar
1 vote
1 answer
89 views

Get reminders based on data in a database

I want to get reminders for some Appointments that I have saved in database and they have a notificationTime property witch is the time when a notification needs to be displayed. My approach so far is ...
Nicoara's user avatar
  • 370
0 votes
0 answers
57 views

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 ...
João Oliveira Ferreira's user avatar
0 votes
0 answers
32 views

Opening a closed application based on events from network

this is my issue:I am developing an emergency app where real time data is important, I have a backend running socket.io, and the client is an android device. Every time the backend emits a new ...
tester New's user avatar
1 vote
0 answers
78 views

JobScheduler not having schedule options in Android Kotlin

I am trying to use JobSchedule in Android Kotlin but not getting the schedule method in JobScheduler. Here is my code val jobScheduler = applicationContext .getSystemService(...
RunTime Error's user avatar
0 votes
1 answer
107 views

What is the best way to schedule a brief task from an already running background service?

I have implemented a NotificationListenerService that runs in the background. From this services onNotificationPosted method, I would like to be able to queue work to happen in 2 minutes time. What is ...
Scorb's user avatar
  • 1,769
0 votes
1 answer
128 views

How can I run code in the background when a new app is installed?

I'd like to run code in my app when any new app is installed. Is there a way to do this? I'm open to methods that require the use of a foreground service or elevated app permissions.
hacker1024's user avatar
  • 3,519
3 votes
0 answers
227 views

Scheduling a periodic JobService only if it is not scheduled already

I'm trying to schedule a periodic job service like below. The problem here is that jobScheduler.getPendingJob(jobId) always returns null after the job is executed once, i.e., jobScheduler....
Siddhant's user avatar
  • 593
0 votes
1 answer
827 views

Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR) - dotnet MAUI, with Shiny 3# Alpha Job on Android

Don't have a lot of experience with debugging issues with Android. Have built an app with dotnet MAUI, and since adding a Shiny job to do a Web API call, I'm getting these errors in my logcat: [07-20 ...
devonuto's user avatar
  • 403

15 30 50 per page
1
2 3 4 5
38