Android的,不知道我是否应该存储到内部存储器或外部存储 [英] Android, Not sure if I should store to the internal storage or external storage

查看:207
本文介绍了Android的,不知道我是否应该存储到内部存储器或外部存储的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序在那里在市场上已经应用程序是不是一个游戏只是一个内容丰富的应用程序有很多的图片和统计信息,我接到有人指出该应用程序是20MB的大小被存储在评论内部存储这是不公平的,而且它的一些应该被存储在SD卡上。

I have an app out there on the market already The app is not a game just an informative app with lots of pictures and stats and I received a comment from someone stating that the size of the app being 20Mb is being stored on the "internal storage which isn't fair and that some of it should be stored on the SD card."

现在我仍然在试图了解Android编码的一切,但,这是一个大问题,所以我应该所有这些图像移动到像SD卡外部存储?为20MB的内部存储过多或我应该在什么兆数出来,知道什么时候来存储到外部?我看着存储文档 rel=\"nofollow\">,并指出用户如果用户修改可以修改,当他们启用USB大容量存储在计算机上的文件传输,所以这会造成风险,我的应用程序破坏/删除/改变任何东西?

Now I am still trying to learn everything about android coding but is this a big deal so that I should move all those images to the external storage like the SD card? Is 20Mb to the internal storage too much or what number in Mb should I look out for to know when to store to an external? I looked at the storage documentation here and it states that the user can modify when they enable USB mass storage to transfer files on a computer, so does this pose a risk to my app breaking if the user modifies/removes/changes anything?

推荐答案

您正在寻找的的installLocation 。只要改变一件事的清单,并让用户选择要安装的APK在哪里。

You are looking for installLocation. Just change one thing in the manifest and let users choose where the APK is installed.

注意:默认情况下,应用程序将在内部存储安装,不能在外部存储,除非你定义了这个属性值可以是自动或preferExternal安装

Note: By default, your application will be installed on the internal storage and cannot be installed on the external storage unless you define this attribute to be either "auto" or "preferExternal".

这篇关于Android的,不知道我是否应该存储到内部存储器或外部存储的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