The First Line of Code is a must-have for developers who want to learn Android and Kotlin, and the best-seller in China. Knowledge between Android and Kotlin is interspersed in a way that readers are easy to understand and get start:
· Android part covers all the important aspects of the Android platform, such as activity, service, content provider, broadcast receiver, fragment, basic UI, data storage, network, Jetpack and other application-level knowledge.
· Kotlin part covers various aspects of Kotlin, such as standard grammar, common skills, higher-order functions, generics, coroutines, DSL and other language-level knowledge.
In addition, The First Line of Code is a very practicing book, illustrating concepts with a complete weather forecast program. You can use and practice all the knowledge comprehensively after learning and see the actual result for what you have learned through the book.
All contents of the book are quite easy to understand. It might be a good choice for both beginners and experienced developers. Also suitable for college students, college teachers, etc.
Autorentext
Lin Guo. An Android developer working in Microsoft. The Second Android GDE (Google Developer Expert) in China. Engaged in Android development since 2010. With well developing experience and wrote several popular open-source libraries on GitHub.
He maintains a technical blog on CSDN (one of Chinese largest computer technical forum) since 2013 and posted over 100 articles for sharing developing skills. Currently the blog has more than 10 million visits.
First Line of Android (Chinese Edition) is written by him and has been well received by readers since published. The first two editions of this book have already sold more than 250,000 copies, which is the best-seller in books of Android in China.
Inhalt
Chapter 1 Start the Journey - Writing Your First Line of Code
1.1 A Quick Introduction to Android
1.2 Setting up Development Environment
1.3 Build Your First Android Project
1.4 Master the use of Logging Tools
1.5 Summary and Reviews
Chapter 2 Explore New Language - A Quick Introduction to Kotlin
2.1 Introduction to Kotlin
2.2 How to Run Kotlin Code
2.3 The Essence of Programming - Variable and Function
2.4 Program's Logic Control
2.5 Object-Oriented Programming
2.6 Lambda Programming
2.7 Nullable Type System
2.8 Tricks in Kotlin
2.9 Summary and Reviews
Chapter 3 Start with What We can See - Exploring Activity
3.1 What is Activity?
3.2 Basic Usage of Activity
3.3 Navigating between Activities with Intent
3.4 Lifecycle of Activity
3.5 Launch Mode of Activity
3.6 Best Practice of Using Activity
3.7 Kotlin Class - Standard and Static Functions
3.8 Summary and Reviews
Chapter 4 Better Looking Better Apps - Introduction to UI Development
4.1 How to Write User Interface?
4.2 Usage of Common Widgets
4.3 Usage of Main Layouts
4.4 Widget not Enough? Create Your Own Widget
4.5 Powerful and Painful Widget - ListView
4.6 More Powerful and Better Widget - RecyclerView
4.7 Best Practice of Writing User Interface
4.8 Kotlin Class - Lateinit and Sealed Class
4.9 Summary and Reviews
Chapter 5 A Huge Extension of Activity - Exploring Fragment
5.1 What is Fragment?
5.2 Basic Usage of Fragment
5.3 Lifecycle of Fragment
5.4 Inflating Layouts Dynamically
5.5 Best Practice of Using Fragment5.6 Kotlin Class - Extension Functions and Operator Overloading
5.7 Summary and Reviews
Chapter 6 System Scope Loudspeaker - Introduction to Broadcasts
6.1 Broadcast Mechanism in Android
6.2 Receive System Broadcasts
6.3 Send Custom Broadcasts
6.4 Best Practice of Using BroadcastReceiver - Force to Offline
6.5 Kotlin Class - Introduction to Higher-order Functions
6.6 Git Time - Take a Glance at Git
6.7 Summary and Reviews
Chapter 7 Data Saving Solutions - Introduction to Persistence
7.1 Persistence Mechanism in Android
7.2 Using File
7.3 Using SharedPreferences
7.4 Using SQLite
7.5 Best Practice of Using Database
7.6 Kotlin Class - Higher-order Functions in Action
7.7 Summary and Reviews
Chapter 8 Share Data Across Applications - Exploring ContentProvider
8.1 Introduction to ContentProvider
8.2 Runtime Permissions
8.3 Acess Data from Other Applications
8.4 Create Your Own ContentProvider
8.5 Kotlin Class - Generics and Delegation
8.6 Summary and Reviews
Chapter 9 Enrich Your Application - With Features on Real Phone
9.1 Running Application on Real Phone
9.2 Usage of Notifications
9.3 Take Picture from Camera and Album
9.4 Play Audio and Video Files
9.5 Kotlin Class - Write Readable Syntax with infix Notation
9.6 Git Time - Try More Git Skills
9.7 Summary and Reviews
Chapter 10 Background Workers - Exploring Service
10.1 What is Service?
10.2 Android Thread Programming
10.3 Basic Usage of Service10.4 Lifecycle of Service
10.5 Foreground Service and IntentService
10.6 Kotlin Class - Generics in Advanced
10.7 Summary and Reviews
Chapter 11 Exploring the World - With Network Technologies
11.1 Usage of WebView
11.2 Request with HTTP
11.3 Parse XML-formatted Data
11.4 Parse JSON-formatted Data
11.5 Best Practice of Implementing Network Callback
11.6 Usage of Retrofit
11.7 Kotlin Class - Write Concurrent Programs with Coroutines
11.8 Summary and Reviews
Chapter 12 Best UI Experience - Material Design in Action
12.1 What is Material Design?
12.2 Toolbar
12.3 DrawerLayout and NavigationView
12.4 FloatingActionButton and Snackbar
12.5 MaterialCardView
12.6 SwipeRefreshLayout
12.7 CollapsingToolbarLayout
12.8 Kotlin Class - Write Handy Util Functions
12.9 Git Time - Branch and Remote Repository
12.10 Summary and Reviews
Chapter 13 High-quality Developing Components - Exploring Jetpack
13.1 Introduction to Jetpack
13.2 ViewModel
13.3 Lifecycles
13.4 LiveData
13.5 Room
13.6 WorkManager
13.7 Kotlin Class - Make DSL Useful
13.8 Summary and Reviews
Chapter 14 Keep Step Up - More Skills You Need to Know
14.1 Obtain Context Anywhere
14.2 Pass Objects with Intent
14.3 Write Your Own Logging Tool
14.4 Debug Android Programs
14.5 Dark Theme
14.6 Kotlin Class - Convert Codes between Java and Kotlin
14.7 Summary and Reviews
Chapter 15 Real Project Practice - Write an Weather Application
15.1 Analysis before Start
15.2 Git Time - Host Your Codes on GitHub
15.3 Introduction to MVVM
15.4 Search Places around World
15.5 Show Weather Information
15.6 Refresh Weather and Switch Places
15.7 Make Launch Icon for Application
15.8 Generate Signed APK
15.9 More Your can Do
Chapter 16 Write and Publish an Open Source Library - PermissionX
16.1 Analysis before Start
16.2 Write PermissionX
16.3 Test before Publish
16.4 Publish to Jcenter
16.5 Experience Our Work
16.6 Concluding Remarks