04-09-2013 08:31 AM
i am developing an application and i have two basic requirements for my application. The requirement is as below :
1. " when blackberry phone is restart, my application should auto run in background mode and after that if user click
on application icon or select icon in switchapplication then my application should come in foreground."
2 ." when user close my application i keep my application running in background and when again user press my application icon my application should come in foreground.
For 1, i am selecting the autostartup option in eclipse so it keep my application running. but i want my run in background and when user press application icon it should immediately come in foreground.
for2, i am adding single line code in onClose() method
can any one help me or provide the sample code so i can complete my basic 2 requirements.
04-09-2013 08:39 AM
04-09-2013 09:15 AM
and for 1, just include a requestbackground() in the startup and the user should not see your application start up.
But be aware of this: