Mehr lesen
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...