Download Solution Manual for Android Boot Camp Using Java, 4th Edition – Complete Chapter Answers & and more Exams Java Programming in PDF only on Docsity!
Android Boot Camp for Developers
Using Java®: A Guide to Creating
Your First Android Apps, 4th
Edition by Corinne Hoisington
Complete Chapter Solutions Manual
are included (Ch 1 to 12)
**** Immediate Download ** Swift Response ** All Chapters included ** Working Code Files**
Solution and Answer Guide
Hoisington, Android Boot Camp for Developers Using JAVA: A Guide to Creating Your First Android Apps
4e, 9780357881231, Chapter 1: Voila! Meet the Android
TABLE OF CONTENTS
Developer FAQs ................................................................................................................................... 1
Beyond the Book.................................................................................................................................. 2
Case Programming Projects.................................................................................................................. 3
DEVELOPER FAQS
- What is the dessert name that starts with an “N” to identify an Android version? (1.4) Answer: Nougat
- What is the one-time cost for a developer’s account at Google Play? (1.5) Answer: $
- When you post an Android app at Google Play, what percentage of the app price does the developer keep? (1.5) Answer: 85%
- is the web address of Google Play. (1.5) Answer: play.google.com
- What share of the world’s smartphone market is represented by Android? (1.1) Answer: 72%
- Java is the most popular coding language used to create Android apps. What other language is also used? (1.4) Answer: Kotlin
- In which subfolder is the activity_main.xml file stored? (1.7) Answer: layout
All Chapters solutions are given in this
PDF however some extra files are
available too with solutions set.
You can copy and paste below link to
download extra files for solutions
https://www.mediafire.com/file/
p97dfp7wiryfc4k/Extra+Files+-+Android
+Boot+Camp+for+Developers+Using
+Java+4e.rar/file
Answer: Answers will vary.
- Name five Android mobile device features not mentioned in Chapter 1. Answer: Answers will vary.
- Research and provide three advantages that a Windows 11 user has with Android smartphones and apps. Write and explain the advantages in full sentences. Answer: Answers will vary.
- Go to the Google Play website and take a screenshot of each of the following app categories: education, gaming, mapping, travel, and personal hobby. Place the screenshots in a word-processing document and label each one to identify them. Answer: Answers will vary.
- Create a timeline of the Android product from the past to present day. Answer: Answers will vary.
CASE PROGRAMMING PROJECTS
Working code is provided in the chapter’s Solutions folders for each case programming project.
component? (2.3) Answer: constraints
- Which measurement is most preferred for text size? Why? (2.3) Answer: sp. If a user has selected sp and set up an Android phone to display a large font size for more clarity and easier visibility, the font in the app will be scaled to meet the user’s size preference.
- What does px stand for? (2.3) Answer: pixel
- What does sp stand for? (2.3) Answer: scaled-independent pixels
- What is a stub? (2.8) Answer: A piece of code that serves as a placeholder to declare itself; it has just enough code to link to the rest of the program
- Which picture file types are accepted for an ImageView component? (2.3) Answer: .jpg, .png, and.gif
- Which picture file type is preferred? (2.3) Answer: .png
- In which attribute can you describe an ImageView component for screen readers to improve accessibility? (2.2) Answer: contentDescription property
- Which four attributes were changed in the chapter project for the Button component? (2.3) Answer: id, text, backgroundTint, and textSize
- What is the attribute that defines the name of an ImageView component? (2.2) Answer: id
- Write one line of code that would launch a second class named Drone from the present MainActivity class. (2.9) Answer: startActivity(new Intent(MainActivity.this, Drone.class));
- Write one line of code that declares a Button component with a variable named button, which references a button in the XML layout with the id attribute of btBlackWidow. (2.7) Answer: Button button = (Button) findViewById(R.id.btnBlackWidow);
- Write one line of code that opens the XML layout named reality. (2.9) Answer: setContentView(R.layout.reality);
- Which two keys are pressed to auto-complete a line of Java code on a PC? (2.8) Answer: Alt+Enter
- What character is placed at the end of most lines of Java code? (2.10) Answer: semicolon
BEYOND THE BOOK
Search the web for answers to the following questions to further your Android knowledge.
- ConstraintLayout is not the only type of Android layout. Name three other types of layouts and write a paragraph describing each type. Answer: Answers will vary.
- Why are .png files the preferred type of image resource for the Android device? Write a paragraph that gives at least three reasons. Answer: Answers will vary.
- How much does an average Android app developer profit from an app? Research this topic and write 150–200 words on your findings. Answer: Answers will vary.
- Research the most expensive Android apps currently available at Google Play. Name three expensive apps, their price, and the purpose of each. Answer: Answers will vary.
Solution and Answer Guide
Hoisington, Android Boot Camp for Developers Using JAVA: A Guide to Creating Your First Android Apps
4e, 9780357881231, Chapter 3: Engage! Android User Input, Variables, and Operations
TABLE OF CONTENTS
Developer FAQs ................................................................................................................................... 1
Beyond the Book.................................................................................................................................. 5
Case Programming Projects.................................................................................................................. 5
DEVELOPER FAQS
- Where do you type numbers on the screen on an Android phone? (3.1) Answer: On the on-screen soft keyboard.
- Where is the soft keyboard? Be sure to include its location in your answer. (3.1) Answer: The on-screen keyboard is positioned at the bottom of the phone screen.
- What does UX stand for? (3.1) Answer: User experience
- Which five components were used in the chapter project? (All) Answer: TextView, Text Number, Spinner, Button, ImageView
- Which Text component is best for entering a value such as Pi? (3.1) Answer: Number (Decimal)
- Which Text component is best for entering an amount for an overdrawn checking account? (3.1)
Answer: Number (Signed)
- Which attribute of the Spinner component adds text at the top of the component, such as instructions? (3.7) Answer: prompt
- What is the name of the file that holds commonly used phrases (arrays) of text in an application? (3.3) Answer: strings.xml
- What is a single string of information called in a string array? (3.3) Answer: item
- Which attribute do you assign to the string array that you create for a Spinner? (3.3 and 3.7) Answer: Entries
- Write the following variable in camel case: NUMBEROFDELAYS. (3.10) Answer: numberOfDelays (this answer is case sensitive)
- Write a declaration statement for each of the following variables using the variable type and variable name that would be best for each value. Assign values if directed. (3.10) a. The smallest data type you can use for your age b. The population of the state of Maine c. Your weekly pay using the most common type for this type of number d. The first initial of your first name e. The present minimum wage using the most common type for this type of number f. The name of the city in which you live g. The answer to a true/false question for whether your age is over 16 Answer: Variable names will be different but should have the same data type.
- Assign the text of the user’s choice of a Spinner component named careerName to the variable named topCareers. (3.7) Answer: topCareers = careerName.getSelectedItem().toString();
- If a variable named amount is assigned the value 57,199.266, what would the following statements display in the variable called price? (3.12) DecimalFormat money = new DecimalFormat(“$###,###.##”); price.setText(“Salary = ” + money.format(amount)); Answer: Salary = $57,199.
- Write a line of Java code that assigns the variable jellyBeans to a decimal format with six digits and a comma if needed, but no dollar sign or decimal places. (3.12) Answer: DecimalFormat jellyBeans = new DecimalFormat("###,###");
- Write a line of Java code to use concatenation to join the phrase “Welcome to the ”, versionNumber (an int variable), and the phrase “th version” to the variable combinedStatement. (3.13) Answer: combinedStatement = "Welcome to the " + versionNumber + "th version"
- Write a line of Java code that assigns a number to the variable numberChoice, which indicates the user’s selection. If the user selects the first group, the number 0 is assigned; if the user selects the second group, the number 1 is assigned; and if the user selects the third group, the number 2 is assigned with the same variables used in the chapter project. (3.12) Answer: numberChoice = group.getSelectedIndex().toString();
BEYOND THE BOOK
Search the web for answers to the following questions to further your Android knowledge.
- Research a smartphone that allows you to input data with a stylus. Show a screenshot of the phone displaying the features and price. Answer: Answers will vary.
- Search for three Android apps that sell any types of tickets. Name five features of each of the three apps. Answer: Answers will vary.
- A good Android developer always keeps up with the current market. Open the webpage https://play.google.com. Find this week’s featured tablet apps and write about the top five. Write a paragraph on the purpose and cost of each app, for a total of five paragraphs. Answer: Answers will vary.
- Open the search engine Bing.com and then click the News tab. Search for an article about Android devices using this week’s date. Insert the URL link at the top of a new document. Write a summary of the article in 150 to 200 of your own words. Answer: Answers will vary.
CASE PROGRAMMING PROJECTS
Working code is provided in the chapter’s Solutions folders for each case programming project.
Answer: Answer: green
- What is the name of the attribute used to horizontally center the hint attribute of a Text Number component? (4.5) Answer: center_horizontal gravity property
- Using the layout_marginTop attribute, in which text box would you type 18dp to move a component 18 density pixels down from the upper edge of the emulator? (4.4) Answer: top
- When a RadioGroup component is placed on the emulator, the first RadioButton component is selected by default. Which attribute is set as true by default? (4.3) Answer: checked
- Write an If statement with empty braces that tests if the value in the variable age is between 18 and 21 years inclusive. (4.11) Answer: if (age >= 18 && age <= 21) { }
- Write an If statement with empty braces that tests if the radio button named gender is selected. (4.14) Answer: if (gender.isChecked()) { }
- Rewrite the following line of code without a Not logical operator but keeping the same logical processing: if (! (height <= 60) {. (4.11)
Answer: if (height <= 60) { }
- Write an If statement with empty braces to compare if a string variable named company is equal to AT&T. (4.10) Answer: if (company.equals("AT&T")) { }
- Fix this statement: if (hours < 2 || > 8) {. (4.11) Answer: if (hours <2 | | hours > 8) { }
- How many radio buttons can be selected at one time in a RadioGroup component? (4.3) Answer: 1
- Write an If statement with empty braces that compares if wage is equal to 7.25. (4.10) Answer: if (wage = = 7.25) { }
- If you compare two strings and the result is a positive number, what is the order of the two strings? (4.10) Answer: The first string follows the second string alphabetically.
- Using a relational operator with empty braces, write an If statement that evaluates if a variable named tipPercent is not equal to .15. (4.10)
- Research the average price of an individual paid app. Write 75 to 100 words on the average selling prices of Android and iPhone apps. Answer: Answers will vary.
CASE PROGRAMMING PROJECTS
Working code is provided in the chapter’s Solutions folders for each case programming project.
Solution and Answer Guide
Hoisington, Android Boot Camp for Developers Using JAVA: A Guide to Creating Your First Android
Apps 4e, 9780357881231, Chapter 5: Investigate! Android Lists, Arrays, Switch Statements, and Web
Browsers
TABLE OF CONTENTS
Developer FAQs ........................................................................................................................................... 1
Beyond the Book .......................................................................................................................................... 4
Case Programming Projects ....................................................................................................................... 5
DEVELOPER FAQS
- In the chapter example project, which Android component is used to display a vertical list of attractions? (5.1) Answer: A ListView component is used.
- After you display the second page in the City Guide app, which button do you click to return to the first page of the app? (5.1) Answer: Click the left-arrow button.
- When does a vertical scroll bar appear in a list? (5.1) Answer: A scroll bar appears when the list exceeds the size of the window.
- Initialize an array named temps with the integers 21, 56, 38, 30, and 57. (5.3) Answer: int[] temps ={21, 56, 38, 30, 57};
- Answer the following questions about the following initialized array: (5.3) String[] pizzaToppings = new String[10]; a. What is the statement to assign mushrooms to the first array location? b. What is the statement to assign green peppers to the fourth location in the array? c. How many toppings can this array hold? d. Rewrite the statement to initially be assigned the following four toppings only: extra cheese, black olives, mushrooms, and bacon. Answer: a. pizzaToppings[0]= "mushrooms"; b. pizzaToppings[3]= "green peppers";