Java tutorial
//package com.java2s; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; public class Main { private static PendingIntent makeMoodIntent(Context context, Class class1) { Intent intent = new Intent(context, class1); intent.addFlags(0x400000); intent.addFlags(0x4000000); return PendingIntent.getActivity(context, 1, intent, 0x10000000); } }