我想知道当我们把应用程序放到 google play 时哪个好
- 拥有 android:installLocation="preferExternal"或
- 没有提及任何地点
在下面的语句中,versionCode 和 versionName 有什么区别
android:versionCode="1"
android:versionName="1.0"
提前致谢
最佳答案
如果声明“preferExternal”,则表示您请求将您的应用程序安装在外部存储上,但系统不保证您的应用程序一定会安装在外部存储上。如果外部存储已满,系统会将其安装到内部存储上。用户还可以在两个位置之间移动您的应用程序。
如果您声明“auto”,则表明您的应用程序可能安装在外部存储上,但您没有安装位置偏好。系统将根据多种因素决定将您的应用程序安装在何处。用户还可以在两个位置之间移动您的应用程序。
android:installLocation="auto"
android:versionCode="5"
android:versionName="0.5.02"
关于安卓安装位置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17683039/