The terminal program runs automatically after it is started.

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.