我想在 android 平板电脑中创建一个文件并向其中写入一些数据。 (只有几千字节)。
下面的链接有我尝试过的代码,但我没有看到在 /data 目录中创建的文件。有人说我必须root我的设备才能看到这些文件。
问题:我想使用内部存储创建并写入文件,而无需 root 设备。有可能吗?
我发布这个问题是因为我找不到
找不到我在 Android 平板电脑上创建的文件
I would like to create a file in android tablet and write some data to it. (only a few kilobytes).
The link below has the code i tried, but i dont see the file that got created in /data directory. some one said i have to root my device for seeing those files.
Question: I want to create and write to a file using the internal storage without rooting the device . Is it possible ?
I'm posting this question as i couldn't find answers for
Cant find the file i created on android tablet
发布评论
评论(1)
使用 openFileOutput() 创建文件:
通常会在内部存储中创建一个只能由您的应用程序访问的文件。
Use openFileOutput() to create a file:
That would normally create a file within internal storage that would be only accessible by your app.