Firebase Persistence Enable Android

//In android manifest inside <application />
android:name=".FireBaseApp"

public class FireBaseApp extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        /* enable Disk persistence */
        FirebaseDatabase.getInstance().setPersistenceEnabled(true);
    }
}
Grotesque Gibbon