Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

1)I suspended the game on CDM9900 by initiating ALARM
2)I stopped the alarm to resume the game
3)It asked me "Do you wang to resume yes/No"
4)I selected Yes
5)Game is resumed

I repeated the above steps multipe times ( say 5 /6 times )
Now once time when I suspended the Game by ALARM and stopped the alarm and pressed "Yes" to resume game ,Game could not be resumed.
While debuging the code I came to know that , this time device did not fire
EVT_APP_RESUME event so I could not resume the game.
Can someone expalin why device did not fire EVT_APP_RESUME this time ? or
Is it device known ( specific ) issue ? or
something else I am not aware of ?

BREW should fire resume event, if BREW does not fire resume event (BREW wouldn't fire resume event if you terminate your top level application using END key instead of CLR key) then it is very likely to be a handset bug. You may have to contact BREW support.

BREW should fire resume event, if BREW does not fire resume event (BREW wouldn't fire resume event if you terminate your top level application using END key instead of CLR key) then it is very likely to be a handset bug. You may have to contact BREW support.

Hello All,
After further debugging it is come to know that ,
Normaly it fires Event No 3 ( EVT_APP_RESUME) but when Game freezes ( when we press "yes" on "Do you want to resume scren) at that time it fires Event No 11 , which is not defined in Brew event list for 2.0 versions. In Brew 3.0 version this Event no means EVT_EXIT.
I tried to handle this event forcefully by
case 11://Undefined event due to which Game Freezes
IDISPLAY_DrawText(pApp->m_pIDisplay,
AEE_FONT_NORMAL,
L"Game Can't be
1,
resumed",
2,
30,
NULL,
NULL);
IDISPLAY_DrawText(pApp->m_pIDisplay,
AEE_FONT_NORMAL,
L"Press a Key to Exit",
-1,
2, 60,
NULL,
NULL);
IDISPLAY_Update(pApp->m_pIDisplay);
pMe->isSuspend=0;//hack
return FALSE;
but when This event occured No IDISPLAY_DrawText worked . I think Brew API might not be working at this time. Can Anyone sugegst me the solution me on this ? Please let me know any reference. Thanx

Hello All,
After further debugging it is come to know that ,
Normaly it fires Event No 3 ( EVT_APP_RESUME) but when Game freezes ( when we press "yes" on "Do you want to resume scren) at that time it fires Event No 11 , which is not defined in Brew event list for 2.0 versions. In Brew 3.0 version this Event no means EVT_EXIT.
I tried to handle this event forcefully by
case 11://Undefined event due to which Game Freezes
IDISPLAY_DrawText(pApp->m_pIDisplay,
AEE_FONT_NORMAL,
L"Game Can't be
1,
resumed",
2,
30,
NULL,
NULL);
IDISPLAY_DrawText(pApp->m_pIDisplay,
AEE_FONT_NORMAL,
L"Press a Key to Exit",
-1,
2, 60,
NULL,
NULL);
IDISPLAY_Update(pApp->m_pIDisplay);
pMe->isSuspend=0;//hack
return FALSE;
but when This event occured No IDISPLAY_DrawText worked . I think Brew API might not be working at this time. Can Anyone sugegst me the solution me on this ? Please let me know any reference. Thanx