Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

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