title: Intent.FLAG_ACTIVITY_NEW_TASK
body: <p>I at some date and time when application not active show dialog (activity with Dialog theme; otherwise there is not possibility to do). </p>
  
  <pre><code>if (!Utils.isApplicationInForeground(context)) {
      Intent i = new Intent(context, DialogActivity.class);
      i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
      context.startActivity(i);
  }
  </code></pre>
  
  <p><code>Intent.FLAG_ACTIVITY_NEW_TASK</code> => so when I start application after dialog showing through Home button(recent apps) <code>DialogActivity</code> is opening instead of Application.</p>
  
  <p>How can I make to open my application?</p>