Share
Jerome DiMarzio, Jerome F DiMarzio, Jerome F. DiMarzio, DiMarzio Jerome, Wei Meng Lee, Wei-Meng Lee
Beginning Android Programming
English · Paperback / Softback
Description
Informationen zum Autor J. F. DiMarzio began developing games in BASIC on the TRS-80 Color Computer II in 1984. Today he is a seasoned Android developer with two professional applications and one game on the Android Marketplace, and an industry track record with major organizations including the U.S. Department of Defense and the Walt Disney Company. An accomplished author, he has written 13 books over the past 14 years.Visit us at wrox.com where you have access to free code samples, Programmer to Programmer forums, and discussions on the latest happenings in the industry from around the world. Klappentext A hands-on introduction to the latest release of the Android OS and the easiest Android tools for developersAs the dominant mobile platform today, the Android OS is a powerful and flexible platform for mobile device. The new Android 7 release (New York Cheesecake) boasts significant new features and enhancements for both smartphone and tablet applications. This step-by-step resource takes a hands-on approach to teaching you how to create Android applications for the latest OS and the newest devices, including both smartphones and tablets.* Shows you how to install, get started with, and use Android Studio 2 - the simplest Android developer tool ever for beginners* Addresses how to display notifications, create rich user interfaces, and use activities and intents* Reviews mastering views and menus and managing data* Discusses working with SMS* Looks at packaging and publishing applications to the Android marketBeginning Android Programming with Android Studio starts with the basics and goes on to provide you with everything you need to know to begin to successfully develop your own Android applications. Zusammenfassung A hands-on introduction to the latest release of the Android OS and the easiest Android tools for developers As the dominant mobile platform today, the Android OS is a powerful and flexible platform for mobile device. Inhaltsverzeichnis INTRODUCTION xviiCHAPTER 1: GETTING STARTED WITH ANDROID PROGRAMMING 1What Is Android? 2Android Versions 2Features of Android 3Architecture of Android 4Android Devices in the Market 4The Android Market 7Obtaining the Required Tools 8Android Studio 8Android SDK 14Creating Android Virtual Devices (AVDs) 15The Android Developer Community 24Launching Your First Android Application 24Summary 26CHAPTER 2: USING ANDROID STUDIO FOR ANDROID DEVELOPMENT 29Exploring the IDE 30Using Code Completion 38Debugging Your Application 39Setting Breakpoints 39Navigating Paused Code 43Publishing Your Application 44Generating a Signed APK 44Summary 45CHAPTER 3: ACTIVITIES, FRAGMENTS, AND INTENTS 47Understanding Activities 48Applying Styles and Themes to an Activity 53Hiding the Activity Title 54Displaying a Dialog Window 56Displaying a Progress Dialog 59Linking Activities Using Intents 61Returning Results from an Intent 66Passing Data Using an Intent Object 70Fragments 75Adding Fragments Dynamically 81Life Cycle of a Fragment 84Interactions Between Fragments 88Understanding the Intent Object 92Using Intent Filters 93Displaying Notifi cations 94Summary 98CHAPTER 4: GETTING TO KNOW THE ANDROID USER INTERFACE 101Understanding the Components of a Screen 102Views and ViewGroups 103FrameLayout 104LinearLayout (Horizontal) and LinearLayout (Vertical) 104TableLayout 114RelativeLayout 116FrameLayout 117ScrollView 121Adapting to Display Orientation 124Anchoring Views 125Managing Changes to Screen Orientation 127Persisting State Information During Changes in Configuration 131Detecting Orientation Changes 132Controlling the Orientation of the Activity 132Utilizing the Action Bar 133Adding Action Items to the Action Bar 136Creating the User Interface Programmatically 142Listening for UI Notifi cations 145Summary 145CHAPTER 5: DESIGNING YOUR U...
List of contents
INTRODUCTION xvii
CHAPTER 1: GETTING STARTED WITH ANDROID PROGRAMMING 1
What Is Android? 2
Android Versions 2
Features of Android 3
Architecture of Android 4
Android Devices in the Market 4
The Android Market 7
Obtaining the Required Tools 8
Android Studio 8
Android SDK 14
Creating Android Virtual Devices (AVDs) 15
The Android Developer Community 24
Launching Your First Android Application 24
Summary 26
CHAPTER 2: USING ANDROID STUDIO FOR ANDROID DEVELOPMENT 29
Exploring the IDE 30
Using Code Completion 38
Debugging Your Application 39
Setting Breakpoints 39
Navigating Paused Code 43
Publishing Your Application 44
Generating a Signed APK 44
Summary 45
CHAPTER 3: ACTIVITIES, FRAGMENTS, AND INTENTS 47
Understanding Activities 48
Applying Styles and Themes to an Activity 53
Hiding the Activity Title 54
Displaying a Dialog Window 56
Displaying a Progress Dialog 59
Linking Activities Using Intents 61
Returning Results from an Intent 66
Passing Data Using an Intent Object 70
Fragments 75
Adding Fragments Dynamically 81
Life Cycle of a Fragment 84
Interactions Between Fragments 88
Understanding the Intent Object 92
Using Intent Filters 93
Displaying Notifi cations 94
Summary 98
CHAPTER 4: GETTING TO KNOW THE ANDROID USER INTERFACE 101
Understanding the Components of a Screen 102
Views and ViewGroups 103
FrameLayout 104
LinearLayout (Horizontal) and LinearLayout (Vertical) 104
TableLayout 114
RelativeLayout 116
FrameLayout 117
ScrollView 121
Adapting to Display Orientation 124
Anchoring Views 125
Managing Changes to Screen Orientation 127
Persisting State Information During Changes in Configuration 131
Detecting Orientation Changes 132
Controlling the Orientation of the Activity 132
Utilizing the Action Bar 133
Adding Action Items to the Action Bar 136
Creating the User Interface Programmatically 142
Listening for UI Notifi cations 145
Summary 145
CHAPTER 5: DESIGNING YOUR USER INTERFACE WITH VIEWS 147
Using Basic Views 148
TextView View 148
Button, ImageButton, EditText, CheckBox, ToggleButton, RadioButton, and RadioGroup Views 149
ProgressBar View 158
AutoCompleteTextView View 164
Using Picker Views 167
TimePicker View 167
DatePicker View 172
Using List Views to Display Long Lists 175
ListView View 175
Using the Spinner View 184
Understanding Specialized Fragments 186
Using a ListFragment 187
Using a DialogFragment 191
Using a PreferenceFragment 194
Summary 199
CHAPTER 6: DISPLAYING PICTURES AND MENUS WITH VIEWS 203
Using Image Views to Display Pictures 203
ImageView View 204
ImageSwitcher 206
GridView 211
Using Menus with Views 215
Creating the Helper Methods 215
Options Menu 217
Context Menu 220
Using WebView 225
WebView 225
Summary 228
CHAPTER 7: DATA PERSISTENCE 231
Saving and Loading User Preferences 232
Accessing Preferences Using an Activity 232
&nbs
Product details
Authors | Jerome DiMarzio, Jerome F DiMarzio, Jerome F. DiMarzio, DiMarzio Jerome, Wei Meng Lee, Wei-Meng Lee |
Publisher | Wiley, John and Sons Ltd |
Languages | English |
Product format | Paperback / Softback |
Released | 09.12.2016 |
EAN | 9781118705599 |
ISBN | 978-1-118-70559-9 |
No. of pages | 456 |
Dimensions | 186 mm x 233 mm x 21 mm |
Subjects |
Natural sciences, medicine, IT, technology
> IT, data processing
> Programming languages
Informatik, Android, computer science, Programmierung u. Software-Entwicklung, Programming & Software Development |
Customer reviews
No reviews have been written for this item yet. Write the first review and be helpful to other users when they decide on a purchase.
Write a review
Thumbs up or thumbs down? Write your own review.