Java tutorial
//package com.java2s; import java.io.IOException; import java.io.InputStream; import android.content.Context; public class Main { public static InputStream getAssetInputStream(String assetFileName, Context context) throws IOException { InputStream inputStream = context.getAssets().open(assetFileName); return inputStream; } }