title: How to define the main class in an Android App?
body: <p>I'm very newbie in android, I download an example from developer.android.com and I want to create a new class with his layout and modify the main class of the application to start with another layout.</p>
  
  <p>How can I achive this? (the starting class modification).</p>
  
  <p><strong>[EDIT]</strong></p>
  
  <p>I achieve this adding to my manifest this:</p>
  
  <pre><code>&lt;intent-filter&gt;
    &lt;action android:name="android.intent.action.MAIN" /&gt;
    &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
  &lt;/intent-filter&gt;
  </code></pre>
  
  <p>But when I do <code>setContentView(R.layout.mynewlayout);</code> the loaded layout is the old one...</p>
  
  <p>Any idea why is this happening?</p>
  
  <p><strong>[EDIT2]</strong></p>
  
  <p>I'm stupid... the old and the new layout were the same... now is working fine. Thank you.</p>