Android Development Cheat Sheet 2026
The 30 highest-yield Android Development facts, distilled from real exam questions. Print it, save it as a PDF, or study it here — free, no sign-up.
45 questions
90 min time limit
70.00% to pass
- Which of the following languages is the basis for Android? → JAVA
- How do you specify Constraints for a WorkManager WorkRequest? → Using the Constraints.Builder class
- What annotation marks a class as a Room database entity? → @Entity
- What method must be overridden to provide views in a RecyclerView.Adapter? → onCreateViewHolder
- Which coroutine builder launches a new coroutine and returns a Job? → launch
- What does APK size optimization technique 'code shrinking' do via R8 or ProGuard? → Removes unused classes, fields, methods, and attributes from the compiled output
- Which operating system serves as the Android stack's base? → Linux
- When using DiffUtil with RecyclerView, what is the main performance advantage over calling notifyDataSetChanged()? → It calculates the minimal set of changes and animates only affected items
- Which DataStore type stores typed objects using Protocol Buffers? → Proto DataStore
- What method inflates a layout resource in Android? → Both A and B
- What is the recommended way to run Room database operations off the main thread? → Using Kotlin coroutines with suspend functions
- How do you perform a database migration in Room when the schema changes? → By providing a Migration object with SQL migration scripts
- When using Room database, what should you avoid doing on the main thread to prevent ANR errors? → Running database queries synchronously
- Which of the following is the Android database? → SQLite
- Which of the three basic components of an.apk file is not one of these? → Webkit
- Which file access mode should be used to append data to a file in Android? → MODE_APPEND
- The method can be used to stop an activity. → finish()
- Which attribute controls the visibility of a view in Android XML? → android:visibility
- Which SQL clause is used in a Room @Query to filter results? → WHERE
- Which Jetpack component is the recommended replacement for SharedPreferences? → DataStore
- What is the purpose of the android:exported attribute in AndroidManifest.xml? → To control whether other apps can access the component
- What is the purpose of the Truth assertion library in Android testing? → To provide fluent, readable assertion methods as an alternative to JUnit assertions
- The Content Provider is turned on by . → Using Content Resolver
- Which testing approach tests multiple integrated components together? → Integration testing
- What is the purpose of the include tag in Android XML layouts? → To reuse a layout file inside another layout
- What is the recommended way to load large bitmaps efficiently to avoid OutOfMemoryError in Android? → Use BitmapFactory.Options to subsample the bitmap before decoding
- Which ConstraintLayout feature allows multiple views to be evenly spaced using a chain? → Chain style
- What is the purpose of the EncryptedSharedPreferences in Android? → To encrypt both keys and values stored in SharedPreferences
- What is the activity's parent class? → ContextTheme Wrapper
- You'll need an AVD to make an emulator. What exactly does it mean? → Android Virtual Device
Turn these facts into recall: