Java tutorial
//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); } }