As the title says. I'd like for my application to start when the Windows Mobile device is turned on? I'm developing this app using the .NET Compact Framework 3.5 in C#. Thanks!
C# – How to make an application start when the device starts up in Windows Mobile
ccompact-frameworknetwindows-mobile
Related Topic
- C# – What are the correct version numbers for C#
- C# – Path.Combine for URLs
- C# – How to save application settings in a Windows Forms application
- C# – How to remedy “The breakpoint will not currently be hit. No symbols have been loaded for this document.” warning
- C# – Interop type cannot be embedded
- C# – Try-catch speeding up the code
- Scala: list.flatten: no implicit argument matching parameter type (Any) = > Iterable[Any] was found
- .net – the difference between .NET Core and .NET Standard Class Library project types
Best Answer
To get your app to start, first we need to define "On".
There is "On soft reset": Here there are a couple choices. By far the easiest is to just put a shrtcut in the \Windows\Startup folder.
There is "On resume from sleep." This is a bit more complicated because you have to run something before that happens. The simplest mechanism here is to register your app with CeRunAppAtEvent with the NOTIFICATION_EVENT_WAKEUP event. You'll have to P/Invoke it, as there is no built-in managed method for it.
Edit: There is also "After hard reset". Some OEMs provide a mechanism to run an app or do some form of logic from a cold boot (Symbol for example). You'll have to check with the device OEM's docs for how this would work.