Category: Java

  • Handling Android Activity State Changes in Java

    Based on the information outlined in the chapter entitled Android App and Activity Lifecycles, it is now evident that the activities and fragments that make up an application pass through various different states during the application’s lifespan. The Android runtime system imposes the change from one state to the other and is, therefore, largely beyond…

  • Android View Binding in Java

    An essential part of developing Android apps involves the interaction between the code and the views that make up the user interface layouts. This chapter will look at the options available for gaining access to layout views in code, emphasizing an option known as view binding. Once the basics of view bindings have been covered,…

  • A Java Android Studio Example App

    The preceding chapters of this book have covered the steps necessary to configure an environment suitable for developing Android applications using the Android Studio IDE. Before moving on to slightly more advanced topics, now is a good time to validate that all required development packages are installed and functioning correctly. The best way to achieve…

  • Android Studio Giraffe Essentials Java Edition