assets 在包中是没有path的
来源:互联网 发布:h5游戏渠道数据分享 编辑:程序博客网 时间:2024/06/02 02:35
ZZZZZhttp://stackoverflow.com/questions/6678951/how-do-i-get-the-absolute-path-of-assets-directory-in-android
There is no "path of the assets directory" on the device.
I just want the path of the assets directory which I want to use as a variable throughout my app.
There is no "path of the assets directory" on the device.
I know we can refer a file in the "assets" directory using AssetManager, but I don't want to refer a file as of now, I just want the path of the assets directory.
There is no "path of the assets directory" on the device.
Can anybody help me with this?
No, because there is no "path of the assets directory" on the device. Please use AssetManager
to retrieve an InputStream
to your assets as needed.
Since android has a file size restriction on files inside raw directory, I will be placing my files in assets directory, and during runtime, I would be retrieving them as need
The "restriction" is the same for assets, AFAIK. The usual way to circumvent the "restriction" is to give the file an extension that Android's build tools will not try to compress (.mp3
works IIRC).
- assets 在包中是没有path的
- 在assets中的文件
- 从SVN导出工程,在Eclipse中没有build path或build path 灰色不可编辑
- 在Android Studio中如何建立app的assets文件夹
- 在Assets store中下载的资源路径位置
- 在Android Studio中如何建立app的assets文件夹
- Path在android的使用
- iOS9,10没有问题,iOS8上面一登录就崩溃,原因Assets的问题
- 备忘:crontab没有PATH
- 在删除文件夹的时候,如果直接使用删除文件夹的命令Directory.Delete(path);而没有先删除子目录下的文件便会报错
- android assets的使用
- Assets
- Assets
- 项目没有build path问题
- android的assets下的数据,可否在已经打好包的情况下修改
- android项目中如何获取assets下面的文件在SD卡上面的保存路径
- 得到保存在assets目录下的txt文件的内容
- 关于在Android Studio中使用Assets目录下的资源的问题
- python学习----list和tuple的区别
- J2EE学习笔记之常用JSP动作元素
- widow环境下的资源管理器浏览文件(c#)
- Java中的线程(3)
- bat 动态修改路由脚本
- assets 在包中是没有path的
- kindeditor 修改上传图片的路径的方法
- OC学习7——@class、Category分类、protocol协议
- android ListView隐藏FooterView(headerView)
- 第2次实验——算法基本功 与 综合思考
- 使用Django进行web开发(1) ----环境的搭建与部署
- JAVA的Random类(转)
- 我的c#之路(8.异常处理语句)
- list中的linkedlist的用法