Create a function that displays a greeting

Assignment Help Computer Engineering
Reference no: EM133207056

Assignment: Android Studio Introduction Paper

Overview

Earlier in this course, you created a simple layout in Android Studio. For this assignment, you will be building off of the UI you already created and will practice some simple coding with Android Studio. It will be important to use this as an opportunity to continue getting a feel for the tool, while also reviewing your skills.

Prompt

Open the file you saved from the Module Three assignment in Android Studio, then edit the MainActivity.java file.

Specifically, you must address the following rubric criteria:

1. Create a function that displays a greeting. In Android Studio, create a new public function named "SayHello()" that returns a void. The function will need to accept a View as a parameter. Within the function, ensure that it displays a message and check that the contents of nameText are not null.

2. Create validation of the elements and inputs. To complete this task you must do all of the following:

a. If the content of nameText is not null, write "Hello" and the contents of nameText to textGreeting.
b. If the content of nameText is null, write "You must enter a name" to textGreeting.
c. On activity_main.xml, set the "onClick of buttonSayHello" to "SayHello()".

3. Dynamically enable and disable the button for appropriate situations. For buttonSayHello, the following pattern should be created:

a. Dynamically disable buttonSayHello if there is no text in nameText.
b. Dynamically enable buttonSayHello when text is entered in nameText.

Reference no: EM133207056

Questions Cloud

What relevant experience studies or research do you have : What relevant experience, studies or research do you have with the topic? How does it relate to your areas of study?
Describe the geological origin of the resource : Q1. Describe the geological origin of the resource. Q2. Describe the use and importance to humans of the resource you choose.
Develop an app that uses sensormanager : Develop an app that uses SensorManager. You can choose to write the values from your sensor to the console or to the screen.
Difference between short-run and long-run decisions : Fixed costs are often defined as "fixed over the short run." Does this mean that they are not fixed over the long run
Create a function that displays a greeting : Create a function that displays a greeting. Create validation of the elements and inputs. Dynamically enable and disable the button for appropriate situations.
The geologic story of your home place : The geologic story of your home place - what rocks and minerals are found there, and what stories they tell about how your place has changed over geologic time.
What is the purpose and importance of financial analysis : What is the purpose and importance of financial analysis? What are financial ratios? Describe the "five-question approach" to using financial ratios
Create ui with appropriate elements to display database : Create UI with appropriate design elements to display database information as a grid (1 screen). Logical labels and headers for the data that will be displayed.
How is large-scale volcanic eruption seen by modis sensor : How are the capabilities of the MODIS sensor demonstrated here as being extremely useful for monitoring phenomena such as large-scale wildfires?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Draw the result of inserting entries with the given keys

Consider the sequence of keys (5,16,22,45,2,10,18,30,50,12,1). Draw the result of inserting entries with these keys into an initially empty (2,4) tree.

  Identify appropriate challenges that exist in using data

Identify an opportunity in which Big Data can be used to make organization improvements. Identify appropriate challenges that might exist in using this.

  Mechanistic-organic-organizational behavior

Pick one of the following terms for your research: centralization, contingency, decentralization, efficiency, mechanistic, organic, organizational behavior,

  Draw a bpmn flowchart using give information

Draw a BPMN flowchart. Flower online delivery company: costumer type zip code to the website. After this he get the results what flowers are available.

  Write a program that prompts the user to enter coordinates

Write a program that prompts the user to enter the center coordinates and radii of two circles and determines .

  How would an attacker break a caesar-style cipher

Julius Caesar used one of the earliest known cipher systems to communicate with Cicero in Rome while he was conquering Europe.

  Write a function that counts the number of occurrences

Write a recursive function that counts the number of occurrences of k in array A by dividing A in to half size arrays.

  Compute the overall return on investment of the project

compute the overall return on investment of the project and then present a breakeven analysis , perform the BEA at what point does breakeven occur.

  Examining cloud solutions for individuals and businesses

In this unit we are examining some Cloud solutions for individuals and businesses. Specifically, we will consider data storage and collaboration in the Cloud.

  Review problem based on it governance planning

Search the Internet for IT governance planning. Select a specific governance plan that exists at a company or a plan framework from an organization. Write.

  Write a program that enable the user to specify the location

Write a program that enables the user to specify the location and size of the circles and displays whether the two circles intersect, as shown in Figure below.

  What are three-dimensional cad models used for

Define CAD. What are two-dimensional CAD models used for? What are three-dimensional CAD models used for?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd