Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

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

public class Main {
    public static final String EXTRA_PENDING_STATE = "PENDING_STATE";
    public static final int PENDING_STATE_NONE = -1;

    public static void resetPendingState(Activity activity) {
        if (activity.getIntent().getIntExtra(EXTRA_PENDING_STATE, PENDING_STATE_NONE) != PENDING_STATE_NONE) {
            activity.getIntent().putExtra(EXTRA_PENDING_STATE, PENDING_STATE_NONE);
        }
    }
}