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.
How can I achive this? (the starting class modification).
[EDIT]
I achieve this adding to my manifest this:
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
But when I do setContentView(R.layout.mynewlayout);
the loaded layout is the old one...
Any idea why is this happening?
[EDIT2]
I'm stupid... the old and the new layout were the same... now is working fine. Thank you.