Reputation: 46
I have recently started programming android apps (put simply, i have next to no experience with android programming). I have some experience with basic HTML, but not much beyond that. I have also been searching the internet for weeks on how to program one little button. None of them have worked. There are several XML layouts in my res folder, and all of them have buttons. What I need to know is how I can program a button in one of my XML layouts so that when it is pressed it takes me to another XML layout. However, if you answer this, please put a step-by-step guide, and tell me where to put the code including the placement in the code. My real problem, is the fact that i put in the code that tutorials tell me to, and it tells me that there are errors.
here are some of the websites i have tried:
http://developer.android.com/resources/faq/commontasks.html#opennewscreen
How to navigate from one screen to another screen
http://www.connorgarvey.com/blog/?p=93#codesyntax_3
Upvotes: 0
Views: 13962
Reputation: 39386
You can probably start here http://developer.android.com/resources/tutorials/notepad/index.html
Upvotes: 0
Reputation: 2810
Here is a step by step guide: http://itp.nyu.edu/~sve204/mobilemedia_spring10/android101.pdf
Upvotes: 1