@@ -0,0 +1,1735 @@
+package au.com.pactera.pacterapulse.helper;%0A%0Aimport android.app.AlarmManager;%0Aimport android.app.PendingIntent;%0Aimport android.content.Context;%0Aimport android.content.Intent;%0A%0Aimport au.com.pactera.pacterapulse.core.SinglePaneActivity;%0Aimport au.com.pactera.pacterapulse.fragment.IntroductionFragment;%0A%0A/**%0A * Utils class%0A *%0A * Created by kai on 26/05/15.%0A */%0Apublic class Utils %7B%0A%0A    /**%0A     * Quit the process to make sure all activities and background threads have been destroyed and%0A     * launch the introduction screen.%0A     *%0A     * @return true if success.%0A     */%0A    public static boolean restartApp(Context context)%0A    %7B%0A        try%0A        %7B%0A            //create the intent with the default start activity for your application%0A            Intent mStartActivity = new Intent(context, SinglePaneActivity.class)%0A                    .setAction(IntroductionFragment.class.getName());%0A%0A            mStartActivity.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);%0A            //create a pending intent so the application is restarted after System.exit(0) was called.%0A            // We use an AlarmManager to call this intent in 100ms%0A            int mPendingIntentId = 223344;%0A            PendingIntent mPendingIntent = PendingIntent%0A                    .getActivity(context, mPendingIntentId, mStartActivity,%0A                            PendingIntent.FLAG_CANCEL_CURRENT);%0A            AlarmManager mgr = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);%0A            mgr.set(AlarmManager.RTC, System.currentTimeMillis() + 100, mPendingIntent);%0A            //kill the application%0A            System.exit(0);%0A        %7D%0A        catch (Exception ex)%0A        %7B%0A            return false;%0A        %7D%0A        return true;%0A    %7D%0A%7D%0A

put restart app method to Utils class