PayPal Interview Question

Look at the code (Activity or Fragment) and describe issues in this code, and what you would do better.

Interview Answer

Anonymous

Mar 20, 2024

I explained why it is not a good idea to run networking code inside of a Lifecycle Observer like Activity/Fragment, and I explained how to use a ViewModel with a Repository layer.