我试图找回从原始文件夹动态代码的文件,如下没有得到包名
try{
DataInputStream dataIO= new DataInputStream(getResources().getIdentifier("raw/"+chapter, null ,<what to write>);
String strLine= null;
while((strLine = dataIO.readLine())!=null){
buffer.append(strLine);
buffer.append("\n");
}
dataIO.close();
}catch(Exception e){}
如果我键入“写什么”部分直接在包的名称,它显示错误。请给出一些想法。
什么错误?显示堆栈跟踪 –
我的意思是语法错误。我的软件包名称是com.expandableList。如果我在包区域中写入“com.expandableList”。它显示红色下划线。 – test1990bdvt