Category: Android Studio
-
An Android Content Provider Client Tutorial
In this final chapter devoted to Content Providers, we will build an app that accesses the data contained in our SQLDemo content provider and displays the list of customer contacts. Creating the SQLDemoClient Project Start Android Studio, select the New Project option from the welcome screen, and choose the Empty Views Activity template within the…
-
An Android Content Provider Tutorial
As outlined in the previous chapter, content providers provide a mechanism through which the data stored by one Android application can be made accessible to other applications. Having provided a theoretical overview of content providers, this chapter will continue the coverage of content providers by extending the SQLDemo project created in the chapter entitled An…
-
Understanding Android Content Providers
The previous chapter worked on creating an example application designed to store data using a SQLite database. When implemented this way, the data is private to the application and, as such, inaccessible to other applications running on the same device. While this may be the desired behavior for many application types, situations will inevitably arise…
-
An Android SQLite Database Tutorial
The chapter entitled SQLite Databases in Android Studio covered the basic principles of integrating relational database storage into Android applications using the SQLite database management system. In this chapter, we will create a project using SQLite databases to store and retrieve data. About the Database Example The example project is a simple data entry…
-
Android Studio Version Catalogs
A newly created Android Studio project will consist of approximately 80 files automatically generated by Android Studio. When you click on the Run button, Android Studio uses a build system called Gradle to generate additional files, compile the source code, resolve library dependencies, and create the installable application package. After the build is completed, the…
-
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…