Asset asset = AssetManager.getAssetManager().getAsset(uri, factory);
if (asset == null || AssetManager.getAssetManager().waitForAsset(asset) == false) {
throw new IOException("No such asset " + url);
}
return new AssetInputStream(asset);
} catch (URISyntaxException excp) {
IOException ioe = new IOException("Error in URI syntax");
ioe.initCause(excp);
throw ioe;
}