Android Application Development_ A Beginner's Tutorial [Kurniawan 2015-02-16].pdf

(8316 KB) Pobierz
Android Application Development
A Beginner’s Tutorial
Budi Kurniawan
Android Application Development: A Beginner’s Tutorial
First Edition: February 2015
All rights reserved. No part of this book may be reproduced or transmitted in any
form or by any means, electronic or mechanical, including photocopying, recording,
or by any information storage and retrieval system, without written permission from
the publisher, except for the inclusion of brief quotations in a review.
ISBN: 9780992133016
Indexer: Chris Mayle
Trademarks
Oracle and Java are registered trademarks of Oracle and/or it’s affiliates
UNIX is a registered trademark of the Open Group
Apache is a trademark of The Apache Software Foundation.
Firefox is a registered trademark of the Mozilla Foundation.
Google is a trademark of Google, Inc.
Throughout this book the printing of trademarked names without the trademark
symbol is for editorial purpose only. We have no intention of infringement of the
trademark.
Warning and Disclaimer
Every effort has been made to make this book as accurate as possible. The author and
the publisher shall have neither liability nor responsibility to any person or entity
with respect to any loss or damages arising from the information in this book.
About the Author
Budi Kurniawan is known for his clear writing style. A consultant at Brainy Software
Corp., he has written software licensed by Fortune 100 companies and architected and
developed large scale applications for various organizations around the world. He has also
published more than 100 articles in prestigious publications. His other books include the
popular “How Tomcat Works” and “Servlet and JSP: A Tutorial.”
Table of Contents
Introduction
Overview
Application Development in Brief
Android Versions
Online Reference
Which Java Versions Can I Use?
About This Book
Code Download
Chapter 1: Getting Started
Downloading and Installing Android Studio
Creating An Application
Running the Application on the Emulator
The Application Structure
Debuging Your Application
The Android SDK Manager
Creating An Android Virtual Device
Running An Application on A Physical Device
Opening A Project in Android Studio
Using Java 8
Getting Rid of the Support Library
Summary
Chapter 2: Activities
The Activity Lifecycle
ActivityDemo Example
Changing the Application Icon
Using Android Resources
Starting Another Activity
Activity-Related Intents
Summary
Chapter 3: UI Components
Overview
Using the Android Studio UI Tool
Using Basic Components
Toast
AlertDialog
Notifications
Summary
Chapter 4: Layouts
Overview
Zgłoś jeśli naruszono regulamin