Java tutorial
//package com.java2s; import java.io.IOException; import java.io.InputStream; import android.content.res.Resources; public class Main { public static InputStream readSampleJson(Resources resources) { try { return resources.getAssets().open("sample.json"); } catch (IOException e) { e.printStackTrace(); } return null; } }