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.app.Activity;

public class Main {
    private static final String ARG_INTENT_NOT_ROOT = "notRoot";

    public static final boolean checkActivityIsRoot(Activity act) {
        return !(act.getIntent().hasExtra(ARG_INTENT_NOT_ROOT));
    }
}