[英]Display files and folders name from res/raw folder
Is there any way to get the files and folders name from res/raw folder. 有什么方法可以从res / raw文件夹中获取文件和文件夹名称。 I want to display the names in a ListView .
我想在ListView中显示名称。 After that Once I click the one of the item in a list, content of the file should come up.
之后,一旦我单击列表中的一项,文件内容就会出现。
You want to use the asset manager: 您要使用资产管理器:
these links might be useful: 这些链接可能有用:
http://developer.android.com/reference/android/content/res/AssetManager.html http://developer.android.com/reference/android/content/res/AssetManager.html
http://www.technotalkative.com/android-read-file-from-assets/ http://www.technotalkative.com/android-read-file-from-assets/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.