PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Incoming Call on Smartphone

I know this has been asked before but there was no reply and it was quite a long time ago.

I'm using GD version 2.03 for a game for Smartphone 2002. Having looked at the base class CGapiApplication there seems to be some code to handle incoming calls on the phone (lines 530 - 560 approx). However, when I receive an incoming call my app still stays in the foreground although the ringtone can be heard above the music (using Hekkus). What further steps do I need to take to allow the user to see the standard incoming call screen?

Any help greatly appreciated - I really am stuck on this one!!
I believe you need to Set the parameter bMinimizeOnLostFocus in GDAPPCONFIG (winmain).

From the manual:
[OPTIONAL] Minimize application when focus is lost. Use this on Smartphones to minimize the application when an incoming phone call is received.
Thankyou soooo much Starfury. I had read the posts about this functionality having been added to GD since version 2 but it didn't seem to say how.

Thanks for answering but I clearly should have RTFM!! (and you probably should have told me to do just that!!)