Android Restart code from starting onCreate()

Application ထဲက Button တစ္ခုကေန App ကုိ Restart ျပန္လုပ္ခ်င္တယ္ ဆုိရင္ေတာ့ ေအာက္ပါ Code ကုိ သုံးပါတယ္ ....





Intent i = getBaseContext().getPackageManager()
.getLaunchIntentForPackage( getBaseContext().getPackageName() );
i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(i);
 Download Code Attachment