简体   繁体   English

如何将sdcard中的.txt文件复制到我的应用程序res / raw文件夹中

[英]How to copy a .txt file from sdcard to my app res/raw folder

how to copy my text file in my app at (res/raw) folder from sdcard. 如何从sdcard复制我的应用程序中(res / raw)文件夹中的文本文件。 thing about is not at stackoverflaw about copy a file from sdcard to my app. 关于事情不是在stackoverflaw关于从sdcard复制文件到我的应用程序。 i am not getting anything else from Google so please help me a perfect answer. 我没有从Google得到任何其他信息,因此请帮我一个完美的答案。

May this help you: 可以帮助您:

Android .apk file is Read Only. Android .apk file只读。
So the directory structure which are in that apk file follows the same.. 因此,该apk文件中的目录结构遵循相同的..
No one can write files or make changes at runtime as Assets folder are not Writable... 没有人可以在运行时写文件或进行更改,因为Assets文件夹不可写...

That's why You can't make any changes in /asset folder at runtime... 这就是为什么您无法在运行时在/asset folder中进行任何更改的原因...

We can only read file from it (means we can copy files which are available in asset to any internal storage or /sdcard but reverse of it is not possible). 我们只能从中读取文件(这意味着我们可以将asset中可用的文件复制到any internal storage or /sdcard但无法反向操作)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM