Android programming for beginners learn all the Java and Android skills you need to start making powerful mobile applications
Learn all the Java and Android skills you need to start making powerful mobile applications About 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 abl...
Otros Autores: | |
---|---|
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
Birmingham :
Packt Publishing
2015.
|
Edición: | 1st edition |
Colección: | Community experience distilled.
|
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009629924506719 |
Tabla de Contenidos:
- Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: The First App; How Java and Android work together; The Android API; Java is object-oriented; What exactly is Android?; The development environment; A note to the existing developers who use Eclipse; The JDK; What if I already have Java?; Installing the JDK; Setting up Android Studio; What makes an Android app; Android resources; The structure of Android's Java code; Android packages; Our first Android app; Creating the project; A note on version controlling
- Deploying and testing the appDeploying to an emulator; Deploying to a real Android device; FAQ; Summary; Chapter 2: Java - 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
- Transforming the editor into a design studioE1 - the Preview toolbar; E2 - exploring the palette; E3 - the layout preview; E4 - the Component Tree; E5 - the Properties window; E6 - 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
- 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 - what we need to know; Lifecycle phases - what we need to do; The lifecycle demonstration app; Some other overridden methods; The structure of Java code - revisited; Summary; Chapter 7: Coding in Java Part 1 - Variables, Decisions, and Loops; Java is everywhere; Syntax and jargon; More code comments; Storing and using data with variables
- 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 - Methods; Methods revisited; The method structure; Modifiers; Return types; The name of a method
- Parameters