thomaus
thomaus

Reputation: 6258

How to edit and replace a default.realm file

I am a senior Android developer but new to Realm.io

I have created models, wrote data on it + made queries without any problem.

Now what I would like is to edit the database using the Realm Browser so...

Thanks!

Upvotes: 0

Views: 3333

Answers (1)

timanglade
timanglade

Reputation: 371

Tim from Realm here.

  • As our documentation indicate, the file should be located at the root of the File folder for your app (/data/data/<package_name>/files). You should be able to pull the file from your device using ADB, per this other answer.
  • Yes! You can absolutely swap files in and out. Just replace the file on disk — as long as the schema inside the file matches your class definitions, then the data should load right away when you access the Realm.

Upvotes: 6

Related Questions