Question
How to get the call coming / hanged event when in Cocos2d Android application ?
Because, I want do some action when receive the two event ?
I use coocs2d-x-3.14.1 on Android.
Question
How to get the call coming / hanged event when in Cocos2d Android application ?
Because, I want do some action when receive the two event ?
I use coocs2d-x-3.14.1 on Android.
Have a look at this: How to detect incoming calls, in an Android device?
Using this along with JNI calls, you can call c++ functions to carry out the custom actions.
// This function will be called when the app is inactive. When comes a phone call it's be invoked too.
AppDelegate::applicationDidEnterBackground()
// this function will be called when the app is active again
AppDelegate::applicationWillEnterForeground()