Question: Android Programming......Using Android Studio In this Homework, you are going to write one app that has nine buttons, 3 rows and 3 columns. The text

Android Programming......Using Android Studio

In this Homework, you are going to write one app that has nine buttons, 3 rows and 3 columns. The text on the nine buttons should be an integer randomly selected from 1 to 9 (no repeated numbers in the nine buttons). There is a TextView shows a random number from 1 to 9. Then the user should tap a button and a toast will be made indicating if the buttons number matches the TextViews number by Correct or Wrong. Then the textviews number and all buttons number will be regenerated randomly again.

Then user can tap again.

1. Use activity xml file to draw the Graphic User Interface

2. Set up listeners for all the buttons.

3. Since Android is written in Java, you can import java.util. Random class to help you to generate random numbers.

[*] If your program cannot start, thats a zero.

[5%] on the right top corner of the UI, put two lines of TextView with your name and Email address

[25%] for correct User Interface Appearance. Once it starts, it should give you the first question.

[45%] for correct event listeners including given toasts, regenerate all numbers

[25%] for Correctly Generate random numbers (no repeated numbers) for both buttons and TextView

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!