Solution hjand hjAnswer hjGuide: hjAndroid hjBoot hjCamp hjfor hjDevelopers hjUsing hjJava® hjA hjGuidehjto hjCreating hjYour hjFirst hjAndroid hjApps hj4th hjEdition hjCorinne
hj Hoisington
Solution and Answer Guide hj hj hj
Android Boot Camp for Developers Using Java® A Guide to Creating Your First Android Apps
hj hj hj hj hj hj hj hj hj hj hj hj hj hj
4th Edition Corinne Hoisington
hj hj hj hj
Chapter 1-12 hj
Chapter 1: Voila! Meet the Android
hj hj hj hj hj
TABLE OF CONTENTS HJ HJ
Developer FAQs ........................................................................................................................................ 1
hj
Beyond the Book ...................................................................................................................................... 2
hj hj
Case Programming Projects ...................................................................................................................... 3
hj hj
DEVELOPER FAQS HJ
1. What is the dessert name that starts with an “N” to identify an Android version? (1.4)
hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj
Answer: Nougat hj
2. What is the one-time cost for a developer’s account at Google Play? (1.5)
hj hj hj hj hj hj hj hj hj hj hj hj
Answer: $25 hj
3. When you post an Android app at Google Play, what percentage of the app price does the
hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj
hj developer keep? (1.5) hj hj
Answer: 85% hj
4. is the web address of Google Play. (1.5)
hj hj hj hj hj hj hj
Answer: play.google.com hj
5. What share of the world’s smartphone market is represented by Android? (1.1)
hj hj hj hj hj hj hj hj hj hj hj
Answer: 72% hj
6. Java is the most popular coding language used to create Android apps. What other language is also
hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj
hj used? (1.4) hj
Answer: Kotlin hj
© hj2023 hjCengage. hjAll hjRights hjReserved. hjMay hjnot hjbe hjscanned, hjcopied hjor hjduplicated, hjor hjposted hjtohja hjpublicly 1
hjaccessible
website, hjin hjwhole hjor hjin hjpart.
, Solution hjand hjAnswer hjGuide: hjChapter hj1: hjVoila! hjMeet hjthe
hjAndroid
7. In which subfolder is the activity_main.xml file stored? (1.7)
hj hj hj hj hj hj hj hj
Answer: layout hj
8. Name three widgets in the Palette mentioned in this chapter. (1.8, 1.9)
hj hj hj hj hj hj hj hj hj hj hj
Answer: TextView, Button, Checkbox hj hj hj
9. What is the name of the widget that was used in the Hello Android World app? (1.8, 1.9)
hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj
Answer: TextView hj
10. Which two key combinations can you press to run an Android app in Android Studio? (1.9)
hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj
Answer: In Windows, Shift+F10; on a Mac, Command+Shift+F11
hj hj hj hj hj hj hj
11. Which Android version is Kit Kat? (1.4)
hj hj hj hj hj hj
Answer: 4.4 hj
12. Using the alphabetical theme for Android version names, name three possible future names for the
hj hj hj hj hj hj hj hj hj hj hj hj hj hj
next versions of Android device operating systems. (1.4)
hj hj hj hj hj hj hj hj
Answer: Using the theme of desserts, any three dessert names after Tiramisu alphabetically
hj hj hj hj hj hj hj hj hj hj hj hj
13. Which two attributes were changed in the Hello Android World app? (1.9)
hj hj hj hj hj hj hj hj hj hj hj
Answer: text and id hj hj hj
14. What does SDK stand for? (1.4)
hj hj hj hj hj
Answer: Software Development Kit hj hj hj
15. What does XML stand for? (1.4)
hj hj hj hj hj
Answer: Extensible Markup Language hj hj hj
BEYOND THE BOOK HJ HJ
Search the web for answers to the following questions to further your Android knowledge.
hj hj hj hj hj hj hj hj hj hj hj hj hj
© hj2023 hjCengage. hjAll hjRights hjReserved. hjMay hjnot hjbe hjscanned, hjcopied hjor hjduplicated, hjor hjposted hjtohja hjpublicly 2
hjaccessible
website, hjin hjwhole hjor hjin hjpart.
,Solution hjand hjAnswer hjGuide: hjHoisington, hjAndroid hjBoot hjCamp hjfor hjDevelopers hjUsing hjJAVA: hjA hjGuidehjto hjCreating hjYour hjFirst hjAndroid hjApps hj4e, hj9780357881231,
hjChapter hj2:
Simplify! hjThe hjAndroid hjUser hjInterface
1. Research a particular model of a popular Android smartphone or tablet device and write a
hj hj hj hj hj hj hj hj hj hj hj hj hj hj
hj paragraph on its features, specifications, price, and manufacturer.
hj hj hj hj hj hj hj
Answer: Answers will vary. hj hj hj
2. Name five Android mobile device features not mentioned in Chapter 1.
hj hj hj hj hj hj hj hj hj hj
Answer: Answers will vary. hj hj hj
3. Research and provide three advantages that a Windows 11 user has with Android smartphones and apps.
hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj
Write and explain the advantages in full sentences.
hj hj hj hj hj hj hj
Answer: Answers will vary. hj hj hj
4. Go to the Google Play website and take a screenshot of each of the following app categories:
hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj
hj education, gaming, mapping, travel, and personal hobby. Place the screenshots in a word-
hj hj hj hj hj hj hj hj hj hj hj hj
processing document and label each one to identify them. hj hj hj hj hj hj hj hj
Answer: Answers will vary. hj hj hj
5. Create a timeline of the Android product from the past to present day.
hj hj hj hj hj hj hj hj hj hj hj hj
Answer: Answers will vary. hj hj hj
CASE PROGRAMMING PROJECTS
HJ HJ
Working code is provided in the chapter’s Solutions folders for each case programming project.
hj hj hj hj hj hj hj hj hj hj hj hj hj
Solution and Answer Guide hj hj hj
Hoisington, Android Boot Camp for Developers Using JAVA: A Guide to Creating Your First Android
hj hj hj hj hj hj hj hj hj hj hj hj hj hj
Apps 4e, 9780357881231, Chapter 2: Simplify! The Android User Interface
hj hj hj hj hj hj hj hj hj hj
TABLE OF CONTENTS HJ HJ
Developer FAQs ........................................................................................................................................ 1
hj
Beyond the Book ...................................................................................................................................... 2
hj hj
Case Programming Projects ...................................................................................................................... 3
hj hj
© hj2023 hjCengage. hjAll hjRights hjReserved. hjMay hjnot hjbe hjscanned, hjcopied hjor hjduplicated, hjor hjposted hjtohja hjpublicly 3
hjaccessible
website, hjin hjwhole hjor hjin hjpart.
, Solution hjand hjAnswer hjGuide: hjHoisington, hjAndroid hjBoot hjCamp hjfor hjDevelopers hjUsing hjJAVA: hjA hjGuidehjto hjCreating hjYour hjFirst hjAndroid hjApps hj4e, hj9780357881231,
hjChapter hj2:
Simplify! hjThe hjAndroid hjUser hjInterface
DEVELOPER FAQS HJ
1. What are the three components used in this chapter? (2.1)
hj hj hj hj hj hj hj hj hj
Answer: TextView, ImageView, and Button hj hj hj hj
2. If you were creating an app in many different languages, would you have to write the entire program
hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj
from scratch for each language? What part of the program would stay the same? What part of the
hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj
hj program would be different? (2.2) hj hj hj hj
Answer: No. You can keep all the same Java classes; just use different strings.xml files for
hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj
hj each language display.hj hj
3. In which subfolder in the Android project view are the XML files stored? (2.1)
hj hj hj hj hj hj hj hj hj hj hj hj hj
Answer: layout hj
4. In the chapter’s example project, which kind of layout was used to lay out the components
hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj
on the emulator? (2.3)
hj hj hj hj
Answer: ConstraintLayout hj
5. What is the term that describes the screen size, configuration, or physical layout of a device? (2.1)
hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj
Answer: form factor hj hj
6. What are the building blocks of an Android layout that attach or align a component to the screen
hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj
hj either by attaching it vertically and horizontally to the edges of the screen or by aligning it with
hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj
hj another component? (2.3) hj hj
Answer: constraints hj
7. Which measurement is most preferred for text size? Why? (2.3)
hj hj hj hj hj hj hj hj hj
Answer: sp. If a user has selected sp and set up an Android phone to display a large font size for
hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj
hj more clarity and easier visibility, the font in the app will be scaled to meet the user’s size
hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj
hj preference.
8. What does px stand for? (2.3)
hj hj hj hj hj
Answer: pixel hj
9. What does sp stand for? (2.3)
hj hj hj hj hj
© hj2023 hjCengage. hjAll hjRights hjReserved. hjMay hjnot hjbe hjscanned, hjcopied hjor hjduplicated, hjor hjposted hjtohja hjpublicly 4
hjaccessible
website, hjin hjwhole hjor hjin hjpart.
hj Hoisington
Solution and Answer Guide hj hj hj
Android Boot Camp for Developers Using Java® A Guide to Creating Your First Android Apps
hj hj hj hj hj hj hj hj hj hj hj hj hj hj
4th Edition Corinne Hoisington
hj hj hj hj
Chapter 1-12 hj
Chapter 1: Voila! Meet the Android
hj hj hj hj hj
TABLE OF CONTENTS HJ HJ
Developer FAQs ........................................................................................................................................ 1
hj
Beyond the Book ...................................................................................................................................... 2
hj hj
Case Programming Projects ...................................................................................................................... 3
hj hj
DEVELOPER FAQS HJ
1. What is the dessert name that starts with an “N” to identify an Android version? (1.4)
hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj
Answer: Nougat hj
2. What is the one-time cost for a developer’s account at Google Play? (1.5)
hj hj hj hj hj hj hj hj hj hj hj hj
Answer: $25 hj
3. When you post an Android app at Google Play, what percentage of the app price does the
hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj
hj developer keep? (1.5) hj hj
Answer: 85% hj
4. is the web address of Google Play. (1.5)
hj hj hj hj hj hj hj
Answer: play.google.com hj
5. What share of the world’s smartphone market is represented by Android? (1.1)
hj hj hj hj hj hj hj hj hj hj hj
Answer: 72% hj
6. Java is the most popular coding language used to create Android apps. What other language is also
hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj
hj used? (1.4) hj
Answer: Kotlin hj
© hj2023 hjCengage. hjAll hjRights hjReserved. hjMay hjnot hjbe hjscanned, hjcopied hjor hjduplicated, hjor hjposted hjtohja hjpublicly 1
hjaccessible
website, hjin hjwhole hjor hjin hjpart.
, Solution hjand hjAnswer hjGuide: hjChapter hj1: hjVoila! hjMeet hjthe
hjAndroid
7. In which subfolder is the activity_main.xml file stored? (1.7)
hj hj hj hj hj hj hj hj
Answer: layout hj
8. Name three widgets in the Palette mentioned in this chapter. (1.8, 1.9)
hj hj hj hj hj hj hj hj hj hj hj
Answer: TextView, Button, Checkbox hj hj hj
9. What is the name of the widget that was used in the Hello Android World app? (1.8, 1.9)
hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj
Answer: TextView hj
10. Which two key combinations can you press to run an Android app in Android Studio? (1.9)
hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj
Answer: In Windows, Shift+F10; on a Mac, Command+Shift+F11
hj hj hj hj hj hj hj
11. Which Android version is Kit Kat? (1.4)
hj hj hj hj hj hj
Answer: 4.4 hj
12. Using the alphabetical theme for Android version names, name three possible future names for the
hj hj hj hj hj hj hj hj hj hj hj hj hj hj
next versions of Android device operating systems. (1.4)
hj hj hj hj hj hj hj hj
Answer: Using the theme of desserts, any three dessert names after Tiramisu alphabetically
hj hj hj hj hj hj hj hj hj hj hj hj
13. Which two attributes were changed in the Hello Android World app? (1.9)
hj hj hj hj hj hj hj hj hj hj hj
Answer: text and id hj hj hj
14. What does SDK stand for? (1.4)
hj hj hj hj hj
Answer: Software Development Kit hj hj hj
15. What does XML stand for? (1.4)
hj hj hj hj hj
Answer: Extensible Markup Language hj hj hj
BEYOND THE BOOK HJ HJ
Search the web for answers to the following questions to further your Android knowledge.
hj hj hj hj hj hj hj hj hj hj hj hj hj
© hj2023 hjCengage. hjAll hjRights hjReserved. hjMay hjnot hjbe hjscanned, hjcopied hjor hjduplicated, hjor hjposted hjtohja hjpublicly 2
hjaccessible
website, hjin hjwhole hjor hjin hjpart.
,Solution hjand hjAnswer hjGuide: hjHoisington, hjAndroid hjBoot hjCamp hjfor hjDevelopers hjUsing hjJAVA: hjA hjGuidehjto hjCreating hjYour hjFirst hjAndroid hjApps hj4e, hj9780357881231,
hjChapter hj2:
Simplify! hjThe hjAndroid hjUser hjInterface
1. Research a particular model of a popular Android smartphone or tablet device and write a
hj hj hj hj hj hj hj hj hj hj hj hj hj hj
hj paragraph on its features, specifications, price, and manufacturer.
hj hj hj hj hj hj hj
Answer: Answers will vary. hj hj hj
2. Name five Android mobile device features not mentioned in Chapter 1.
hj hj hj hj hj hj hj hj hj hj
Answer: Answers will vary. hj hj hj
3. Research and provide three advantages that a Windows 11 user has with Android smartphones and apps.
hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj
Write and explain the advantages in full sentences.
hj hj hj hj hj hj hj
Answer: Answers will vary. hj hj hj
4. Go to the Google Play website and take a screenshot of each of the following app categories:
hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj
hj education, gaming, mapping, travel, and personal hobby. Place the screenshots in a word-
hj hj hj hj hj hj hj hj hj hj hj hj
processing document and label each one to identify them. hj hj hj hj hj hj hj hj
Answer: Answers will vary. hj hj hj
5. Create a timeline of the Android product from the past to present day.
hj hj hj hj hj hj hj hj hj hj hj hj
Answer: Answers will vary. hj hj hj
CASE PROGRAMMING PROJECTS
HJ HJ
Working code is provided in the chapter’s Solutions folders for each case programming project.
hj hj hj hj hj hj hj hj hj hj hj hj hj
Solution and Answer Guide hj hj hj
Hoisington, Android Boot Camp for Developers Using JAVA: A Guide to Creating Your First Android
hj hj hj hj hj hj hj hj hj hj hj hj hj hj
Apps 4e, 9780357881231, Chapter 2: Simplify! The Android User Interface
hj hj hj hj hj hj hj hj hj hj
TABLE OF CONTENTS HJ HJ
Developer FAQs ........................................................................................................................................ 1
hj
Beyond the Book ...................................................................................................................................... 2
hj hj
Case Programming Projects ...................................................................................................................... 3
hj hj
© hj2023 hjCengage. hjAll hjRights hjReserved. hjMay hjnot hjbe hjscanned, hjcopied hjor hjduplicated, hjor hjposted hjtohja hjpublicly 3
hjaccessible
website, hjin hjwhole hjor hjin hjpart.
, Solution hjand hjAnswer hjGuide: hjHoisington, hjAndroid hjBoot hjCamp hjfor hjDevelopers hjUsing hjJAVA: hjA hjGuidehjto hjCreating hjYour hjFirst hjAndroid hjApps hj4e, hj9780357881231,
hjChapter hj2:
Simplify! hjThe hjAndroid hjUser hjInterface
DEVELOPER FAQS HJ
1. What are the three components used in this chapter? (2.1)
hj hj hj hj hj hj hj hj hj
Answer: TextView, ImageView, and Button hj hj hj hj
2. If you were creating an app in many different languages, would you have to write the entire program
hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj
from scratch for each language? What part of the program would stay the same? What part of the
hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj
hj program would be different? (2.2) hj hj hj hj
Answer: No. You can keep all the same Java classes; just use different strings.xml files for
hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj
hj each language display.hj hj
3. In which subfolder in the Android project view are the XML files stored? (2.1)
hj hj hj hj hj hj hj hj hj hj hj hj hj
Answer: layout hj
4. In the chapter’s example project, which kind of layout was used to lay out the components
hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj
on the emulator? (2.3)
hj hj hj hj
Answer: ConstraintLayout hj
5. What is the term that describes the screen size, configuration, or physical layout of a device? (2.1)
hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj
Answer: form factor hj hj
6. What are the building blocks of an Android layout that attach or align a component to the screen
hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj
hj either by attaching it vertically and horizontally to the edges of the screen or by aligning it with
hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj
hj another component? (2.3) hj hj
Answer: constraints hj
7. Which measurement is most preferred for text size? Why? (2.3)
hj hj hj hj hj hj hj hj hj
Answer: sp. If a user has selected sp and set up an Android phone to display a large font size for
hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj
hj more clarity and easier visibility, the font in the app will be scaled to meet the user’s size
hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj hj
hj preference.
8. What does px stand for? (2.3)
hj hj hj hj hj
Answer: pixel hj
9. What does sp stand for? (2.3)
hj hj hj hj hj
© hj2023 hjCengage. hjAll hjRights hjReserved. hjMay hjnot hjbe hjscanned, hjcopied hjor hjduplicated, hjor hjposted hjtohja hjpublicly 4
hjaccessible
website, hjin hjwhole hjor hjin hjpart.