Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import android.content.res.AssetManager;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;

public class Main {
    public static final String CARDBOARD_CONFIG_FOLDER = "Cardboard";

    public static InputStream openAssetConfigFile(final AssetManager assetManager, final String filename)
            throws IOException {
        final String assetPath = new File(CARDBOARD_CONFIG_FOLDER, filename).getPath();
        return assetManager.open(assetPath);
    }
}