Catch SUSPEND/RESUME Events in IASExtension. | developer.brewmp.com Catch SUSPEND/RESUME Events in IASExtension. | developer.brewmp.com

Developer

Catch SUSPEND/RESUME Events in IASExtension.

Hello,

I need to catch SUSPEND and RESUME Event in IASExtension.

I could catch STOP Event by IASExtension_HandleEvent(),but could not catch SUSPEND/RESUME Events.

Please tell me how to catch SUSPEND/RESUME Events in IASExtension.

Thank you.

*Note
The application module was automatically generated by AppCreator,
So, I can not edit the source code of the application, I can edit only the Flash action scripts and Brew extension.

[Environment]
Brew MP SDK 7.10.10
Adobe Flash CS3 Professional
Brew MP Simulator(Candy bar)

[Code]
static AEEResult gpsextension_Initialize //IASExtension_Initialize
(Igpsextension * pi, IASEngine * piEngine,IASArgs * piArgs, boolean * pbWantEvents){
*pbWantEvents = TRUE;
pMe->piEngine = piEngine;
IASEngine_AddRef(piEngine);
return (AEE_SUCCESS);

static AEEResult gpsextension_HandleEvent //IASExtension_HandleEvent
(Igpsextension * pi, uint16 eventCode,uint16 wParam, uint32 dwParam, boolean * pbHandled)
{
*pbHandled = FALSE;
DBGPRINTF("@@@eventCode=%d",eventCode);
return (AEE_SUCCESS);