Android Asset Load openXMLFile(String name, Context ctx)

Here you can find the source of openXMLFile(String name, Context ctx)

Description

open XML File

License

Apache License

Declaration

private static InputStream openXMLFile(String name, Context ctx)
            throws IOException 

Method Source Code

//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
}

Related

  1. loadAsset(Context context, String asset)
  2. loadJSONAsset(Context context, String asset)