Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import android.app.Activity;

import android.os.Bundle;

public class Main {
    public static final String SINGLE_FRAGMENT_ACTIVITY_START_ME_PARAM = "SINGLE_FRAGMENT_ACTIVITY_START_ME_PARAM";

    static boolean isSingleFragmentIntent(Activity activity) {
        Bundle param = activity.getIntent().getBundleExtra(SINGLE_FRAGMENT_ACTIVITY_START_ME_PARAM);
        return param != null;
    }
}