Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    public static final String ASSET_PREFIX = "file:///android_asset/";
    public static final String FILE_PREFIX = "file://";

    public static boolean isFile(String filePath) {
        return filePath.startsWith(FILE_PREFIX) && !filePath.startsWith(ASSET_PREFIX);
    }
}