I am making an android app similar to WhatsApp.
In the app users can send text as well as images.
To save the messages so that they can be viewed offline I used :
The disk based local storage of the Firebase Database is a sqlite database that is structured opaquely in a way that your app shouldn't care about. The only way you should access the data is through the Firebase API.