Here you can find the source of openXMLFile(String name, Context ctx)
private static InputStream openXMLFile(String name, Context ctx) throws IOException
//package com.java2s; //License from project: Apache License import android.content.Context; import android.content.res.AssetManager; import java.io.IOException; import java.io.InputStream; public class Main { private static InputStream openXMLFile(String name, Context ctx) throws IOException { AssetManager assets = ctx.getAssets(); InputStream open = assets.open(name); return open; }//from ww w. jav a 2 s .co m }