I'm currently extending from Service class for my customized service implementation. As part of Android-O migration, I want to use JobIntentService.
Currenlty all my logic is in service's onStartCommand method.
However, as per JobIntentService I should use onHandleWork method for my logical part.
The official documentation for JobIntentService says that onStartCommand Processes start commands when running as a pre-O service, enqueueing them to be later dispatched in onHandleWork(Intent).
So, my question is do I need to keep both onStartCommand & onHandleWork methods & do I need to write the same logic in both of these methods?
OR
Simply onHandleWork will work?
Please clarify.