在安装Android应用程序时创建文件 [英] creating files at time of android application installation

查看:137
本文介绍了在安装Android应用程序时创建文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
一个VC ++程序员想要在android应用程序上工作.倾向于android中的新手.
< 0> /< 0>
-------------------------------------------------- ---------
我要在Android设备上安装文件android应用程序时创建配置文件..
喜欢,
有配置文件说,
我的Android设备存储(SD卡)中的ListOfEntry.csv.
而且每次我打开android application.User界面应该取决于ListOfEntry.csv文件中的条目.

大问题:-
如何获取配置文件..


//////////////////////////////
因此,请提供任何链接,代码块给我有关的任何参考资料,
在安装Android应用程序时创建文件?"

谢谢

Hi All,
A VC++ programmer want work on android application.tends to newbies in android.
<0> / <0>
-----------------------------------------------------------
I want create config file when file android application install on android device..
Like,
there is config file say ,
ListOfEntry.csv in my android Device storage(SD Card).
And every time i open my android application.User interface should be depends on entries in ListOfEntry.csv file.

Big problem:-
How to get Config file..


////////////////////////////////
So please provide me any link,block of code that gives me any reference about,
"creating files at time of android application installation??"

Thanks

推荐答案

您不能.出于安全原因.
但是,您可以在首次启动应用程序时运行某个进程.
最简单的方法是读取首选项并在未设置首选项值时触发该机制.
You can''t. Due to security reasons.

You can run a certain process while first launch of the application though.
Simplest would be by reading a preference and triggering that mechanism when preference value is not set.


这篇关于在安装Android应用程序时创建文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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