Category: Android Studio

  • An Android Storage Access Framework Example

    As previously discussed, the Storage Access Framework considerably eases the process of integrating cloud-based storage access into Android applications. Consisting of a picker user interface and a set of new intents, access to files stored on document providers such as Google Drive and Box can now be built into Android applications with relative ease. With…

  • Accessing Cloud Storage using the Android Storage Access Framework

    Recent years have seen the wide adoption of remote storage services (otherwise known as “cloud storage”) to store user files and data. Driving this growth are two key factors. One is that most mobile devices now provide continuous, high-speed internet connectivity, thereby making the transfer of data fast and affordable. The second factor is that,…

  • An Overview of Java Threads, Handlers and Executors in Android

    Threads are the cornerstone of any multitasking operating system and can be thought of as mini-processes running within a main process, the purpose of which is to enable at least the appearance of parallel execution paths within applications. In this chapter we will explore the importance of using threads in Android app development and demonstrate…

  • An Android Studio Primary/Detail Flow Tutorial

    This chapter will explain the concept of the Primary/Detail user interface design before exploring, in detail, the elements that make up the Primary/Detail Flow template included with Android Studio. An example application will then be created that demonstrates the steps involved in modifying the template to meet the specific needs of the application developer. The…

  • Creating Android Overflow Menus using Java

    An area of user interface design yet to be covered in this book relates to the concept of menus within an Android application. Menus provide a mechanism for offering additional choices to the user beyond the view components in the interface layout. While there are a number of different menu systems available to the Android…

  • Creating a Tabbed Interface using the TabLayout Component in Java

    The previous chapter outlined the concept of material design in Android. It introduced two of the components provided by the design support library in the form of the floating action button and the Snackbar. This chapter will demonstrate how to use another of the design library components, the TabLayout, which can be combined with the…

  • An Android Floating Action Button and Snackbar Java Tutorial

    One of the objectives of this chapter is to provide an overview of the concepts of material design. Originally introduced as part of Android 5.0, material design is a set of design guidelines that dictate how the Android user interface, and that of the apps running on Android, appear and behave. As part of implementing…

  • An Android Java MotionLayout KeyCycle Tutorial

    The previous chapters introduced and demonstrated the concepts of integrating animation into Android app user interfaces using the MotionLayout container combined with the features of the Android Studio MotionLayout editor. The chapter entitled Android Studio MotionLayout in Java briefly mentioned the cycle (KeyCycle) and time cycle (KeyTimeCycle) keyframes and explained how these can be used…

  • An Android Studio Java MotionLayout Editor Tutorial

    Now that the basics of MotionLayout have been covered, this chapter will provide an opportunity to try out MotionLayout in an example project. In addition to continuing to explore the main features of MotionLayout, this chapter will also introduce the MotionLayout editor and explore how it can be used to construct and modify MotionLayout animations…

  • Android Studio MotionLayout in Java

    The MotionLayout class provides an easy way to add animation effects to the views of a user interface layout. This chapter will begin by providing an overview of MotionLayout and introduce the concepts of MotionScenes, Transitions, and Keyframes. Once these basics have been covered, the next two chapters (entitled “An Android MotionLayout Editor Tutorial” and…