Java tutorial
//package com.java2s; import android.content.Context; import java.io.IOException; import java.io.InputStream; public class Main { private static InputStream openEclipseAssetFile(Context context, String fileName) { InputStream is = null; try { is = context.getAssets().open(fileName); } catch (IOException e) { e.printStackTrace(); } return is; } }