title: How to start an activity with custom values
body: <p>Hey guys I am reasonably new to Android programming but have some experience with .net anyway what I would like to do is create a class say <code>RestartDialog</code> then call this class from an activity. Normally in .net I would use:</p>
  
  <pre><code>RestartDialog rd = new RestartDialog();
  
  rd.setType(EXTENDED_TYPE);
  rd.show;
  </code></pre>
  
  <p>then it would start in extended mode however in Android you need Intents to start activitys and this is the only way am I right? I know I can use <code>Intent.putExtra</code> etc but I will need to set many values first.</p>
  
  <p>What would be my best bet to achive this please? Thanks in advance for your help.</p>