Java tutorial
//package com.java2s; import android.content.Intent; import android.support.v4.app.Fragment; public class Main { public static void frag2Act(Fragment fragment, Class<?> cls) { if (fragment == null || cls == null) { throw new NullPointerException("fragment or cls null"); } Intent intent = new Intent(fragment.getActivity(), cls); fragment.startActivity(intent); } }