Java tutorial
//package com.java2s; import android.annotation.TargetApi; import android.app.Activity; import android.os.Build; public class Main { @TargetApi(11) public static void recreate(Activity activity) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) { activity.recreate(); } } }