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

Developer

Forums

Are Trigs able to catch suspend/resume events? Particularly the resume? For example, if you launch a 'standard' BREW app from a uiOne app, the last trig page is still resident underneath the control of you now-running BREW app. When you exit your 'standard' app you return return to uiOne, and the last trig page that was running is now back in focus. It would be nice if the trig that regains focus could be aware of that, but is there a way? I've tried to catch the '_entry' system event, but this only seems to happen when the page is loaded. Since it was already loaded, it doesn't get sent again. In BREW, we had EVT_APP_RESUME, is there something similar with uiOne?

All events are passed to the trig by the launcher app. If you take a look at ExampleTrigApplet in the Examples folder of your uiOne SDK, you can see the source used by the default launcher app. It should be possible to send a custom TrigML event to trig within the EVT_APP_RESUME handler in the launcher app.

All events are passed to the trig by the launcher app. If you take a look at ExampleTrigApplet in the Examples folder of your uiOne SDK, you can see the source used by the default launcher app. It should be possible to send a custom TrigML event to trig within the EVT_APP_RESUME handler in the launcher app.

Based from mohlendo's reply, there is no such event in uiOne's TrigML that could represent "EVT_APP_RESUME".
The App display will still be resumed though when "EVT_APP_RESUME" is received by the Applet. It's just that if you want your display to do something else when "EVT_APP_RESUME" event is received you'd have to send an event to your TrigML that would represent "EVT_APP_RESUME", when "EVT_APP_RESUME" event is received.
Is this correct?

Based from mohlendo's reply, there is no such event in uiOne's TrigML that could represent "EVT_APP_RESUME".
The App display will still be resumed though when "EVT_APP_RESUME" is received by the Applet. It's just that if you want your display to do something else when "EVT_APP_RESUME" event is received you'd have to send an event to your TrigML that would represent "EVT_APP_RESUME", when "EVT_APP_RESUME" event is received.
Is this correct?

Yes, that sounds about right.

Yes, that sounds about right.

Its possible to read an event from BREW like resume or start. According to the uiOne_SDK_Tutorial by using an event mask its possible for an actor to receive system events.
According to this document by placing a string into /trig/config/actors//eventmask. I placed 0x40000000 into this string so that I could recieve user events.
Mine doesn't work? Any thoughts?
Mike.
I found by placing the class id of my trigML app and placing the above string into the right place that I can receive a message from system. In my case I was able to receive a EVT_USER when using ISHELL_PostEvent
Mike.

Its possible to read an event from BREW like resume or start. According to the uiOne_SDK_Tutorial by using an event mask its possible for an actor to receive system events.
According to this document by placing a string into /trig/config/actors//eventmask. I placed 0x40000000 into this string so that I could recieve user events.
Mine doesn't work? Any thoughts?
Mike.
I found by placing the class id of my trigML app and placing the above string into the right place that I can receive a message from system. In my case I was able to receive a EVT_USER when using ISHELL_PostEvent
Mike.

Have you tried other masks?
Event mask value Corresponding BREW AEE events Name token
0x00000001 0x0000 - 0x00FF ACTOR_REQUEST_APP_EVENTS
0x00000002 0x0100 - 0x01FF ACTOR_REQUEST_KEY_EVENTS
0x00000004 0x0200 - 0x02FF ACTOR_REQUEST_CTL_EVENTS
0x00000008 0x0300 - 0x03FF ACTOR_REQUEST_DLG_EVENTS
0x00000010 0x0400 - 0x04FF ACTOR_REQUEST_SHL_EVENTS
0x00000020 0x0500 - 0x05FF ACTOR_REQUEST_DVC_EVENTS
0x00000040 0x0600 - 0x06FF ACTOR_REQUEST_CLP_EVENTS
0x20000000 0x6000 - 0x6FFF ACTOR_REQUEST_DYN_EVENTS
0x40000000 0x7000 - 0xFEFF ACTOR_REQUEST_USR_EVENTS
0x10000000 (Event sent to Actors after the first load of a Trig) ACTOR_REQUEST_START_EVENT

