android developer interview questions

 1. Activity Lifecycle: If Activity B is launched on top of Activity A, what lifecycle methods are called (here is a complete guide!)

2. Fragment Lifecycle: Basic fragment lifecycle, fragment lifecycle when activity is popped.

3. View Lifecycle: Basic lifecycle of a view. Difference between onMeasure and onLayout. Difference between invalidate() and requestLayout()

4. Explain different activity launch modes.

5. Difference between a RecyclerView and ListView and how’s one better than the other.

6. Explain MVVM architecture. How is it better than MVP? 

7. Explain Threads, Handlers, Loopers and Handler thread (prepare an example for this question).

8. What are services? What are the different types of services and differences between them?

9. Memory Leaks in Android. How do they occur? How AsyncTask can lead to a memory leak and ways to prevent it.

10. How is an APK compiled? APK compilation process.

11. OnStart vs OnResume

12. What is the use of onSavedInstanceState and when is it called?

13. Kotlin vs Java which is better and why ?

14. Questions about Singleton pattern and what are its drawbacks? How to fix them?

15. What is the use of AndroidManifest.xml ? What are Intent Filters and how are they declared? 

Post a Comment

Previous Post Next Post