What's new
DroidForums.net | Android Forum & News

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Simplest way to open new screen

Frank PaBirds

New Member
I am new to Andoid/Java. I have done a lot of programming in Microsoft Access Visual Basic.

In VB, to open a new form from a button click, you create the form and then add the following to the button's onclick event docmd.openform("Form1"). That's all there is to it!

In Android/Java I cannot find an equivilant command. Everything I look at has activities, listeners, intents, etc.

Is there a simple way to do this?

If not, can someone give me the most bareboned code for simply opening a new screen from a button click?

I understand how to create a new layout.xml file. I just can't figure out how to simply display it.
 
Back
Top