Hi,
I noticed that when you receive a call, it generally gives your application something in these methods:
- protected void onVisibilityChange(boolean visible)
- protected void onUnfocus()
- protected void onUndisplay()
- protected void onObscured()
- public void deactivate()
- protected void onFocusNotify(boolean focus)
However, this is not hapenning on this device (while it is on 8100, and all others i've tested).
This is annoying since i cannot make my game pausing when ignoring a call. I would simply declare it's a third party bug, but i also noticed the Brickbreakers application does recognize the call and make itself paused.
The other idea i tried is adding a PhoneListener. This is working, but... the user have to "Allow" the application to use this API, even if our application is signed.
2 questions:
- Is there another way to detect this interruption?
- Is there a way to use PhoneListener without asking the user to do it?
Any other suggestions are welcome!