title: restart android app using the intent flags
body: <p>on event of language change im just want to restart the android app to reflect the ui changes so here is my code:</p>
  
  <pre><code>Intent i = getBaseContext().getPackageManager()
                    .getLaunchIntentForPackage(getBaseContext().getPackageName());
  i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_TASK_ON_HOME);
  startActivity(i);
  </code></pre>
  
  <p><strong>which is working fine with android lollypop and jellybeans but its not working with the kitkat</strong></p>
  
  <p><strong>Android:launchMode ="singleTask"</strong></p>