Java tutorial
//package com.java2s; import android.content.Intent; public class Main { public static Intent createButtonIntent(String buttonText, String intentActionName) { Intent intent = new Intent(intentActionName); intent.putExtra("button_text", buttonText); return intent; } }