DEV Community

loading...

Monday work share

coroutinedispatcher profile image Stavro Xhardha ・1 min read

As an Android developer, in the road to become every day more professional, I always share my articles (mostly) on Mondays.

What have you been working this week? I've been working on:

Prepopulating Room db with Data

Discussion (1)

Collapse
groundzerocro profile image
AndroidPie

On my latest project with a dynamic locale change feature, I found that instead of premade room 2.2+ prepopulating data feature, inserting data with a JSON read from assets is more convenient. I could swap data much more easily dynamically. So if my user is offline, and he changes from English to Spanish in Settings of an app, preloaded data will also be changed by simple @Delete @Insert(SELECT * ..) logic.

Forem Open with the Forem app