From the course: Google Firebase for Android: First Look
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
Implement Firebase Remote Config
From the course: Google Firebase for Android: First Look
Implement Firebase Remote Config
- [Voiceover] Now that we've set up the in-app default values and defined the server side parameters, we can add the Remote Config logic to our app. Open the MainActivity Java code. Also open the main activity layout in the resources section. If you look at the layout code, you'll notice that there's a button down here at the bottom of the screen that's currently invisible, and if you look in the text version, you'll see that it is, where are we? This one right here. We're going to use our promo enabled parameter to determine whether this button should be displayed to the user so that they can go to our sale screen. So back in the Java code, let's start adding our Remote Config logic. First, let's add the Remote Config member variable. So here I'll write private FirebaseRemoteConfig mFBConfig; Next, we have to get the Remote Config instance when our activity is created, and this is similar to what we did for Analytics. So let's add this line, mfbRemoteConfig = FirebaseRemoteConfig and…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.