Lab Viva Questions
Lab Viva Questions
2. What is an APK?
APK stands for Android Package Kit. It is the file format used by the Android operating
system for distribution and installation of mobile apps, middleware, and system files.
37. What are some common practices for improving the performance of an Android
application?
Common practices include minimizing the use of memory and CPU, optimizing layouts,
using efficient data structures, reducing the number of UI elements, avoiding memory leaks,
and using background threads for long-running operations.
40. How do you handle different screen sizes and densities in Android?
Different screen sizes and densities are handled by providing multiple layout and resource files
optimized for different screen configurations. These are placed in specific resource directories
(e.g., `res/layout-sw600dp`, `res/drawable-hdpi`) and Android automatically selects the
appropriate resources based on the device's screen characteristics.