Starting App Automatically & Shutting Down Device on App Close

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I've checked a couple posts with regards to this and it seems to me the
responses are much more difficult than necessary. Does anyone know a very
simple way to automatically start my app when the device is powered on &
automatically shut down the device whne the app is closed? Essentially, my
client has requested that the user only be able to use this app with the
handheld.
 
Search this group for "kiosk mode" or "full screen". That will give you
some ideas about disable the "Start" button and taskbar.

To automatically start, put the app in the "Start-up" folder.

Some devices have API's that allow soft or hard reset. You could use
this when the app is closed. This will mean that the user can never get
out of the app.

Not sure about programmatically powering off a device?
 
Send the VK_OFF key to power the device off, just as though the power button
was pressed...

Paul T.
 
So if I place my app in the start-up directory, disable the ability to use
the OS functions (tool & menu bars) & then call the VK_OFF key to power off
the device the user will never be able to perform anything but the options
available within my application? If this is true please post this solution
somewhere to make it very clear what needs to be done. This explanation is
100 times easier to follow than everything I found.

IE...Ensuring users can only access your custom app...Using SHFullScreen()
API call to create a full screen application & calling the VK_OFF when the
user deactivates or closes your application you can easily ensure that a user
can only work within your application.

Much easier. Thanks!!
 
It depends on what happens when you turn the device on. If it's really
*off*, then items in the startup folder are loaded, yes. If it's simply
hibernated, they may not be loaded. That's device-specific, but I suspect
that PPC devices will all hibernate when you turn them "off" (go into
suspend mode). Maybe that's not a problem for you, as your program should
still be running when you come out of hibernation, too, though. You'll have
to experiment...

Paul T.
 
Back
Top