Question: Create an application in Android Studio using the XML document provided below and the video demo https://watch.screencastify.com/v/cGwSMTeNi53Bpzdo2hRK) Displays a text view Select the Stream of

Create an application in Android Studio using the XML document provided below and the video demo

https://watch.screencastify.com/v/cGwSMTeNi53Bpzdo2hRK)

Displays a text view "Select the Stream of your Choice" and a ListView with four elements: "Science", "Accounting", "Arts", and "Computing Science (use Array Adapter)

Add a long click listener on the items in ListView, which will show an AlertDialog

setTitle Course details

setMessage

name of the Stream selected.

Courses that you can take (Check Video or picture)

If "Science" is selected display "Physics, Chemistry", "Atmospheric Sciences", "Soil ecology."

If "Accounting" is selected display "Commerce","Economics", "Maths", "Statistics."

If "Arts" is selected display " Sociology ","Political Science", "History", "Psychology."

If "Computing Science" is selected display " Maths ","Programming 1 ", "Microeconomics", "Professional Writing.

Set the positive button.

Set the title of the button as "Add to schedule" and display a Toast message on its click (Courses Successfully added to schedule) to indicate that the courses have been added to the schedule successfully.

Set the neutral button.

Set the title of the button as "Select again" and on its click, simply dismiss the AlertDialog.

Test your app to make sure it works as expected.

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!