0

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 connect two activities

How to navigate from one screen to another screen

http://www.connorgarvey.com/blog/?p=93#codesyntax_3

5
  • 1
    Please show us what exactly you have tried, so we can help you with your problem. Commented Dec 2, 2011 at 16:12
  • here are some of the links. eclipse always gives me errors! Commented Dec 2, 2011 at 16:14
  • developer.android.com/index.html Commented Dec 2, 2011 at 16:18
  • can you show us the error you are getting. Commented Dec 2, 2011 at 16:18
  • and sometimes it just brings up an alert that says: your project contains error(s) please fix them before running your application. Commented Dec 2, 2011 at 16:26

2 Answers 2

1

Here is a step by step guide: http://itp.nyu.edu/~sve204/mobilemedia_spring10/android101.pdf

Sign up to request clarification or add additional context in comments.

1 Comment

i will try that, it looks promising.
0

You can probably start here http://developer.android.com/resources/tutorials/notepad/index.html

1 Comment

i looked at that, but i didnt really understand some of it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.