Build an android application called ToastCounterHW with the following components The ToastCounterHW app consists of two...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Build an android application called ToastCounterHW with the following components The ToastCounterHW app consists of two Activities: 1. Main Activity a. Keep the name above b. It's a count up activity MainActivity: Widgets -Button : Toast Display a Toast Message - TextView: Displays the one number that goes up if "Count Up" button is clicked Button: Count Up ■ When clicked the numbers goes up 0 Count Up Go to Count Down Toast 0 Teast 1 Count Up Go to Count Down 1 2 3 4 Button: Go to Count Down, when clicked Send the number displayed to the Second Activity Hint: use a. Intent to send the last number in the count up (4 is the last number in this example) to the second activity 2. Second Activity b. the method startActivityForResult() go to the second activity (since the main activity will expect a result back) ■ Second Activity (Count Down Activity): Widgets TextView: Display a Title: "Count Down Activity" a. Change its name to Count Down Activity b. It's a count down activity TextView: ■ Displays the number received from the MainActivity (4 in this example) Button: Count Down ■ When clicked the number goes Down Count Down Activity 4 Count Down Go back 4 Count Down Go back Count Down Activity 4 Count Down Go back Count Down Activity 3 Count Down Go back Count Down Activity 2 Count Down de back Button: Go Back, when clicked Send the last number displayed to the MainActivity (1 in this example) Count Down Activity 1 Count Down Go back at Hint: use a. Intent to send the number to the MainActivity b. the method setResult() to send the A to MainActivity c. call finish() method 3. back to Main Activity a. The received result (1 in this example) will be displayed into the TextView If Button Count Up is clicked the numbers goes up. so on and so forth TeatCounter Toast To 1 Count Up Go to Count Down Toast 1 Count Up Go to Count Down Toast 2 Count Up Go to Count Down Build an android application called ToastCounterHW with the following components The ToastCounterHW app consists of two Activities: 1. Main Activity a. Keep the name above b. It's a count up activity MainActivity: Widgets -Button : Toast Display a Toast Message - TextView: Displays the one number that goes up if "Count Up" button is clicked Button: Count Up ■ When clicked the numbers goes up 0 Count Up Go to Count Down Toast 0 Teast 1 Count Up Go to Count Down 1 2 3 4 Build an android application called ToastCounterHW with the following components The ToastCounterHW app consists of two Activities: 1. Main Activity a. Keep the name above b. It's a count up activity MainActivity: Widgets -Button : Toast Display a Toast Message - TextView: Displays the one number that goes up if "Count Up" button is clicked Button: Count Up ■ When clicked the numbers goes up 0 Count Up Go to Count Down Toast 0 Teast 1 Count Up Go to Count Down 1 2 3 4 Button: Go to Count Down, when clicked Send the number displayed to the Second Activity Hint: use a. Intent to send the last number in the count up (4 is the last number in this example) to the second activity 2. Second Activity b. the method startActivityForResult() go to the second activity (since the main activity will expect a result back) ■ Second Activity (Count Down Activity): Widgets TextView: Display a Title: "Count Down Activity" a. Change its name to Count Down Activity b. It's a count down activity TextView: ■ Displays the number received from the MainActivity (4 in this example) Button: Count Down ■ When clicked the number goes Down Count Down Activity 4 Count Down Go back 4 Count Down Go back Count Down Activity 4 Count Down Go back Count Down Activity 3 Count Down Go back Count Down Activity 2 Count Down de back Button: Go Back, when clicked Send the last number displayed to the MainActivity (1 in this example) Count Down Activity 1 Count Down Go back at Button: Go to Count Down, when clicked Send the number displayed to the Second Activity Hint: use a. Intent to send the last number in the count up (4 is the last number in this example) to the second activity 2. Second Activity b. the method startActivityForResult() go to the second activity (since the main activity will expect a result back) ■ Second Activity (Count Down Activity): Widgets TextView: Display a Title: "Count Down Activity" a. Change its name to Count Down Activity b. It's a count down activity TextView: ■ Displays the number received from the MainActivity (4 in this example) Button: Count Down ■ When clicked the number goes Down Count Down Activity 4 Count Down Go back 4 Count Down Go back Count Down Activity 4 Count Down Go back Count Down Activity 3 Count Down Go back Count Down Activity 2 Count Down de back Button: Go Back, when clicked Send the last number displayed to the MainActivity (1 in this example) Count Down Activity 1 Count Down Go back at Hint: use a. Intent to send the number to the MainActivity b. the method setResult() to send the A to MainActivity c. call finish() method 3. back to Main Activity a. The received result (1 in this example) will be displayed into the TextView If Button Count Up is clicked the numbers goes up. so on and so forth TeatCounter Toast To 1 Count Up Go to Count Down Toast 1 Count Up Go to Count Down Toast 2 Count Up Go to Count Down Hint: use a. Intent to send the number to the MainActivity b. the method setResult() to send the A to MainActivity c. call finish() method 3. back to Main Activity a. The received result (1 in this example) will be displayed into the TextView If Button Count Up is clicked the numbers goes up. so on and so forth TeatCounter Toast To 1 Count Up Go to Count Down Toast 1 Count Up Go to Count Down Toast 2 Count Up Go to Count Down
Expert Answer:
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
An industrial-organizational psychologist is hired to help increase productivity at a company. He teaches one group of workers strategies to improve productivity and has a control group who does not...
-
Googles ease of use and superior search results have propelled the search engine to its num- ber one status, ousting the early dominance of competitors such as WebCrawler and Infos- eek. Even later...
-
When something burns, a. it combines with phlogiston b. it gives off phlogiston c. it combines with oxygen d. it gives off oxygen
-
What occurs when the outer electrons that buzz about the atomic nucleus encounter electromagnetic waves?
-
Does your school have a naming rights program? Where do you see it operating on campus? Can you find out how much revenue was, or is, produced by this program? How does the association help or hinder...
-
Plaintiffs purchased stock warrants (rights to purchase) for blocks of Osborne Computer Corp., the manufacturer of the first mass-market portable personal computer. Because of inability to produce a...
-
Conlin Corporation had the following tax information. In 2011 Conlin suffered a net operating loss of $480,000, which it elected to carry back. The 2011 enacted tax rate is 29%. Prepare Conlin's...
-
2. Let h1(t), h2(t) = C[0, ) and (x) L(0, L). Consider the following one- dimensional heat equation: u = kuxx, 0 0, ux (L,t) = h2(t), t> 0, 0
-
Find all values of x in the interval [0, 27] that satisfy the equation. (Enter your answers as a comma-separated list.) 10 sin(x) = 5 Find all values of x in the interval [0, 27] that satisfy the...
-
What aspects of African based teaching can you integrate into your own teaching philosophy? Explain good teaching
-
What areas of your communication and negotiation need improvement? How effective were the communication channels, systems and processes? What areas of the team or organizational practices need...
-
Walmart practice of e-commerce retail boosted their sales and business. (indigo 9 digital, 2022,para. 3) Itprovided theoption to the customer toshop on the comfort of their own home, they do not...
-
Based on the Bank of Mexico's goal of an annual inflation rate of 4.0%, what should the monthly salary of a person be by 2023, if in 2018 they obtained a salary of $ 15,340 per month AND the salary...
-
Walmart promotes the assortments of products and large varieties of these commodities all over the physical and digital portals and ranges from local taste to international preferences. This helps to...
-
What are the major economic systems in the world today? What are their respective strengths and weaknesses?
-
In Problems 718, write the augmented matrix of the given system of equations. f0.01x0.03y = 0.06 [0.13x + 0.10y = 0.20
-
During 2012, William purchases the following capital assets for use in his catering business: New passenger automobile (September 30)........................$21,500 Baking equipment (June 30)...
-
Steve Jackson (age 51) is a single taxpayer living at 3215 Pacific Dr., Del Mar, CA 92014. His Social Security number is 465-88-9415. In 2012, Steve's earnings and income tax withholding as the...
-
Joan is a self-employed attorney in New York City. Joan took a trip to San Diego, CA, primarily for business, to consult with a client and take a short vacation. On the trip, Joan incurred the...
-
Use the Ritz variational method for the harmonic oscillator, with trial wave functions \(\psi_{1}(x)=\) \(e^{-y^{2} / 2}, \psi_{2}(x)=e^{-y^{2}}, \psi_{3}(x)=e^{-2 y^{2}}\), where \(y=x \sqrt{m...
-
Consider a two-level system, with basis \(|1angle,|2angle\), and in this basis, a Hamiltonian with elements \(\left(\begin{array}{ll}1 & 1 \\ 1 & 1\end{array} ight)\). Use the first form of the...
-
Use the practical variational method for the same harmonic oscillator ground state energy, with trial wave function \(\psi_{a}(x)=e^{-a y^{2}}\).
Study smarter with the SolutionInn App