I just compiled and ran the hello world app and it worked. And I read through a bunch of stuff on the android documentation about the diff components of android and how it all works together. Now I want to make a few buttons which link to various actions.
For example, I want to make a button that goes to a new screen. Is there a tutorial for this sort of a thing? Or maybe someone could explain to me how to do that?
Thanks!
This is really simple. To make a button that goes to a new screen you should put a new button on your XML layout, and assign it an id. After you’ve done this, in your code, you need to do something like the following:
Hope this helps you.
Also, be sure that the activity that you’re trying to start A) Exists, and B) is in your manifest.