Java tutorial
//package com.java2s; //License from project: Apache License import android.content.Intent; import java.util.ArrayList; public class Main { public static ArrayList<CharSequence> getCharSequenceArrayListExtra(Intent intent, String name) { if (!hasIntent(intent) || !hasExtra(intent, name)) return null; return intent.getCharSequenceArrayListExtra(name); } public static boolean hasIntent(Intent intent) { return intent != null; } public static boolean hasExtra(Intent intent, String key) { return intent.hasExtra(key); } }