Book Image

Expert Android Programming

Book Image

Expert Android Programming

Overview of this book

Android O brings a number of important changes for the users as well as the developers. If you want to create smart android applications which are fast, lightweight and also highly efficient then this is the book that will solve all your problems. You will create a complex enterprise grade app in this book. You will get a quick refresher of the latest android SDK and how to configure your development environment. Then you will move onto creating app layouts, component and module building, creating smart and efficient UIs. The most important part of a modern day app is how real time they are. With this book, you will create a smooth back-end for your app, ensure dynamic and real time communication between different app layers. As we move on, you will learn to leverage the different Android APIs and create an efficient SQLite data layer for your apps. You will implement effective testing techniques to make your app reliable and robust and finally you will learn to deploy it efficiently. The multiple stages of android development will also be simplified by giving you an industry standard set of best practices.
Table of Contents (17 chapters)
10
Building Restaurant finder

Remote configuration

One more important feature that is powered by Firebase is remote configuration. This allows app users to change the behavior and appearance of the app without the app being updated. This is made possible by creating in-app default values that control this behavior. By just changing the server-side parameter values, you can customize how the app looks or behaves. The image below shows the example of the configurations:

Now, let us discuss how we can add remote configuration to our app.

To add remote configuration into the android app, first we have to add the following line in the dependency section of the app level build.gradle file:

compile 'com.google.firebase:firebase-config:10.0.1'

After the app, has synced, we can how use the Config object which will help us to use the remote configurations.

Next, let's create sample configurations on...