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;

public class Main {
    private static final String DIR_BOARDS_ASSETS = "Boards";

    public static String[] getListBoardFromAssets(Context context) {
        String[] listBoardsName = null;
        try {
            listBoardsName = context.getAssets().list(DIR_BOARDS_ASSETS);
        } catch (IOException ex) {
            ex.printStackTrace();
        }

        return listBoardsName;
    }
}