Here you can find the source of to(Context context, Class> cls, Bundle data)
public static final void to(Context context, Class<?> cls, Bundle data)
//package com.java2s; import android.content.Context; import android.content.Intent; import android.os.Bundle; public class Main { public static final void to(Context context, Class<?> cls) { to(context, cls, null);/*w w w . j a v a2 s . c o m*/ } public static final void to(Context context, Class<?> cls, Bundle data) { Intent intent = new Intent(context, cls); if (data != null) { intent.putExtras(data); } context.startActivity(intent); } }