android 的res/raw可以写入文件不??
4个回答
展开全部
官方说:不行!
“Tip: If you want to save a static file in your application at
compile time, save the file in your project res/raw/ directory. You can open it with
openRawResource(), passing the R.raw.<filename> resource ID. This method returns an InputStream
that you can use to read the file (but you cannot write to the original file).”
参考地址:http://developer.android.com/guide/topics/data/data-storage.html#filesInternal
“Tip: If you want to save a static file in your application at
compile time, save the file in your project res/raw/ directory. You can open it with
openRawResource(), passing the R.raw.<filename> resource ID. This method returns an InputStream
that you can use to read the file (but you cannot write to the original file).”
参考地址:http://developer.android.com/guide/topics/data/data-storage.html#filesInternal
雷龙
2026-04-09 广告
CS创世 SD NAND的SD协议原生兼容性显著简化嵌入式设计:1. 直接对接标准SD控制器,省去额外协议转换芯片,降低硬件复杂度;2. 支持SPI/SD双模式(如我们的xxx系列),开发阶段用SPI调试,量产切换SD模式提升速度;3. 兼...
点击进入详情页
本回答由雷龙提供
展开全部
可以的 一般默认默认用到的外部文件全部放在RAW文件夹下
更多追问追答
追问
大哥不是存放是代码写入文件!!
追答
可以放到下面 放到下面可以直接用ID取
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
为什么要放到raw 呢?
放到xml 或assets 都行啊
放到xml 或assets 都行啊
追问
写入文件
追答
2楼的正解
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
更多回答(2)
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询