Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Open Source License 

import android.net.Uri;

public class Main {
    public static final String BROWSE = "browse";
    private static final int URI_INDEX_OPTION = 0;

    private static boolean isBrowseUri(Uri uri) {
        if (uri.getPathSegments().isEmpty())
            return false;

        String option = uri.getPathSegments().get(URI_INDEX_OPTION);
        return BROWSE.equals(option);
    }
}