Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

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