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

Developer

Forums

Hi

If OEM is not allowing to start an application in background when phone is powered on what is the alternative to start an application in backgound???

 

Here what i observed is when phone is powered on completely then if we launch application it is going to background successfully but when phone is powered on ISHELL_StartBackgroundApplet is returning error code 6.

 

Regards

Srinag

Yes on some devices this may happen because of unavailablity of needed service that time. You may want to put som delay using timer and then call ISHELL_StartBackgroundApplet(). Hope this solve the problem.

Yes on some devices this may happen because of unavailablity of needed service that time. You may want to put som delay using timer and then call ISHELL_StartBackgroundApplet(). Hope this solve the problem.

we tried to set timer in NMASK_SHELL_INIT notification but it is not coming to timer call back and alarm is not setting it is returning EFAILED...
how to call an application once phone is powered up completely ?

we tried to set timer in NMASK_SHELL_INIT notification but it is not coming to timer call back and alarm is not setting it is returning EFAILED...
how to call an application once phone is powered up completely ?

Potential solution: App need to register for SHELL_INIT and call
ISHELL_StartAppletArgs() on power up. App will get EVT_APP_START, upon recieving EVT_APP_START do set a
timer to call ISHELL_StartBackgroundApplet() (may be 15 seconds later). This will effectively delay the spawning
of the background applet which should solve the power up issue of ISHELL_StartBackgroundApplet().

Potential solution: App need to register for SHELL_INIT and call
ISHELL_StartAppletArgs() on power up. App will get EVT_APP_START, upon recieving EVT_APP_START do set a
timer to call ISHELL_StartBackgroundApplet() (may be 15 seconds later). This will effectively delay the spawning
of the background applet which should solve the power up issue of ISHELL_StartBackgroundApplet().

i tried with the above functionality it is coming to Timer call back which is setted in EVT_APP_START and in that call back ISHELL_StartBackgroundApplet is returning error code 43

i tried with the above functionality it is coming to Timer call back which is setted in EVT_APP_START and in that call back ISHELL_StartBackgroundApplet is returning error code 43

Can you name device model?

Can you name device model?

I tested that scenario in simulator it is giving 43 error code for ISHELL_StartBackgroundApplet and it is triggering EVT_APP_SUSPEND..
Im using Samsung SCH_U460 Intensity 2

I tested that scenario in simulator it is giving 43 error code for ISHELL_StartBackgroundApplet and it is triggering EVT_APP_SUSPEND..
Im using Samsung SCH_U460 Intensity 2

Can you test scenario on Samsung SCH_U460 Intensity 2?

Can you test scenario on Samsung SCH_U460 Intensity 2?

Same response in intensity 2

Same response in intensity 2