Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Apache License 

import android.content.Context;

import java.io.IOException;

public class Main {
    public static String[] getListFile(Context context, String assetPath) {
        try {
            String[] list = context.getAssets().list(assetPath);
            return list;
        } catch (IOException e) {
            e.printStackTrace();
        }
        return null;
    }
}