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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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