Have you tried other masks?
Event mask value Corresponding BREW AEE events Name token
0x00000001 0x0000 - 0x00FF ACTOR_REQUEST_APP_EVENTS
0x00000002 0x0100 - 0x01FF ACTOR_REQUEST_KEY_EVENTS
0x00000004 0x0200 - 0x02FF ACTOR_REQUEST_CTL_EVENTS
0x00000008 0x0300 - 0x03FF ACTOR_REQUEST_DLG_EVENTS
0x00000010 0x0400 - 0x04FF ACTOR_REQUEST_SHL_EVENTS
0x00000020 0x0500 - 0x05FF ACTOR_REQUEST_DVC_EVENTS
0x00000040 0x0600 - 0x06FF ACTOR_REQUEST_CLP_EVENTS
0x20000000 0x6000 - 0x6FFF ACTOR_REQUEST_DYN_EVENTS
0x40000000 0x7000 - 0xFEFF ACTOR_REQUEST_USR_EVENTS
0x10000000 (Event sent to Actors after the first load of a Trig) ACTOR_REQUEST_START_EVENT

MikeH wrote:Its possible to read an event from BREW like resume or start. According to the uiOne_SDK_Tutorial by using an event mask its possible for an actor to receive system events.
According to this document by placing a string into /trig/config/actors//eventmask. I placed 0x40000000 into this string so that I could recieve user events.
Mine doesn't work? Any thoughts?
Mike.
I found by placing the class id of my trigML app and placing the above string into the right place that I can receive a message from system. In my case I was able to receive a EVT_USER when using ISHELL_PostEvent
Mike.
I don't understand what you're saying here. Putting this eventmask resource in your Trig should just tell TrigPlayer to forward the event to the actor. Are you saying you're receiving an event in your Trig after adding the notifier mask?

MikeH wrote:Its possible to read an event from BREW like resume or start. According to the uiOne_SDK_Tutorial by using an event mask its possible for an actor to receive system events.
According to this document by placing a string into /trig/config/actors//eventmask. I placed 0x40000000 into this string so that I could recieve user events.
Mine doesn't work? Any thoughts?
Mike.
I found by placing the class id of my trigML app and placing the above string into the right place that I can receive a message from system. In my case I was able to receive a EVT_USER when using ISHELL_PostEvent
Mike.
I don't understand what you're saying here. Putting this eventmask resource in your Trig should just tell TrigPlayer to forward the event to the actor. Are you saying you're receiving an event in your Trig after adding the notifier mask?

I'm having a similiar problem. I have an actor that I want to recieve non TRIG events. (EVT_APP_POST_URL specifically) My actor is currently named debug and I can successfully create nodes on it, and view the content of those nodes in my trigs. (So the actor exists, and exists where I think it is).
I created a node in my trig at "config/actors/debug/eventmask". I then placed the eventmask in it. I tried several different masks, (0xFFFFFFFF,0x7000007F,and 0x00000002) all with the same result, no events being recieved by my actor.
I placed a print statement in the base actor loader node event handler to print any incoming events. The only ones that show up are TRIG events that I should always be recieving anyway.
Any thoughts?

I'm having a similiar problem. I have an actor that I want to recieve non TRIG events. (EVT_APP_POST_URL specifically) My actor is currently named debug and I can successfully create nodes on it, and view the content of those nodes in my trigs. (So the actor exists, and exists where I think it is).
I created a node in my trig at "config/actors/debug/eventmask". I then placed the eventmask in it. I tried several different masks, (0xFFFFFFFF,0x7000007F,and 0x00000002) all with the same result, no events being recieved by my actor.
I placed a print statement in the base actor loader node event handler to print any incoming events. The only ones that show up are TRIG events that I should always be recieving anyway.
Any thoughts?

I haven't found a straight answer on this topic, and it is my belief that the uiOne documentation is incorrect … Due to the fact that I have followed it to the ‘T’ with no positive results.
If someone can confirm forwarding EVT_APP_SUSPEND and EVT_APP_RESUME to an actor with a working example (i.e. TrigML and actor code, not regurgitation of the documentation) I would be astonished.

I haven't found a straight answer on this topic, and it is my belief that the uiOne documentation is incorrect … Due to the fact that I have followed it to the ‘T’ with no positive results.
If someone can confirm forwarding EVT_APP_SUSPEND and EVT_APP_RESUME to an actor with a working example (i.e. TrigML and actor code, not regurgitation of the documentation) I would be astonished.