Here you can find the source of getAction(Intent intent)
public static String getAction(Intent intent)
//package com.java2s; import android.content.Intent; public class Main { public static String getAction(Intent intent) { if (intent != null) { return intent.getAction(); }/*w w w. j av a2 s.co m*/ return null; } }