Pregunta de entrevista de PayPal

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

Respuesta de la entrevista

Anónimo

20 mar 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.