Android Assets - Unable to access -
Using this code, it should return a list of assets, but when I call the list method, the "source Not found, edit source search parse ... "with the message it crashes:
@override Create a bundle savedinstancestate {public at zero} {super.onCreate (savedInstanceState) ; SetContentView (R.layout.main); AssetManager property = this.getAssets (); Try {// error occurs on the next line of the string [] l = assets.list (null); } Hold it (IOException E) {}}
Use it instead: < / P>
string [] arr = getAssets (). List ("");
Comments
Post a Comment