Answers for "io.realm.exceptions.realmexception: running transactions on the ui thread has been disabled. it can be enabled by setting 'realmconfiguration.builder.allowwritesonuithread(true)'."

3

io.realm.exceptions.realmexception: running transactions on the ui thread has been disabled. it can be enabled by setting 'realmconfiguration.builder.allowwritesonuithread(true)'.

RealmConfiguration config = new RealmConfiguration.Builder(getApplicationContext()).deleteRealmIfMigrationNeeded().build();
    Realm.setDefaultConfiguration(config);
Posted by: Guest on April-09-2022

Code answers related to "io.realm.exceptions.realmexception: running transactions on the ui thread has been disabled. it can be enabled by setting 'realmconfiguration.builder.allowwritesonuithread(true)'."

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language