将程序装到sdcard上
来源:互联网 发布:听音写谱软件 编辑:程序博客网 时间:2024/06/05 23:56
在androidmainfest.xml中加入属性android:installLocation,它的值可以有3个选项
internalOnly
: Install the application on internal storage only. This will result in storage errors if the device runs low on internal storage.(非sdcard)preferExternal
: The android system tries to install the application on external storage. If that is full, the application is installed on internal storage.(在sdcard未满的情况下装在sdcard)auto
: Let the Android system decide the best install location for the application. The default system policy is to install the application on internal storage first. If the system is running low on storage, the application is then installed on external storage.(自主选择,内部存储有限,内部存储低的时候使用外部存储)
这个属性的api level为8,2.2的手机才可以将程序装入sdcard,这样可以尽可能的多装程序,此外,只有再程序的sdk2.2的情况下才可以编译通过,找了半天没找到代码中的对应的java code,看来我的2.1一定要升级了。
参考: http://devicefms.ro/installmove-to-sd-card-on-froyo.html
- 将程序装到sdcard上
- android 将Assets中的文件拷贝到sdcard上
- android 将Assets中的文件拷贝到sdcard上
- Android实现将Drawable资源ID存储到Sdcard上
- 将bitmap保存到sdcard
- Android:将电脑上的文件传输到模拟器的sdcard上
- 将Win32程序移植到Linux上
- 将Silverlight程序发布到服务器上
- Android--将数据保存到SDCard中
- 将文件写入到sdcard 并读取
- Android将数据存放到SDCard
- Android--将数据保存到SDCard中
- 将文件保存到sdCard中去
- Android数据输出到sdcard上
- android开发如何用file读出sdcard中含图片的文件夹,并将文件夹显示到listview上????
- 将QT程序移植到arm2440开发板上
- [android] 将Java程序移植到android上
- 将FrameBuffer测试程序移植到板子上
- Hadoop安装及初探
- iphone 的文件目录和简单介绍
- Java深度历险(一)——Java字节代码的操纵
- Android APN开发流程分析 、设置问题
- 自己的勉励
- 将程序装到sdcard上
- 显示Linq to sql的sql语句
- 名老中医经验继承研究现状及“中医处方智能分析系统”应用前景
- Java深度历险(二)——Java类的加载、链接和初始化
- componentone生成excel示例
- 华为十大内耗问题浅析
- 我的Cric2011年
- Ext.Net 1.x_Ext.Net.Combox联动
- 自定义输出字段ALV实例