Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Android Studio 4.0 Development Essentials - Kotlin Edition

You're reading from  Android Studio 4.0 Development Essentials - Kotlin Edition

Product type Book
Published in Oct 2020
Publisher Packt
ISBN-13 9781800560437
Pages 817 pages
Edition 1st Edition
Languages
Author (1):
Neil Smyth Neil Smyth
Profile icon Neil Smyth
Toc

Table of Contents (97) Chapters close

1. Introduction 2. Setting up an Android Studio Development Environment 3. Creating an Example Android App in Android Studio 4. Creating an Android Virtual Device (AVD) in Android Studio 5. Using and Configuring the Android Studio AVD Emulator 6. A Tour of the Android Studio User Interface 7. Testing Android Studio Apps on a Physical Android Device 8. The Basics of the Android Studio Code Editor 9. An Overview of the Android Architecture 10. The Anatomy of an Android Application 11. An Introduction to Kotlin 12. Kotlin Data Types,Variables and Nullability 13. Kotlin Operators and Expressions 14. Kotlin Flow Control 15. An Overview of Kotlin Functions and Lambdas 16. The Basics of Object Oriented Programming in Kotlin 17. An Introduction to Kotlin Inheritance and Subclassing 18. An Overview of Android View Binding 19. Understanding Android Application and Activity Lifecycles 20. Handling Android Activity State Changes 21. Android Activity State Changes by Example 22. Saving and Restoring the State of an Android Activity 23. Understanding Android Views, View Groups and Layouts 24. A Guide to the Android Studio Layout Editor Tool 25. A Guide to the Android ConstraintLayout 26. A Guide to using ConstraintLayout in Android Studio 27. Working with ConstraintLayout Chains and Ratios in Android Studio 28. An Android Studio Layout Editor ConstraintLayout Tutorial 29. Manual XML Layout Design in Android Studio 30. Managing Constraints using Constraint Sets 31. An Android ConstraintSet Tutorial 32. A Guide to using Apply Changes in Android Studio 33. An Overview and Example of Android Event Handling 34. Android Touch and Multi-touch Event Handling 35. Detecting Common Gestures using the Android Gesture Detector Class 36. Implementing Custom Gesture and Pinch Recognition on Android 37. An Introduction to Android Fragments 38. Using Fragments in Android Studio - An Example 39. Modern Android App Architecture with Jetpack 40. An Android Jetpack ViewModel Tutorial 41. An Android Jetpack LiveData Tutorial 42. An Overview of Android Jetpack Data Binding 43. An Android Jetpack Data Binding Tutorial 44. An Android ViewModel Saved State Tutorial 45. Working with Android Lifecycle-Aware Components 46. An Android Jetpack Lifecycle Awareness Tutorial 47. An Overview of the Navigation Architecture Component 48. An Android Jetpack Navigation Component Tutorial 49. Creating and Managing Overflow Menus on Android 50. An Introduction to MotionLayout 51. An Android MotionLayout Editor Tutorial 52. A MotionLayout KeyCycle Tutorial 53. Working with the Floating Action Button and Snackbar 54. Creating a Tabbed Interface using the TabLayout Component 55. Working with the RecyclerView and CardView Widgets 56. An Android RecyclerView and CardView Tutorial 57. A Layout Editor Sample Data Tutorial 58. Working with the AppBar and Collapsing Toolbar Layouts 59. An Android Studio Master/Detail Flow Tutorial 60. An Overview of Android Intents 61. Android Explicit Intents – A Worked Example 62. Android Implicit Intents – A Worked Example 63. Android Broadcast Intents and Broadcast Receivers 64. A Basic Overview of Threads and AsyncTasks 65. An Introduction to Kotlin Coroutines 66. An Android Kotlin Coroutines Tutorial 67. An Overview of Android Started and Bound Services 68. Implementing an Android Started Service – A Worked Example 69. Android Local Bound Services – A Worked Example 70. Android Remote Bound Services – A Worked Example 71. An Android Notifications Tutorial 72. An Android Direct Reply Notification Tutorial 73. Foldable Devices and Multi-Window Support 74. An Overview of Android SQLite Databases 75. The Android Room Persistence Library 76. An Android TableLayout and TableRow Tutorial 77. An Android Room Database and Repository Tutorial 78. Accessing Cloud Storage using the Android Storage Access Framework 79. An Android Storage Access Framework Example 80. Video Playback on Android using the VideoView and MediaController Classes 81. Android Picture-in-Picture Mode 82. An Android Picture-in-Picture Tutorial 83. Making Runtime Permission Requests in Android 84. Android Audio Recording and Playback using MediaPlayer and MediaRecorder 85. Working with the Google Maps Android API in Android Studio 86. Printing with the Android Printing Framework 87. An Android HTML and Web Content Printing Example 88. A Guide to Android Custom Document Printing 89. An Introduction to Android App Links 90. An Android Studio App Links Tutorial 91. A Guide to the Android Studio Profiler 92. An Android Biometric Authentication Tutorial 93. Creating, Testing and Uploading an Android App Bundle 94. An Overview of Android Dynamic Feature Modules 95. An Android Studio Dynamic Feature Tutorial 96. An Overview of Gradle in Android Studio Index

20.9 Summary

All activities are derived from the Android Activity class which, in turn, contains a number of lifecycle methods that are designed to be called by the runtime system when the state of an activity changes. Similarly, the Fragment class contains a number of comparable methods. By overriding these methods, activities and fragments can respond to state changes and, where necessary, take steps to save and restore the current state of both the activity and the application. Lifecycle state can be thought of as taking two forms. The persistent state refers to data that needs to be stored between application invocations (for example to a file or database). Dynamic state, on the other hand, relates instead to the current appearance of the user interface.

Although lifecycle methods have a number of limitations that can be avoided by making use of lifecycle-aware components, an understanding of these methods is important in order to fully understand the new approaches to lifecycle...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime}