应用程序中创建文件夹中安装在机器人 [英] Create folder during app install in android

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

问题描述

我努力使学习Android开发简单的记事本应用程序。因此,存储创建的文本文件,我可以创建一个文件夹到我的应用程序文件夹中,而应用程序获得安装,而不是创建文件夹中使用文件类,然后在code将文件添加到它的Andr​​oid?

I am trying to make simple notepad application for learning android development. So, to store the created text files can i create a folder into my application folder while application getting installed on android instead of creating folder using File class and then adding files to it in the code ?

推荐答案

这是不可能实现的,当你的应用程序并没有真正有任何控制或权限,直到它的安装。一旦应用程序被安装,你可以创建文件夹非常情况下的应用程序启动。

It's impossible to achieve that as your application doesn't really have any control or permissions untill its installed. Once the app is installed you can create the folder very instance the app starts.

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

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