Android的原始文件夹 - 创建和参考 [英] Android Raw folders - creation and reference
问题描述
我试着去创建一个原始文件夹,我的Android应用程序将举行不同的媒体文件,以备后用。但我不能似乎-能够引用创建的原始文件夹在我的.java类。
Im trying to create a raw folder for my android app which will hold different media files for use later. But I cant seem to be-able to reference the created raw folder in my .java classes.
例如:R。? - >这将返回所有可能的资源,我可以像使用基本的绘制,布局和值的文件夹列表。然而,它不会显示原始文件夹。
For example: R.? -> This returns a list of all possible resources I can use like the basic drawable, layout and values folder. However it won't display the raw folder.
它是正确的说,原料是作为一个普通的文件夹,并没有别的创造?或者它有以便在AndroidManifest.xml文件中声明被认为是一种资源?
Is it correct to say that raw is created as a general folder and nothing else? Or does it have to be declared in the AndroidManifest.xml file in order to be recognised as a resource?
干杯
推荐答案
在生文件夹必须我在 RES 文件夹内,否则将无法正常工作。
The raw folder must me inside the res folder, otherwise it won't work.
这篇关于Android的原始文件夹 - 创建和参考的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!