Q1
Explain the difference between LiveData and StateFlow in Android. When would you use one over the other, and what are the lifecycle awareness implications?
Why they ask this:* They're assessing your understanding of modern reactive programming patterns in Android, which is critical for building maintainable apps with proper lifecycle management.
Q2
Walk us through how you would implement dependency injection in an Android project. What are the pros and cons of using Hilt versus manual DI or other frameworks?
Why they ask this:* This tests your knowledge of architectural patterns and code organization—essential for scalability and testability in mid-level roles.
Q3
Describe the Android Fragment lifecycle and explain why Fragment transactions require a FragmentManager. What issues have you encountered with Fragment state management?
Why they ask this:* Fragments are core to Android development; this reveals whether you understand complex lifecycle nuances and have practical experience debugging common Fragment problems.
Q4
How would you optimize an Android app that is experiencing ANR (Application Not Responding) errors? What tools and techniques would you use to identify the bottleneck?