i have my main activity, wich has fe buttons, one of them - COLOR, will open a new list view activity with a list of colors.
so i have both of the xml, and both of the java pages. i put in the main acticity a listener for that button and made a new intent and gave the start activity command. but when i run it on the emulator it crashes when ipress COLOR button.
this is in my main activity:
what am i doing wrong?
Amir Rahav
Greenhorn
Joined: Jul 28, 2012
Posts: 2
posted
0
and that is the second activity - the color selec page:
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32694
4
posted
0
Welcome to the Ranch
Please indent your code correctly, and don’t double‑space it. I shall try to edit your code and you can see how much better it looks.
We can only help you if you give us more details. When does your application crash? Do you get a stack trace or error message? What does it say? Copy the exact text.
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32694
4
posted
0
Is .show() really supposed to be on a line by itself? Is it the Component#show() method? You realise that has been deprecated?
Have you written about the second activity in the manifest file.
Many people don't write in the manifest file, and when the activity does not start they scratch their head.