Category: Kotlin

  • 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 Studio Material Design 3 Theming and Dynamic Color Tutorial

    This chapter will show you how to create a new Material Design 3 theme using the Material Theme Builder tool and integrate it into an Android Studio project. The tutorial will also demonstrate how to add support for and test dynamic theme colors to an app. Creating the ThemeDemo Project Select the New Project option…

  • Working with Material Design 3 Theming in Android Studio

    The appearance of an Android app is intended to conform to a set of guidelines defined by Material Design. Google developed Material Design to provide a level of design consistency between different apps while also allowing app developers to include their own branding in terms of color, typography, and shape choices (a concept referred to…

  • An Android Studio In-App Purchasing Tutorial

    In the previous chapter, we explored how to integrate in-app purchasing into an Android project and also looked at some code samples that can be used when working on your own projects. This chapter will put this theory into practice by creating an example project demonstrating how to add a consumable in-app product to an…

  • An Android Studio Biometric Tutorial

    Touch sensors are now built into many Android devices to identify the user and provide access to the device and application functionality, such as in-app payment options using fingerprint recognition. Fingerprint recognition is just one of several authentication methods, including passwords, PINs, and, more recently, facial recognition. Although only a few Android devices currently on…

  • An Android Studio App Links Tutorial

    This chapter will provide a practical demonstration of Android app links and the Android Studio App Link Assistant. This chapter will add app linking support to an existing Android app, allowing an activity to be launched via an app link URL. In addition to launching the activity, the content displayed will be specified within the…