Home Page Icon
Home Page
Table of Contents for
2.2. Technologies Overview
Close
2.2. Technologies Overview
by Abbey Deitel, Harvey Deitel, Paul Deitel
Android™ How to Program, Second Edition
Pedagogic Features
Software Used in Android How to Program, 2/e
Instructor Resources
Before You Begin
Acknowledgments
Reviewers of the Content from Android How to Program and Android for Programmers: An App-Driven Approach Recent Editions
About the Authors
Deitel® Dive-Into® Series Programming Languages Training
Before You Begin
Font and Naming Conventions
Installing the Java Development Kit (JDK)
Android Integrated Development Environment (IDE) Options
Installing the Android SDK/ADT Bundle
Installing Android Studio
Set the Java Compiler Compliance Level and Show Line Numbers
Android 4.3 SDK
Creating Android Virtual Devices (AVDs)
(Optional) Setting Up an Android Device for Development
A Note Regarding the Android Development Tools
1. Introduction to Android
1.1. Introduction
App-Driven Approach
1.3. Android Features
Openness and Open Source
Java
Multitouch Screen
Gestures
Built-in Apps
Web Services
1.4. Android Operating System
Android Version Naming Convention
1.4.1. Android 2.2 (Froyo)
1.4.2. Android 2.3 (Gingerbread)
1.4.3. Android 3.0 through 3.2 (Honeycomb)
1.4.4. Android 4.0 through 4.0.4 (Ice Cream Sandwich)
1.4.5. Android 4.1–4.3 (Jelly Bean)
1.4.6. Android 4.4 (KitKat)
1.5. Downloading Apps from Google Play
1.6. Packages
Android SDK/ADT Bundle
Android Studio
Android Development Tools (ADT) Plugin for Eclipse
The Android Emulator
1.8. Object-Oriented Programming: A Quick Refresher
1.8.2. Methods and Classes
1.8.3. Instantiation
1.8.4. Reuse
1.8.5. Messages and Method Calls
1.8.6. Attributes and Instance Variables
1.8.7. Encapsulation
1.8.8. Inheritance
1.8.9. Object-Oriented Analysis and Design (OOAD)
1.9. Test-Driving the Doodlz App in an Android Virtual Device (AVD)
Android SDK/ADT Bundle and Android Studio IDEs
1.9.1. Running the Doodlz App in the Nexus 4 Smartphone AVD
1.9.2. Running the Doodlz App in a Tablet AVD
1.9.3. Running the Doodlz App on an Android Device
1.10. Building Great Android Apps
1.11. Android Development Resources
1.12. Wrap-Up
Self-Review Exercises
Answers to Self-Review Exercises
2. Welcome App
2.1. Introduction
2.2. Technologies Overview
2.2.1. Android Developer Tools IDE
2.2.3. App Resources
2.2.4. Accessibility
2.2.5. Internationalization
2.3. Creating an App
2.3.1. Launching the Android Developer Tools IDE
2.3.2. Creating a New Project
2.3.3. New Android Application Dialog
2.3.4. Configure Project Step
2.3.5. Configure Launcher Icon Step
2.3.6. Create Activity Step
2.3.7. Blank Activity Step
2.4. Android Developer Tools Window
2.4.1. Package Explorer Window
2.4.3. Outline Window
2.4.4. App Resource Files
2.4.5. Graphical Layout Editor
2.4.6. The Default GUI
2.5. Building the App’s GUI with the Graphical Layout Editor
2.5.1. Adding Images to the Project
2.5.2. Changing the Id Property of the RelativeLayout and the TextView
2.5.3. Configuring the TextView
2.5.4. Adding ImageViews to Display the Images
2.7. Making Your App Accessible
Testing the App with TalkBack Enabled
Learning More About Accessibility
2.8. Internationalizing Your App
Localization
Naming the Folders for Localized Resources
Adding a Localization Folder to the App’s Project
Copying the strings.xml File into the values-es Folder
Testing the App in Spanish
Returning the AVD (or Device) to English
TalkBack and Localization
Localization Checklist
2.9. Wrap-Up
Self-Review Exercises
Answers to Self-Review Exercises
3. Tip Calculator App
3.1. Introduction
3.2. Test-Driving the Tip Calculator App
Entering a Bill Total
Selecting a Custom Tip Percentage
3.3.1. Class Activity
3.3.2. Activity Lifecycle Methods
3.3.3. Arranging Views with LinearLayout and GridLayout
3.3.4. Creating and Customizing the GUI with the Graphical Layout Editor and the Outline and Properties Windows
3.3.5. Formatting Numbers as Locale-Specific Currency and Percentage Strings
3.3.6. Implementing Interface TextWatcher for Handling EditText Text Changes
3.3.7. Implementing Interface OnSeekBarChangeListener for Handling SeekBar Thumb Position Changes
3.3.8. AndroidManifest.xml
3.4. Building the App’s GUI
3.4.1. GridLayout Introduction
3.4.2. Creating the TipCalculator Project
3.4.3. Changing to a GridLayout
3.4.4. Adding the TextViews, EditText, SeekBar and LinearLayouts
3.4.5. Customizing the Views to Complete the Design
3.5. Adding Functionality to the App
The package and import Statements
Tip Calculator App Activity and the Activity Lifecycle
Class Variables and Instance Variables
Overriding Method onCreate of Class Activity
onCreate’s Bundle Parameter
Generated R Class Contains Resource IDs
Getting References to the Widgets
Displaying Initial Values in the TextViews
Registering the Event Listeners
Method updateStandard of Class MainActivity
Method updateCustom of Class MainActivity
Overriding Method onProgressChanged of Interface OnSeekBarChangeListener
Overriding Methods onStartTrackingTouch and onStopTrackingTouch of Interface OnSeekBarChangeListener
Anonymous Inner Class That Implements Interface TextWatcher
Overriding Method onTextChanged of Interface TextWatcher
Other Methods of the amountEditTextWatcher TextWatcher
3.6. AndroidManifest.xml
Forcing the Soft Keypad to Always Display for MainActivity
3.7. Wrap-Up
Self-Review Exercises
Answers to Self-Review Exercises
4. Twitter® Searches App
4.1. Introduction
4.2. Test-Driving the App
4.2.2. Adding a Favorite Search
4.2.3. Viewing Twitter Search Results
4.2.4. Editing a Search
4.2.5. Sharing a Search
4.2.6. Deleting a Search
4.2.7. Scrolling Through Saved Searches
4.3. Technologies Overview
4.3.1. ListView
4.3.2. ListActivity
4.3.3. Customizing a ListActivity’s Layout
4.3.4. ImageButton
4.3.6. Intents for Launching Other Activities
4.3.7. AlertDialog
4.3.8. AndroidManifest.xml
4.4. Building the App’s GUI
4.4.2. activity_main.xml Overview
4.4.3. Adding the GridLayout and Components
4.4.4. Graphical Layout Editor Toolbar
4.4.5. ListView Item’s Layout: list_item.xml
4.5. Building the MainActivity Class
4.5.1. package and import Statements
4.5.2. Extending ListActivity
4.5.3. Fields of Class MainActivity
4.5.5. Anonymous Inner Class That Implements the saveButton’s OnClickListener to Save a New or Updated Search
4.5.6. addTaggedSearch Method
4.5.7. Anonymous Inner Class That Implements the ListView’s OnItemClickListener to Display Search Results
4.5.8. Anonymous Inner Class That Implements the ListView’s OnItemLongClickListener to Share, Edit or Delete a Search
4.5.9. shareSearch Method
4.5.10. deleteSearch Method
4.6. AndroidManifest.xml
4.7. Wrap-Up
Self-Review Exercises
Answers to Self-Review Exercises
Exercises
Project Exercises
Advanced Project Exercises
5. Flag Quiz App
5.1. Introduction
5.2. Test-Driving the Flag Quiz App
5.2.1. Importing the App and Running It
5.2.2. Configuring the Quiz
5.2.3. Taking the Quiz
5.3. Technologies Overview
5.3.1. Menus
5.3.2. Fragments
5.3.4. Managing Fragments
5.3.5. Preferences
5.3.7. Resource Folders
5.3.8. Supporting Different Screen Sizes and Resolutions
5.3.9. Determining the Screen Size
5.3.11. Using a Handler to Execute a Runnable in the Future
5.3.12. Applying an Animation to a View
5.3.13. Logging Exception Messages
5.3.15. Java Data Structures
5.4. Building the GUI and Resource Files
5.4.1. Creating the Project
5.4.2. strings.xml and Formatted String Resources
5.4.3. arrays.xml
5.4.5. dimens.xml
5.4.6. activity_settings.xml Layout
5.4.7. activity_main.xml Layout for Phone and Tablet Portrait Orientation
5.4.8. fragment_quiz.xml Layout
5.4.9. activity_main.xml Layout for Tablet Landscape Orientation
5.4.10. preferences.xml for Specifying the App’s Settings
5.4.11. Creating the Flag Shake Animation
5.5.1. package Statement, import Statements and Fields
5.5.2. Overridden Activity Method onCreate
5.5.4. Overridden Activity Method onCreateOptionsMenu
5.5.5. Overridden Activity Method onOptionsItemSelected
5.5.6. Anonymous Inner Class That Implements OnSharedPreferenceChangeListener
5.6.1. package Statement and import Statements
5.6.2. Fields
5.6.3. Overridden Fragment Method onCreateView
5.6.4. Method updateGuessRows
5.6.5. Method updateRegions
5.6.6. Method resetQuiz
5.6.7. Method loadNextFlag
5.6.8. Method getCountryName
5.6.9. Anonymous Inner Class That Implements OnClickListener
5.6.10. Method disableButtons
5.7. SettingsFragment Class
5.8. SettingsActivity Class
5.9. AndroidManifest.xml
5.10. Wrap-Up
Self-Review Exercises
Answers to Self-Review Exercises
Exercises
6. Cannon Game App
6.2. Test-Driving the Cannon Game App
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Prev
Previous Chapter
2.1. Introduction
Next
Next Chapter
2.2.1. Android Developer Tools IDE
2.2. Technologies Overview
This section introduces the technologies you’ll learn in this chapter.
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset