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.IOException;

public class Main {
    public static final boolean assetsIsDirectory(AssetManager assetManager, String path) {
        try {
            if (assetManager.list(path) != null && assetManager.list(path).length > 0) {
                return true;
            }
        } catch (IOException e) {
            // nothing
        }
        return false;
    }
}