Android 5 Programming by Example

Turn your ideas into elegant and powerful mobile applications using the latest Android Studio for the Android Lollipop platform

Android 5 Programming by Example

By Example
Kyle Mew

Turn your ideas into elegant and powerful mobile applications using the latest Android Studio for the Android Lollipop platform
$35.99
$44.99
RRP $35.99
RRP $44.99
eBook
Print + eBook
$12.99 p/month

Get Access

Get Unlimited Access to every Packt eBook and Video course

Enjoy full and instant access to over 3000 books and videos โ€“ youโ€™ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

+ Collection
Free Sample

Book Details

ISBN 139781785288449
Paperback212 pages

Book Description

Android is a mobile operating system that runs on a staggering number of smart phones and tablets. Android offers developers the ability to build rich and innovative applications written using the Java programming language.

Beginning with detailed instructions on how to install and configure the Android SDK, Studio, and Virtual Device Manager, the book moves on to creating a simple, but working, "Hello World" app that can be run on a real device or emulator.

The book then moves on to layouts and the visual design of Lollipop apps. A new app is begun to demonstrate this and expanded as we move further, and, once material design has been introduced, the book moves on to the Java coding aspect and how to write code that responds to user interactions via callback methods such as touchscreen gesture listeners. No book on Lollipop APIs would be complete without explaining how the new Android TV, Wear, and Auto SDK tools work and how they can be utilized to either create new apps or convert those originally written for other platforms.

The book concludes by demonstrating how to package and deploy your finished app on the Google Play store.

Table of Contents

Chapter 1: Setting Up the Development Environment
What is Android 5?
Installing and configuring the development environment
Creating a "Hello World" app
Setting up a virtual device
Summary
Chapter 2: Building a UI
Applying a Material Design theme
Adding animated widgets
Creating alternative layouts
Summary
Chapter 3: Activities and Fragments
Adding a CardView widget
Adding images and text to the layout
Creating a second Activity
Applying Fragments
Adding menus and toolbars
Summary
Chapter 4: Managing RecyclerViews and Their Data
Creating a RecyclerView
Creating an Adapter
Responding to the RecyclerView selections
Summary
Chapter 5: Detecting Touchscreen Gestures
Adding a GestureDetector to a view
Adding a GestureDetector to an Activity
Summary
Chapter 6: Notifications and the Action Bar
Constructing a ViewPager
Adding tabs and dates
Programming notifications
Summary
Chapter 7: Maps, Locations, and Google Services
Building a location-aware app with Google Maps
Summary
Chapter 8: Apps for TVs, Cars, and Wearables
Android Wear
Android TV
Android Auto
Summary
Chapter 9: Camera, Video, and Multimedia
Capturing images
Capturing and playing video
Recording and playing audio
Summary
Chapter 10: Publishing and Marketing
Making apps backward-compatible
Applying Material Design to older platforms
Publishing apps
Generating a signed APK
Distributing by e-mail and websites
In-app billing
Summary

What You Will Learn

  • Set up an effective development environment to create Android apps from scratch
  • Control the layout structure and design and edit code to control screen events
  • Respond to user interaction using Java and XML with your app
  • Keep your users up to date with Android's new notification framework
  • Implement Google APIs such as maps and other Google Services
  • Create apps for televisions, cars, and wearables and build home-screen app widgets
  • Add audio and video playback to your apps using the AudioManager and MediaPlayer classes
  • Program the two new Lollipop widgets, CardView and RecyclerView
  • Compile your apps, distribute them on the Google Play store, and build in a variety of ways to monetize them

Authors

Table of Contents

Chapter 1: Setting Up the Development Environment
What is Android 5?
Installing and configuring the development environment
Creating a "Hello World" app
Setting up a virtual device
Summary
Chapter 2: Building a UI
Applying a Material Design theme
Adding animated widgets
Creating alternative layouts
Summary
Chapter 3: Activities and Fragments
Adding a CardView widget
Adding images and text to the layout
Creating a second Activity
Applying Fragments
Adding menus and toolbars
Summary
Chapter 4: Managing RecyclerViews and Their Data
Creating a RecyclerView
Creating an Adapter
Responding to the RecyclerView selections
Summary
Chapter 5: Detecting Touchscreen Gestures
Adding a GestureDetector to a view
Adding a GestureDetector to an Activity
Summary
Chapter 6: Notifications and the Action Bar
Constructing a ViewPager
Adding tabs and dates
Programming notifications
Summary
Chapter 7: Maps, Locations, and Google Services
Building a location-aware app with Google Maps
Summary
Chapter 8: Apps for TVs, Cars, and Wearables
Android Wear
Android TV
Android Auto
Summary
Chapter 9: Camera, Video, and Multimedia
Capturing images
Capturing and playing video
Recording and playing audio
Summary
Chapter 10: Publishing and Marketing
Making apps backward-compatible
Applying Material Design to older platforms
Publishing apps
Generating a signed APK
Distributing by e-mail and websites
In-app billing
Summary

Book Details

ISBN 139781785288449
Paperback212 pages
Read More