Why Use Advance TinyDB?
✅ Stores primitive data types (String, Integer, Boolean, Float, etc.)
✅ Stores complex objects (Lists, HashMaps, custom objects)
✅ No need for manual serialization (Unlike SharedPreferences
)
✅ Easy implementation and retrieval

How to Use Advance TinyDB in an Android Project?
Step 1: Add Dependency
TinyDB is not available in Maven Central, so you need to download the class manually or use jitpack.
Option 1: Add TinyDB.java manually
- Download
TinyDB.java
- Copy it into your project under
com.example.utils
or any package of your choice.
Option 2: Add JitPack Dependency (Alternative method)
Step 2: Initialize TinyDB in Your App
Create an instance of TinyDB
inside an Activity
or Fragment
:
Reviews
There are no reviews yet.