Question: using the xml documents below create a java file that is exactly like the app on this linkusing the first main activity as - and
using the xml documents below create a java file that is exactly like the app on this linkusing the first main activity as
-
and the second activity as
-
Write a sample Android application that (https://watch.screencastify.com/v/Z0bUMRzT04DUVbg8UMPc ) The application should have two activities: A. MainActivity: which will have a SeekBar that the user can adjust to set a value between 1 and 10, and a button labeled "Submit". B. SecondActivity: which will be opened when the user clicks on the "Submit" button in the MainActivity, and it should display the table of the number selected using the SeekBar. The application should meet the following requirements: 1. The MainActivity should have a SeekBar that starts with a progress value of 5. 2. The MainActivity should have a TextView that displays the current selected number from the SeekBar as the user adjusts it (setOnSeekBarChangeListener on Seekbar and overrides its onProgress changed method) 3. When the user clicks on the "Submit" button, an intent should be used to start the SecondActivity and pass the current selected number from the SeekBar to it. 4. The SecondActivity should display the table of the number passed from the MainActivity in a TextView. The table should show the multiples of the number from 1 to 20. 5. If the app goes to the background and not visible to the user,the Second Activity should finish and when user resume, first activity should be displayed. 6. Test your app to make sure it works as expected.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
