Well I'm assuming you know how to get something running off of a button, if not just let me know. But this is the code for use in your method:
- Code: Select all
Intent intent = new Intent(this, YOUR_CLASS_NAME_WITH_THE_NEW_VIEW.class);
startActivity(intent);
then in the xml you need to add:
- Code: Select all
<activity android:name=".YOUR_CLASS_NAME_WITH_THE_NEW_VIEW." android:label="@string/app_name" />
Then of course set up your layout and do the standard code for a layout. Thats the complex but as far as I know the most correct way (not the only way) because it allows the back button to be used. However in your circumstance I'm not sure that's necessary. I believe you can just set up the layout and use:
- Code: Select all
setContentView(R.layout.YOUR_LAYOUT_NAME);
Hope this helps... I'm relatively new to android as well so I'm not the person to ask as far as the drawbacks/advantages for each