first day on learning android I am understanding it all but a few little probs
basically created my first activity for my app and ran it it runs fine
then created second activity and xml
then back into first active -- and placed a button into xml
the button is so once clicked it will show the message in activivty second
the only problem I can think is when assigning the letter b to the button I get an error icon at side of page I press cntrl 1 to assign a cast to the button and that option is not there.
so I hard-coded this into my code and it shows no errors
once finished I run the app the first activity loads fine, I click the button and
unfortunately app (name) has stopped
why is this I have done lots of times with the same result
basically created my first activity for my app and ran it it runs fine
then created second activity and xml
then back into first active -- and placed a button into xml
the button is so once clicked it will show the message in activivty second
the only problem I can think is when assigning the letter b to the button I get an error icon at side of page I press cntrl 1 to assign a cast to the button and that option is not there.
so I hard-coded this into my code and it shows no errors
once finished I run the app the first activity loads fine, I click the button and
unfortunately app (name) has stopped
why is this I have done lots of times with the same result