Share E-Book
Scan to open this page

Scan with your phone to open this page

AuthorAdam Hawke

Key features Create Android applications from seven different categories, with bonus content on releasing applications to the Google Play store. Easy to follow instructions and full example code. No programming experience? No problem. You can create a functioning Android application today. Modern Android programming secrets. The applications covered in this book use the most up to date Kotlin and Android programming techniques, some of which were released just weeks before publication. Applications covered A Notes application that allows the user to write and save notes. A Camera and Photo Filter application that allows the user to capture photos and apply a readymade set of filters to their images. A Weather application that displays the weather for the user’s current location or a city of their choosing. A Maps application that uses various features of the Google Maps API and the device’s sensors to build a treasure hunt game. A Communication application that sends and receives SMS text messages, initiates phone calls and displays the call log history. A Store application that displays products, allows customers to shop in various currencies and facilitates checkout via PayPal and the Braintree Payment API. IMPORTANT: The Braintree Payment API used in this application requires you to have a website where you can upload files so you can authenticate transactions. A Music application that allows the user to manage their music library and play songs from their device. If you are excited to learn how to create modern Android applications then this is the book for you. After reading this book, you will know how to build applications from a wide range of categories and incorporate cutting-edge techniques to make your applications stand out from the crowd. Furthermore, the book includes free bonus chapters on how to debug applications, test applications on real and virtual devices, and deploy applications to the Google Play store so they can be enjoyed by people

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

AI guide
【One-Line Pitch】 A hands-on, project-driven introduction to modern Android development with Kotlin: build seven complete apps—from notes and camera filters to maps, messaging, payments, and music—while picking up the lifecycle, UI, and release skills you need to ship real products. Best for beginners with little or no prior Android experience who learn best by building. 【Book Arc】 - **Opening (~0%–10%)**: Sets expectations and scope—seven app categories plus bonus material on debugging, testing, and publishing to Google Play. Establishes the "learn by building" promise. - **Early (~10%–35%)**: Foundations before code. Introduces Kotlin essentials (classes, objects, `val`/`var`, nullability, functions) and the Android activity/fragment lifecycle, then walks through installing Android Studio, downloading example code, and testing on virtual and real devices. - **Middle (~35%–60%)**: Tooling and workflow. Covers the emulator/AVD Manager, enabling developer options and USB debugging, and using Logcat (including manual `Log.d` output and custom filters) to trace and fix problems. - **Late (~60%–85%)**: The project sequence begins with the Notes app—string resources, a `Note` data class, layouts, View Binding, dialog windows, a RecyclerView of previews, JSON persistence, and a Settings activity with light/dark themes. Later projects escalate into camera/photo filters, weather via OpenWeather, Maps treasure hunt, SMS/calls, a PayPal/Braintree store, and a Room-backed music player. - **Ending (~85%–100%)**: Consolidation and shipping. The music app's media browser service, playback controls, and navigation graph close the project set, followed by bonus chapters on debugging, testing, and deploying to the Google Play store. 【Key Takeaways】 - **Kotlin is the modern default for Android** (Early): concise, expressive, null-safe, and interoperable with Java; Google named it the preferred language in 2019. Understanding classes, objects, and `val`/`var` is the minimum viable foundation. - **The activity/fragment lifecycle governs everything** (Middle): `onCreate` → `onStart` → `onResume` for activities, and `onCreateView` → `onViewCreated` → `onDestroyView` for fragments. Placing logic in the wrong stage is a common source of bugs. - **Tooling fluency accelerates learning** (Middle): AVD Manager for virtual devices, USB debugging for real hardware, and Logcat (with tags and filters) for real-time diagnosis. These are workflow skills, not optional extras. - **Start with the Notes app to internalize fundamentals** (Late): string resources, data classes, View Binding, dialogs, RecyclerView, and JSON persistence recur in every later project—master them here. - **Each project adds a distinct capability layer** (Late): camera permissions and MediaStore, REST/API integration (OpenWeather), Google Maps and sensors, telephony (SMS/calls), payments (PayPal/Braintree), and Room/SQLite with a media browser service. - **Payments have real-world prerequisites** (Late): the Braintree integration requires a website to host authentication files—plan for this before attempting the store app. - **Publishing is part of the craft** (Ending): bonus chapters cover debugging, testing on real and virtual devices, and deploying to Google Play, closing the loop from idea to shipped app. 【Reading Tips】 - **Deep-read the Early foundations and the Notes project**; these establish patterns reused throughout. Skim the tooling setup if you already have Android Studio configured. - **Type the code rather than copying it.** The book emphasizes full example code; reproducing it builds muscle memory and surfaces errors you'd otherwise miss. - **Treat each project as a template.** After finishing one, try extending it (e.g., add a feature to Notes) before moving on—this converts tutorial knowledge into transferable skill. - **Watch for version-sensitive steps.** API level 30, Gradle configuration, and third-party APIs (OpenWeather, Braintree) may have changed since publication; verify current requirements against official docs. - **Don't skip the bonus chapters.** Debugging, testing, and deployment are where hobby projects become publishable apps. 【Coverage Limits】 This guide is based on stratified excerpts covering roughly the first two-thirds of the book (front matter, Kotlin/lifecycle foundations, tooling, and the Notes project) plus the table of contents for later projects. Detailed implementation of the camera, weather, maps, communication, store, and music apps is not covered in the excerpts, so specifics of those chapters are summarized from the contents rather than verified in depth.
Excerpt 1
urthermore, the book includes free bonus chapters on how to debug applications, test applications on real and virtual devices, and deploy applications to the...
View in text
Excerpt 2
accuracy of this information. www.codersguidebook.com
View in text
Excerpt 3
nt and layout Preparing the Checkout adapter Displaying the user’s shopping basket Calculating the total price of the user’s order Setting up the Braintree p...
View in text
Excerpt 4
tage once the activity is ready to handle user interactions. The activity will then occupy the system foreground for as long as it is visible to the user. Th...
View in text
Excerpt 5
pp has logged since it was last connected to Android Studio. Hence, if you are testing an app and it crashes, simply plug the device back into your computer...
View in text
Excerpt 6
be stored in a variable and accessed elsewhere in your code. The example below creates an instance of the Note class with a title value of “To-do list” and c...
View in text
Excerpt 7
create a Kotlin class that saves the user’s input as a note. To create a new Kotlin class, navigate through Project > app > java then right-click the folder...
View in text
Excerpt 8
l load notes and allow the user to delete them if they wish. Like before, navigate through Project > app > java then right-click the folder with your project...
View in text
Tags
AI categories
ProgrammingMobileKotlin
Publisher: Self-published
Publish Year: 2022
Language: English
File Format: EPUB
File Size: 27.1 MB