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