
Signature
Peter Foot
Device Application Development MVP
www.peterfoot.net | www.inthehand.com
On Mar 22, 1:18 pm, "Peter Foot [MVP]" <feedb...@nospam-inthehand.com>
wrote:
> Place a shortcut to your application in the \Windows\Startup folder on
> Windows Mobile devices.
[quoted text clipped - 13 lines]
> > Thanks,
> > Hari
Thanks for the responses, Peter.
I think the way that you suggested would make my application run
every time the device boots. But what exactly i need is this. I'm
running my app. For some reason i hard reset my device without closing
the app. In that case, the app should store its state some where( on
a SD card probably. I'm even bothered about this. I should check if
the card exists and store the state information in it). Once the
device boots up my app should run automatically. So the app should not
run if it was not already running when the device is hard reset. How
do i acheive this. Please...... suggest!
Thanks,
Hari
Simon Hart - 22 Mar 2007 13:24 GMT
Well this is easy. Write some logic in your app in the main[] method that
checks the state read from the the storage card. If the app was previously
running, then continue to execute your app otherwise terminate. Do what Peter
suggested so this will be true even on a soft reset.
There are some other issues you may not of considered. If you hard reset
your device (not soft reset), you will have to reinstall your application as
eveything in RAM will be lost. You can achieve this by writing an autorun
application. Search for Autorun in the archives for more info.
Simon.
> On Mar 22, 1:18 pm, "Peter Foot [MVP]" <feedb...@nospam-inthehand.com>
> wrote:
[quoted text clipped - 30 lines]
> Thanks,
> Hari
Hari - 30 Mar 2007 06:38 GMT
> Well this is easy. Write some logic in your app in the main[] method that
> checks the state read from the the storage card. If the app was previously
[quoted text clipped - 46 lines]
> > Thanks,
> > Hari
Hi Simon,
Sorry for the delay. Thanks a lot for the idea. I need to do more
research on storing and retrieving on an SDcard.
-Hari