list of motivational quotes on SQLite. If we add a new quote to the app, we have to update the app on the store and our users have to redownload. That’s NOT good enough! Place your screenshot here 10 Motivational Quotes App
works offline Your users don’t have to download a new version of your app when you update data Crash reporting A good idea would be to integrate Firebase. Here’s why
clicking on the button provided) Step 3: Add Cloud Firestore to your app (again, by clicking on the button provided). If you’re having issues syncing your project afterwards, go to your app level build.grade and change what looks like the below: implementation 'com.google.firebase:firebase-firestore:18.2.0:15.0.0' to implementation 'com.google.firebase:firebase-firestore:18.2.0' 15
class Quote(val id: String, val quote: String, val author: String ) Step 7: Create a recyclerview in activity_main.xml <androidx.recyclerview.widget.RecyclerView android:id="@+id/recycler_view" android:layout_width="match_parent" android:layout_height="match_parent" /> 17
recyclerview. Step 10: Create a method to initialize recyclerview in your Activity. Step 11: Now, we have these things set up, it’s time to retrieve data from firestore with the instance that was initially created. 19
was just two. 1. Instantiating Firestore 2. Retrieving data from store Yo! Apart from the fact that it’s a good tool for your apps, it saves you a lot of time . 21
on Google's Mobile Platform - Laurence Moroney Mastering Firebase for Android Development: Build Real-time, Scalable, and Cloud-enabled Android Apps with Firebase - Ashok Kumar S Firebase Cookbook: Over 70 recipes to help you create real-time web and mobile applications with Firebase - Houssem Yahiaoui Resources to help you get started with Firebase