Skip to Content
Android programming for beginners: learn all the Java and Android skills you need to start making powerful mobile applications

Android programming for beginners: learn all the Java and Android skills you need to start making powerful mobile applications

Horton, John, author

Annotation Learn all the Java and Android skills you need to start making powerful mobile applicationsAbout This Book Kick-start your Android programming career, or just have fun publishing apps to the Google Play marketplace A first-principles introduction to Java, via Android, which means you'll be able to start building your own applications from scratch Learn by example and build three real-world apps and over 40 mini apps throughout the bookWho This Book Is ForAre you trying to start a career in programming, but haven't found the right way in? Do you have a great idea for an app, but don't know how to make it a reality? Or maybe you're just frustrated that to learn Android, you must know java. If so, Android Programming for Beginners is for you. You don't need any programming experience to follow along with this book, just a computer and a sense of adventure. What You Will Learn Master the fundamentals of coding Java for Android Install and set up your Android development environment Build functional user interfaces with the Android Studio visual designer Add user interaction, data captures, sound, and animation to your apps Manage your apps' data using the built-in Android SQLite database Find out about the design patterns used by professionals to make top-grade applications Build, deploy, and publish real Android applications to the Google Play marketplaceIn DetailAndroid is the most popular OS in the world. There are millions of devices accessing tens of thousands of applications. It is many people's entry point into the world of technology; it is an operating system for everyone. Despite this, the entry-fee to actually make Android applications is usually a computer science degree, or five years' worth of Java experience. Android Programming for Beginners will be your companion to create Android applications from scratchwhether you're looking to start your programming career, make an application for work, be reintroduced to mobile development, or are just looking to program for fun. We will introduce you to all the fundamental concepts of programming in an Android context, from the Java basics to working with the Android API. All examples are created from within Android Studio, the official Android development environment that helps supercharge your application development process. After this crash-course, we'll dive deeper into Android programming and you'll learn how to create applications with a professional-standard UI through fragments, make location-aware apps with Google Maps integration, and store your user's data with SQLite. In addition, you'll see how to make your apps multilingual, capture images from a device's camera, and work with graphics, sound, and animations too. By the end of this book, you'll be ready to start building your own custom applications in Android and Java. Style and approachWith more than 40 mini apps to code and run, Android Programming for Beginners is a hands-on guide to learning Android and Java. Each example application demonstrates a different aspect of Android programming. Alongside these mini apps, we push your abilities by building three larger applications to demonstrate Android application development in context

eBook, Electronic resource, Book. English. Electronic books.
Published Birmingham, UK : Packt Publishing 2015
Rate this

This resource is available electronically from the following locations

Details

Statement of responsibility: John Horton
ISBN: 1785883267, 1785889036, 9781785883262, 9781785889035
EAN: 9781785883262
Note: Online resource; title from title page (viewed January 25, 2016).
Note: Includes index.
Physical Description: 1 online resource : illustrations
Other Number: 9781785883262
Series: Community experience distilled
Subject: Android (Electronic resource); Smartphones Programming.; Application software Development.; Tablet computers Programming.; COMPUTERS Software Development & Engineering General.
Series Title: Community experience distilled.
Local note: eBooks on EBSCOhost EBSCO eBooks for FE Collection (UK)

Contents

  1. Cover
  2. Copyright
  3. Credits
  4. About the Author
  5. About the Reviewers
  6. www.PacktPub.com
  7. Table of Contents
  8. Preface
  9. Chapter 1: The First App
  10. How Java and Android work together
  11. The Android API
  12. Java is object-oriented
  13. What exactly is Android?
  14. The development environment
  15. A note to the existing developers who use Eclipse
  16. The JDK
  17. What if I already have Java?
  18. Installing the JDK
  19. Setting up Android Studio
  20. What makes an Android app
  21. Android resources
  22. The structure of Android's Java code
  23. Android packages
  24. Our first Android app
  25. Creating the project
  26. A note on version controlling.
  27. Deploying and testing the appDeploying to an emulator; Deploying to a real Android device; FAQ; Summary; Chapter 2: Java
  28. First Contact; Examining the log output; Exploring the project assets and code; Examining the layout file; Improving our app and deploying again; Modifying the UI; Meet Java; Java comments; Sending messages; Writing our first Java code; Writing our own Java methods; Examining the log output; FAQ; Summary; Chapter 3: Exploring Android Studio; The Android Studio guided tour; Parts of the UI; The console; More console features; The project explorer.
  29. Transforming the editor into a design studioE1
  30. the Preview toolbar; E2
  31. exploring the palette; E3
  32. the layout preview; E4
  33. the Component Tree; E5
  34. the Properties window; E6
  35. text and design view tabs; The project folder and file structure; FAQ; Summary; Chapter 4: Designing Layouts; Exploring Android UI design; Structure of a UI design; Configuring and using widgets; Widget properties; Experimenting with widgets; Containing widgets in layouts; RelativeLayout; Using LinearLayout; Summary; Chapter 5: Real-World Layouts; Building a real-world UI; Creating a tablet emulator.
  36. List-detail layout with scrollView and LinearLayoutDesigning a form with RelativeLayout; Summary; Chapter 6: The Life and Times of an Android App; Introduction to the Android lifecycle; A simplified explanation of the Android lifecycle; Lifecycle phases
  37. what we need to know; Lifecycle phases
  38. what we need to do; The lifecycle demonstration app; Some other overridden methods; The structure of Java code
  39. revisited; Summary; Chapter 7: Coding in Java Part 1
  40. Variables, Decisions, and Loops; Java is everywhere; Syntax and jargon; More code comments; Storing and using data with variables.
  41. Types of variablesPrimitive types; Reference types; Variable declaration; Variable initialization; Changing values in variables with operators; Expressing yourself demo app; Decisions; Indenting our code; More operators; If they come over the bridge, shoot them; Else do this instead; Switching to make decisions; The Switch Demo app; Repeating code with loops; While loops; Breaking out of a loop; Continue; Do while loops; For loops; Loops demo app; Summary; Chapter 8: Coding in Java Part 2
  42. Methods; Methods revisited; The method structure; Modifiers; Return types; The name of a method.