Code example for Intent

Methods: addFlags

0
  }; 
 
  private final DialogInterface.OnClickListener groupsListener =
      new DialogInterface.OnClickListener() { 
    public void onClick(DialogInterface dialogInterface, int i) { 
      Intent intent = new Intent(Intent.ACTION_VIEW, BUGGY_URI); 
      intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET); 
      HelpActivity.this.startActivity(intent); 
    } 
  }; 
 
  @Override 
  protected void onCreate(Bundle icicle) {
    super.onCreate(icicle);
    setContentView(R.layout.help);
 
    webView = (WebView)findViewById(R.id.help_contents);
    webView.setWebViewClient(new HelpClient());
 
    // Froyo has a bug with calling onCreate() twice in a row, which causes the What's New page 
    // that's auto-loaded on first run to appear blank. As a workaround we only call restoreState()