如何制作Android安装程序? [避免大量下载]
我认为问题从标题中很清楚,
- 我有一个Android程序
- ,它需要从给定路径读取一些数据,比如SDCARD/myAppData/data,这是一个大文件,
- 我认为,我应该允许用户下载这个大文件,同时安装应用程序。 或者, 比如说,他们可以将文件下载到PC上,然后将其放入SDCARD中,然后应用程序将从SDCARD中读取。 (为了节省移动设备的带宽)
我想为用户提供一个选择 SDCARD 或系统内存路径的机会..然后安装程序应将数据安装到所选路径中...并正常工作..。
有什么想法吗?请解释一下...
I think the question is clear from the title,
- I have an Android program
- It needs to read some data from a given path, say SDCARD/myAppData/data which is a large file
- I think, I should allow users to download this large file while installing the App.
OR,
Say, they can download the file on PC, and then put it in SDCARD, and then the app will read from the SDCARD. (To save bandwidth for the mobile)
I want to provide user a chance to choose a path for SDCARD or system memory..then the installer should install the data into the chosen path... and work.. normally.
Any idea? Please explain...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
关于数字“2”...它读取还是写入数据?
不管怎样,我要做的是根据标志(它可以位于 SharedPreference 或 SQLite 上)显示“选择你的路径”屏幕。默认情况下,该标志将打开,并且仅在选择路径后才会关闭(只有这样您才会遵循“真实”应用程序流程)。
这是我能想到的最接近 Android 的安装程序。
About number '2'... It READS or it WRITES data?
Anyway, what I'd do is displaying a "choose your path" screen depending on a flag (it can be on a SharedPreference or SQLite). The flag will be turned on by default, and will only turn off once the path has been chosen (only then you'll follow the "real" application flow).
This is the closest to an installer I can think about on Android.