Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Compact Framework / March 2007

Tip: Looking for answers? Try searching our database.

running app automatically at the device bootup?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Hari - 22 Mar 2007 06:11 GMT
Hi,

   How do i make my application run at the device startup? Is there a
way to place my app in the auto start-up services. How can i do this?
Plz help.

Thanks,
Hari
Peter Foot [MVP] - 22 Mar 2007 09:18 GMT
Place a shortcut to your application in the \Windows\Startup folder on
Windows Mobile devices.

Peter

Signature

Peter Foot
Device Application Development MVP
www.peterfoot.net | www.inthehand.com

> Hi,
>
[quoted text clipped - 4 lines]
> Thanks,
> Hari
Hari - 22 Mar 2007 12:14 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.