my question is very easy but i've been struggling with this for a long!
I have a Bound Service that call the onBound() method:
@Override
public IBinder onBind(Intent intent) {
return null;
}
Unlikley, it's impossible to use that implementation with JobIntentService becouse it will throw a JobServiceContext: Time-Out with binding service
Of course, removing that overriding method is not the solution since i can't remove it...
This is my JobIntenteservice
JobBoot.java
public class JobBoot extends JobIntentService {
public static final int JOB_ID = 0x01;
public static void enqueueWork(Context context, Intent work) {
enqueueWork(context, BackgroundService.class, JOB_ID, work);
}
@Override
protected void onHandleWork(@NonNull Intent intent) {
// your code
}}
What can i do to fix this issue??
Thanks