Filenotfound-Ausnahme von assets Ordner android?

Beim Lesen aus Datei unter Assets/sb/zB/einfach.html/Es gibt filenotfound
Ausnahme.

11-01 18:30:13.562: WARN/System.err(912): java.io.FileNotFoundException: file:///android_asset/sb/example/simple.html

Code-Snippet ist

try {
    final AssetManager assetMgr = ctx.getResources().getAssets(); 
    is = assetMgr.open(path, AssetManager.ACCESS_STREAMING);
    //is = getAssets().open(file.getAbsolutePath());
} catch (IOException e1) {
    //TODO Auto-generated catch block
    e1.printStackTrace();
}

InformationsquelleAutor ADIT | 2010-11-01

Schreibe einen Kommentar