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);

If you did not modify any of the application properties in AppCreator, the default behavior of the applet is to launch in Windowed mode. When the app launches in Windowed mode, it is a background app, and this means it will never receive the EVT_APP_SUSPEND and EVT_APP_RESUME events.
If you modify the app properties to use non-Windowed mode, the app will receive the EVT_APP_SUSPEND and EVT_APP_RESUME events, and they should then be delivered to your ActionScript extension.
You can modify the app's windowing properties in AppCreator by right clicking on the app in the parcel view and selecting Properties->Flash and then selecting an appropriate value from the dropdown under "Enable or disable windowing support".
Hope this helps,
Mike

If you did not modify any of the application properties in AppCreator, the default behavior of the applet is to launch in Windowed mode. When the app launches in Windowed mode, it is a background app, and this means it will never receive the EVT_APP_SUSPEND and EVT_APP_RESUME events.
If you modify the app properties to use non-Windowed mode, the app will receive the EVT_APP_SUSPEND and EVT_APP_RESUME events, and they should then be delivered to your ActionScript extension.
You can modify the app's windowing properties in AppCreator by right clicking on the app in the parcel view and selecting Properties->Flash and then selecting an appropriate value from the dropdown under "Enable or disable windowing support".
Hope this helps,
Mike

Hello, m3
I could catch SUSPEND/RESUME Event with help from your guide.
Thank you very much.

Hello, m3
I could catch SUSPEND/RESUME Event with help from your guide.
Thank you very much.