Hi,
I have been using the API CeRunAppAtEvent () to launch my application
when the device wakes up. This works fine for most cases. But, recently I
noticed a strange problem. On a data enabled SIM (GPRS) when I browse, that
is, when I am retrieving data, when I switch off the device and again switch
it on (wakeup) , the application is not launched!! When I investigated
further, I noticed that after the page has loaded, if I switch off and then
wakeup the device, my application is launched!!
Can anybody shed some light on this? Is there any other alternative?

Re: Problem with CeRunAppAtEvent by ctacke/>

ctacke/>
Mon Mar 03 08:50:48 CST 2008

My bet is that when you're receiving data and turn it "off" it's simply
turning off the backlight and staying in the run state. CeRunAppAtEvent
fires off of the power state change, whcih doesn't occur when simply turning
the back,light back on.


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com


"Vikky" <Vikky@discussions.microsoft.com> wrote in message
news:B6793346-0CE1-4A30-A9C8-1563AB6EEBCC@microsoft.com...
> Hi,
> I have been using the API CeRunAppAtEvent () to launch my application
> when the device wakes up. This works fine for most cases. But, recently I
> noticed a strange problem. On a data enabled SIM (GPRS) when I browse,
> that
> is, when I am retrieving data, when I switch off the device and again
> switch
> it on (wakeup) , the application is not launched!! When I investigated
> further, I noticed that after the page has loaded, if I switch off and
> then
> wakeup the device, my application is launched!!
> Can anybody shed some light on this? Is there any other alternative?



Re: Problem with CeRunAppAtEvent by James

James
Mon Mar 03 10:21:55 CST 2008

Seems to me I read something about Activate and Deactivate events we should
use on mobile apps. Apps should save settings on Deactivate and return as
close as possible the state they were in when Activated... do you have a log
you can write into?


-James


"<ctacke/>" <ctacke[at]opennetcf[dot]com> wrote in message
news:OUyKz3TfIHA.4712@TK2MSFTNGP04.phx.gbl...
> My bet is that when you're receiving data and turn it "off" it's simply
> turning off the backlight and staying in the run state. CeRunAppAtEvent
> fires off of the power state change, whcih doesn't occur when simply
> turning the back,light back on.
>
>
> --
>
> Chris Tacke, Embedded MVP
> OpenNETCF Consulting
> Giving back to the embedded community
> http://community.OpenNETCF.com
>
>
> "Vikky" <Vikky@discussions.microsoft.com> wrote in message
> news:B6793346-0CE1-4A30-A9C8-1563AB6EEBCC@microsoft.com...
>> Hi,
>> I have been using the API CeRunAppAtEvent () to launch my application
>> when the device wakes up. This works fine for most cases. But, recently I
>> noticed a strange problem. On a data enabled SIM (GPRS) when I browse,
>> that
>> is, when I am retrieving data, when I switch off the device and again
>> switch
>> it on (wakeup) , the application is not launched!! When I investigated
>> further, I noticed that after the page has loaded, if I switch off and
>> then
>> wakeup the device, my application is launched!!
>> Can anybody shed some light on this? Is there any other alternative?
>
>