Description
Good news: Android and iOS have a lot in common. Bad news: they have seriously big differences in approach, style and philosophy. This is a book + code bundle, including a comprehensive introduction to the Android ecosystem for iOS developers. DRM-free, in PDF (283 pages), EPUB, MOBI (Kindle) and self-contained HTML formats! Read it on any device, without restrictions.
The bundled source code includes 46 projects with over 8000 lines of Java code, ready to be opened, executed and extended with Android Studio, including a small introduction to Kotlin!
Table of Contents
- Part 1: Introduction
- Toolchain
1.1. TL;DR
1.2. Java
1.3. Android Application Startup
1.4. Android Studio
1.5. Kotlin
1.6. SDK Manager
1.7. AVD Manager
1.8. Gradle
1.9. Other Tools
1.10. Summary - Debugging
2.1. TL;DR
2.2. Enabling Exception Breakpoints
2.3. Enabling USB Debugging
2.4. Enabling WiFi Debugging
2.5. Working on the Command Line
2.6. Using logcat and PID Cat
2.7. Using NSLogger
2.8. Summary
- Part 2: User Interfaces
- User Interface
3.1. TL;DR
3.2. UI Design Guidelines
3.3. The Support Library
3.4. Activities
3.5. Intents
3.6. Fragments
3.7. Summary - Graphics
4.1. TL;DR
4.2. Graphics on Android
4.3. Custom Views
4.4. Persisting the States of Views
4.5. Gestures
4.6. Animations
4.7. Using PaintCode
4.8. Summary
- Part 3: Managing Data
- Networking
5.1. TL;DR
5.2. Consuming REST Web Services
5.3. Parsing JSON Data
5.4. Parsing JSON with Gson
5.5. Parsing XML Data
5.6. Displaying Data in Lists
5.7. Retrofit
5.8. Summary - Storage
6.1. TL;DR
6.2. Bundled Resources
6.3. Downloading Files
6.4. Saving and Reading Files Locally
6.5. Storing User Preferences
6.6. SQLite
6.7. OrmLite
6.8. Realm
6.9. Summary
- Part 4: Sensors and Multimedia
- Sensors
7.1. TL;DR
7.2. Getting a List of Sensors
7.3. Using the Accelerometer
7.4. Using the Compass
7.5. Location Information
7.6. Retrieving Address Information
7.7. Summary - Multimedia
8.1. TL;DR
8.2. Taking Pictures
8.3. Recording Video
8.4. Picking Images
8.5. Recording and playing audio
8.6. Speech Synthesizer
8.7. Summary
- Part 5: High Quality Apps
- Architecture
9.1. TL;DR
9.2. Principles of Good Android Architecture
9.3. Dagger
9.4. RxAndroid
9.5. Summary - Testing
10.1. TL;DR
10.2. Defensive Programming Techniques
10.3. The Monkey
10.4. Local Unit Testing
10.5. Instrumented Unit Testing
10.6. User Interface Testing
10.7. Code Coverage in Android Studio
10.8. Miscellaneous Tips
10.9. Summary
- Part 6: Wrapping Up
- Conclusion
- Appendix A: Android Studio Shortcuts
- Appendix B: Third Party Android Developer Tools
- Appendix C: TL;DR
- Appendix D: Supported Media Formats
- Bibliography








