Add the android: installLocation attribute to the Manifest tag of the Manifest. xml file.
Android: installLocation
This attribute sets the default installation location. There are three valid values: auto, internalOnly, and preferExternal.
Corresponding table
Auto indicates automatic. The installation location is determined by the system.
InternalOnly is installed in mobile phone memory
PreferExternal is installed in External Storage
Constant
Value |
Description |
Auto
0 |
Let the system decide install location |
InternalOnly
1 |
Explicitly request to be installed on internal phone storage only |
PreferExternal
2 |
Perfer to be installed on SD card, There is no guarantee that the system will honor this request. The application might end up being installed on internal storage if external media is unavailable or too full |
<manifest xmlns:android=====>
The program to be started must be installed in the memory of the mobile phone. The order of broadcast messages is related here.
The boot broadcasting message BOOT_COMPLETE is earlier than that of SD. If you install the program on the SD card, you cannot receive the boot broadcasting.
This article is from Ray-Ray's blog
Document address http://www.cnblogs.com/rayray/p/3185811.html
Thank you for your recommendation and favorites.
Your support! Our motivation!