Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: LGPL 

import android.app.Activity;

import android.content.Intent;
import android.text.TextUtils;

public class Main {
    static boolean checkForIntentWithAction(Activity activity, String action) {
        Intent intent = activity.getIntent();
        if (intent == null) {
            return false;
        }
        return TextUtils.equals(intent.getAction(), action);
    }
}