Book description
A hands-on guide to Android programming with Spring MVC, Spring Boot, and Spring Security
Key Features
- Build native Android applications with Spring for Android
- Explore Reactive programming, concurrency, and multithreading paradigms for building fast and efficient applications
- Write more expressive and robust code with Kotlin using its coroutines and other latest features
Book Description
As the new official language for Android, Kotlin is attracting new as well as existing Android developers. As most developers are still working with Java and want to switch to Kotlin, they find a combination of these two appealing. This book addresses this interest by bringing together Spring, a widely used Java SE framework for building enterprise-grade applications, and Kotlin.
Learn Spring for Android Application Development will guide you in leveraging some of the powerful modules of the Spring Framework to build lightweight and robust Android apps using Kotlin. You will work with various modules, such as Spring AOP, Dependency Injection, and Inversion of Control, to develop applications with better dependency management. You'll also explore other modules of the Spring Framework, such as Spring MVC, Spring Boot, and Spring Security. Each chapter has practice exercises at the end for you to assess your learning.
By the end of the book, you will be fully equipped to develop Android applications with Spring technologies.
What you will learn
- Get to grips with the basics of the Spring Framework
- Write web applications using the Spring Framework with Kotlin
- Develop Android apps with Kotlin
- Connect a RESTful web service with your app using Retrofilt
- Understand JDBC, JPA, MySQL for Spring and SQLite Room for Android
- Explore Spring Security fundamentals, Basic Authentication, and OAuth2
- Delve into Concurrency and Reactive programming using Kotlin
- Develop testable applications with Spring and Android
Who this book is for
If you're an aspiring Android developer or an existing developer who wants to learn how to use Spring to build robust Android applications in Kotlin, this book is for you. Though not necessary, basic knowledge of Spring will assist with understanding key concepts covered in this book.
Table of contents
- Title Page
- Copyright and Credits
- Dedication
- About Packt
- Contributors
- Preface
- About the Environment
- Overview of Kotlin
- Overview of Spring Framework
- Spring Modules for Android
-
Securing Applications with Spring Security
- Technical requirements
- Spring Security architecture
- The advantages of Spring Security
- Spring Security features
- Spring Security modules
- Securing REST with basic authentication
- Creating an Android app
- Securing REST with Spring Security OAuth2
- Summary
- Questions
- Further reading
-
Accessing the Database
- Technical requirements
- Database
- Database management system
- Data access in the Spring
- Java database connectivity in Spring
- Creating a sample project using JDBC
- Java Persistence API
- Creating a project using JPA
- Database of client-side application
- Architecture components
-
Creating an Android app
- Gradle information
- Gradle dependencies
- Creating entity
- Creating the DAO
- Creating the LiveData class
- Creating a Room database
- Populating the database
- Implementing the repository
- Creating the ViewModel
- Creating new activity
- Creating custom RecyclerView adapter
- Modifying main activity
- Run the app
- Summary
- Questions
- Further reading
- Concurrency
- Reactive Programming
-
Creating an Application
- Technical requirements
- Project idea
- Server side
- Client side
- Summary
- Questions
- Further reading
- Testing an Application
- Assessments
- Other Books You May Enjoy
Product information
- Title: Learn Spring for Android Application Development
- Author(s):
- Release date: January 2019
- Publisher(s): Packt Publishing
- ISBN: 9781789349252
You might also like
book
Building Applications with Spring 5 and Vue.js 2
Become efficient in both frontend and backend web development with Spring and Vue Key Features Connect …
book
Spring MVC: Designing Real-World Web Applications
Unleash the power of Spring MVC and build enterprise-grade, lightning-fast web applications About This Book Configure …
book
Practical JSF in Java EE 8: Web Applications in Java for the Enterprise
Master the Java EE 8 and JSF (JavaServer Faces) APIs and web framework with this practical, …
book
Spring 5 Recipes: A Problem-Solution Approach
Solve all your Spring 5 problems using complete and real-world code examples. When you start a …