In my application, I've got CommosWare's WakefulIntentservice
. From the doWakefulWork
method I call a couple of self-written methods. For example:
@Override
protected void doWakefulWork(Intent arg0) {
exampleMethod();
}
private void exampleMethod() {
//Stuff
}
It keeps my code clear, but is there a chance of losing the WakeLock
when I call self-written methods?
Thanks in advance!
So long as the "self-written methods" do not fork a thread or otherwise do something asynchronously, you are safe.