Questions tagged [jobservice]
110 questions
0
votes
1 answer
TV provider Delete does not work with where clause
I am trying to delete some channels inserted by my app in TV.db via a JobService asynctaks.
Each time i am getting security exception while deleting.
Process: com.app, PID: 7026
java.lang.RuntimeException: An error occured while executing…

Pavan Tiwari
- 3,077
- 3
- 31
- 71
0
votes
1 answer
Use JobService in Android KitKat (4.4, API 19)
Is there a way to use the JobService component and related components in an Android app with minSDK 19 (Android Kitkat, API level 19) ?
Thanks in advance

Rodolfo Conde
- 49
- 1
- 7
0
votes
0 answers
Android 10 on killed of app(i.e. swiped out app from recent apps) the job scheduler to detect internet is not working
I have created a job scheduler which is started by a job service to detect when the device connects to network. But this scheduler doesn't work on android 10 devices.
`
try {
ComponentName componentName =
new…
0
votes
0 answers
httpClient.PostAsync crashes app in Xamarin Android JobService
I have an Android Xamarin app that handles notifications. When a notification is displayed, there are buttons that ask for a response. The app needs to send this response back to a server via an httpClient.PostAsync call. I am using the same http…

David
- 113
- 1
- 1
- 7
0
votes
1 answer
Cannot access Internet in Job Service When App is closed
So I wrote this piece of Job Service Class that is designed to access the Internet on Background, download few stuffs, and display Notification at an interval of 15 Seconds (Will increase it later to 45 Minutes, don't worry) :
import…

Soumyadeep Ghosh
- 366
- 5
- 13
0
votes
1 answer
why Job service doesn't start within the specified time?
I scheduled a job and I made it repeatable by setPeriodic() function every 2 hours, the problem is my service doesn't start within the specified time, and sometimes doesn't start at all, I know that starting from android O job services doesn't start…

peter Estifanos
- 131
- 10
0
votes
1 answer
How to call a method from MainActivity which takes views as parameters, from a class which extends JobService?
I want to execute this method which is in MainActivity...
public void checkNow(View view) {
new Thread(() -> {
//codes...
EditText getSite = findViewById(R.id.site);
site =…

Tashila Pathum
- 109
- 2
- 11
0
votes
1 answer
Does not require android.permission.BIND_JOB_SERVICE permission in Android
Although this has been answered. I have tried those but no luck. In my case, I am using JobService and JobIntentService in same project for testing and learning things. JobService is working fine but when I am trying JobIntentService it is not…

Abdul Waheed
- 4,540
- 6
- 35
- 58
0
votes
1 answer
The service in Android is recreated when I call
1) I'am starting Service or JobService via startService, startForegroundService for android Oreo and ContextCompat.startForegroundService
2) in the onCreate method of the service I do startForeground (1, notification), and in onDestroy I do…

Ра уан
- 1
- 1
0
votes
1 answer
Why JobScheduler is not working as expected
I am using JobScheduler to run the job every 15 mins. But It is not working as expected. Here I attached my code.
public class WorkScheduler extends JobService {
private static final String TAG = "Jobschedulerexample";
private boolean…

Vijayadhas Chandrasekaran
- 1,621
- 2
- 26
- 56
0
votes
1 answer
JobService rescheduling
What I wonder is if the JobParameters sent in jobFinished are the ones passed on to onStartJob when a JobService is restarted?
Say I start a thread in my JobService and in it I call jobFinished with true as the needsReschedule parameter. If I have…

DaedalusAlpha
- 1,610
- 4
- 20
- 33
0
votes
1 answer
JobIntentService not working on API below Oreo (API <= 26)
I'm setting up a new service for Android and I'm using JobIntentService for the first time. The service includes also a notification which is not displayed when I'm running the app in an Android version below Oreo. The job itself works until the…

MMG
- 21
- 1
- 9
0
votes
1 answer
What is the difference between service and JobService
I am wondering what is the main difference between service and JobService in Android.

khimji
- 53
- 14
0
votes
1 answer
Broadcast receiver doesn't work after registering in onStartJob
I use FirebaseJobDispatcher and JobService to do some work on the background. Mainly I want to register to a screen on/off receiver. When the job is called for the first time the receiver is registered as it supposed.
However, immediately after…

Keselme
- 3,779
- 7
- 36
- 68
0
votes
0 answers
AsyncTask without thread
i am using AsyncTask for some part of my code but i have a jobSchedulerIntentService and i want to send data to server and receive some responses. i want to do same action without AsyncTask thread because my jobSchedulerIntentService have a thread.…

Joker
- 41
- 6