that's what seemed to me here .
Just use it or add it to the static class helper and just call it from anywher in your project.
@SuppressLint("NewApi") public static final void recreateActivityCompat(final Activity a) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) { a.recreate(); } else { final Intent intent = a.getIntent(); intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION); a.finish(); a.overridePendingTransition(0, 0); a.startActivity(intent); a.overridePendingTransition(0, 0); } }
Williem Jun 12 '15 at 20:05 2015-06-12 20:05
source share