0
使用此代码它应返回资产列表。但它崩溃,着有“未找到源,编辑源查找路径...”在调试器的消息时,我调用列表方法:Android资产 - 无法访问
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
AssetManager assets = this.getAssets();
try {
//error happens on this next line
String[] l = assets.list(null);
} catch (IOException e) {
}
}