In the project, the customer proposes that the application automatically runs after the terminal device is started. If you need it, we have to do it. Here we will summarize my implementation methods:
1. WM
In Windows Mobile systems, this requirement is quite easily met. Write an lnk file pointing to your application. Then, put the lnk file in the Windows/Startup Folder. In this way, your application will automatically run after the device is turned on. Lnk file content example:
1 58 # "\ Program Files \ MIAP \ MS.exe"
Ii. WinCE (Coolpad7360/Coolpad N68)
Let's focus on how to implement it in WinCE (Note: The terminal device is kepan's 7360 ). There must be a reason for this, because it took a lot of time. Originally, we wanted to follow the implementation method in the WM system. However, cooute had a special feature that made it impossible to implement it. This feature means that after the device is restarted, all folders (except UserData and SD card) will be forcibly restored. That is to say, if you put the lnk file in the Windows/Startup Folder in WM mode, the file will be gone as soon as the device restarts, and of course the application cannot be started. Later, I tried other methods, such as modifying the registry.
Finally, the problem can be solved only after you contact the Coolpad technical support. The solution is to have a start. ini file in the UserData folder of the device. After the file is copied, add the line below:
1 APP \ SD \ MIAP \ AutoRunDemo. EXE
Note: Do not modify or delete other content. In this way, your application runs automatically after the terminal device is started. However, if you are developing in Coolpad and your application needs to access network resources, it is recommended that you do not enable the function automatically when the system is started. Because it takes a long time to start itself, it runs many system programs. If it is added, the system will be slower, and even the system will not start normally.