Question: Code an app that does the following: There is one button in the middle of the screen. The button color is green and its text

Code an app that does the following:

There is one button in the middle of the screen. The button color is green and its text says 0. When the user clicks on the button 0, we go to a second activity that is red and has one button in the middle of the screen; its text says BACK. When the user clicks on that button, we go back to the first activity; the button of that activity now says 1; every time we come back to the first activity from the second activity, the text inside the button is incremented by 1.

This needs to be completed in TWO DIFFERENT activities not one.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!