Android Assets - Unable to access
Posted
by BahaiResearch.com
on Stack Overflow
See other posts from Stack Overflow
or by BahaiResearch.com
Published on 2010-06-14T00:08:27Z
Indexed on
2010/06/14
0:12 UTC
Read the original article
Hit count: 213
Using this code it should return a list of the assets. But it crashes, with a "Source not found, Edit Source Lookup Path..." message in the debugger when I call the list method:
@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) {
}
}
© Stack Overflow or respective owner