ISHELL_SendEvent returing false,plese help | developer.brewmp.com ISHELL_SendEvent returing false,plese help | developer.brewmp.com

Developer

ISHELL_SendEvent returing false,plese help

Forums:

Hi all,

i want to make to communicate between background and foreground application.

but when ever i am sending an event to the background appliaction , "ISHELL_SendEvent" is sending false. i dont know what cud be the problem.

////////////////////////////////////////////////////////

boolean ret_val = FALSE;
#define EVT_BACKAPP_1 (EVT_USER + 1)

ret_val = ISHELL_SendEvent(pme->pishell,0x33333333,EVT_BACKAPP_1,AVK_1,1);

ret_val = ISHELL_SendEvent(pme->pishell,0x33333333,EVT_BACKAPP_1,0,0);

ret_val = ISHELL_SendEvent(pme->pishell,0x33333333,EVT_USER,0,0);

It may returns false in many cases..few of them are -
1. eCode < EVT_APP_MESSAGE
2. destination App Class id is not proper/null
3. Apps cannot send keys to themselves or other apps
4. Apps cannot send pointer events to themselves or other apps

It may returns false in many cases..few of them are -
1. eCode < EVT_APP_MESSAGE
2. destination App Class id is not proper/null
3. Apps cannot send keys to themselves or other apps
4. Apps cannot send pointer events to themselves or other apps

hi adhudesh,
actually i am not able to start the background app, from the foreground app.
I tried using apis like "ishell_sendevent, ishell_startapplet" from foreground app.
when i use the following
{
ret_val = ISHELL_StartApplet(pme->pishell,0x33333333);
///i am getting success in ret_val and m getting EVT_APP_SUSPEND , but I m
//not getting the EVT_APP_RESUME.
}
///////////////////////////////////////
i am developing a chatting application. Here I am using two "web instances", one for user initiated requests (in foreground app ) and other is for fetching messages for the user ( fetching is done by background app )

hi adhudesh,
actually i am not able to start the background app, from the foreground app.
I tried using apis like "ishell_sendevent, ishell_startapplet" from foreground app.
when i use the following
{
ret_val = ISHELL_StartApplet(pme->pishell,0x33333333);
///i am getting success in ret_val and m getting EVT_APP_SUSPEND , but I m
//not getting the EVT_APP_RESUME.
}
///////////////////////////////////////
i am developing a chatting application. Here I am using two "web instances", one for user initiated requests (in foreground app ) and other is for fetching messages for the user ( fetching is done by background app )

nayak.prasant wrote:
i am developing a chatting application. Here I am using two "web instances", one for user initiated requests (in foreground app ) and other is for fetching messages for the user ( fetching is done by background app )
i dunt understand why are u using a bg applet to fetching messages as ur already using two web instances, i doubt if u need to do that, when i did this i used a single applet with two web instances, is there any reason for u to use bgappet?

nayak.prasant wrote:
i am developing a chatting application. Here I am using two "web instances", one for user initiated requests (in foreground app ) and other is for fetching messages for the user ( fetching is done by background app )
i dunt understand why are u using a bg applet to fetching messages as ur already using two web instances, i doubt if u need to do that, when i did this i used a single applet with two web instances, is there any reason for u to use bgappet?

mk.manju wrote:i dunt understand why are u using a bg applet to fetching messages as ur already using two web instances, i doubt if u need to do that, when i did this i used a single applet with two web instances, is there any reason for u to use bgappet?
hi manju,
i want to run two instances parallely. The background app will continuously fetch the message for me using web instance and send it to foreground . The user will send messages using web in the foreground app.
two web instance means , each instance in separate apps.

mk.manju wrote:i dunt understand why are u using a bg applet to fetching messages as ur already using two web instances, i doubt if u need to do that, when i did this i used a single applet with two web instances, is there any reason for u to use bgappet?
hi manju,
i want to run two instances parallely. The background app will continuously fetch the message for me using web instance and send it to foreground . The user will send messages using web in the foreground app.
two web instance means , each instance in separate apps.