Firestore is a subset of Firebase-Real-Time Database Firestore is a NOSQL Cloud Database which is extremely,customizable,efficient and scalable. Unlike SQL,we don't need to specify the column name and entity before putting the data in the table rather in NOSQL we don't need to predefined the structure of the database. In case of NOSQL, Database is called collection and Tables are called Documents. Documents allow us to add key-value pair which is basically the json format because json is easy to manipulate,query and very flexible. We can add documents inside the collection by specifing its name otherwise firebase we create an id for it. SetUp: 1) Inside Android Studio,go to tools select Firebase. 2) CLick on Log an Analytics event below the Analytics. 3) You will be redirected to login with your google account. 4) Log In into your account. 5) Go back to Studio you will that the Connected will be written with checked sign. 6) Now click on Add Analytics to your app.Now android ...
A Handler is an Android class you can use to schedule code that should be run at some point in the future. You can also use it to post code that needs to run on a different thread. To use the Handler, you wrap the code you wish to schedule in a Runnable object, and then use the Handler post() and postDelayed() methods to specify when you want the code to run. Before diving deep inside the Handler we must study about the Runnable. A Runnable is a job you want to run.The code that we want to run in Runnable is put inside the run() method of runnable. Handler Methods: 1) post() method: This method posts code that need to be run ASAP(almost immediately).This methid takes only one parameter,an object of type Runnable. final Handler handler=new Handler(); handler.post(Runnable); 2)postDelayed() method: This method does its work in a similar way to post() method except we use it to post the code that should be run in future not immediately. This method takes two parameter.One is Runnabl...