Questions tagged [realm-java]
99 questions
0
votes
1 answer
Realm database decryption failed
Question : When I try to open encrypted realm file in Realm Browser (windows) and it gives me following message.
Either this is not a Realm file or it's encrypted.
Enter: 128-character hex-encoded encryption key
Important -
I am closing my realm…

Aks4125
- 4,522
- 4
- 32
- 48
0
votes
0 answers
Realmlist not able to extract it back
I am using realm 4.1.1
When trying to use Realmlist in RealmObject we aren't able to retrieve it back
RealmObject data members are as below:
@PrimaryKey private String product_id; private String product_name; private String specifications_sheet;…

theCoder
- 1
- 1
- 1
0
votes
1 answer
RealmList addAll duplicating object with same primary key
I have a problem in inserting objects inside a realmlist. It is duplicating my objects inside Realm, and they have the very same primary key.
class ParentObj extends RealmObject {
RealmList objects;
}
class SomeObject extends…

reinaldomoreira
- 5,388
- 3
- 14
- 29
0
votes
0 answers
Realm backlink like a foreign key
I am trying to find a way to insert a child object in its parent object without having to do a query for each one.
Let me be more specific:
class Parent extends RealmObject {
String id;
RealmList childs;
}
class Child extends…

reinaldomoreira
- 5,388
- 3
- 14
- 29
0
votes
1 answer
Getting io.realm.exceptions.RealmError for some users
I am getting an io.realm.exceptions.RealmError for some users in my android application.
public Realm getRealm(){
RealmConfiguration config = new RealmConfiguration.Builder()
.schemaVersion(0)
…

Asad Mahmood
- 188
- 1
- 10
0
votes
0 answers
Realm insertion of JSON object takes 60ms per object
I have the following json object : https://pastebin.com/B9Z1Wmqd
Currently using Realm 2.0.2
My relevant objects (simplified) are as follows so you can see the mapping :
Top level object:
public class PlannedTaskDao extends RealmObject {
…

DMonkey
- 195
- 2
- 13
0
votes
0 answers
Realm Object Server: "The client is unsupported"
I'm using the Realm Object Server on latest Beta, version 2.0.0-rc2-285.
When I'm trying to populate the realm with Java client version 3.7.0, I'm getting the following error on the server:
"The client is unsupported"
Which version of the Java…

Damnum
- 1,839
- 16
- 35
0
votes
1 answer
Using two-way data binding with managed RealmObject in EditText
Background: I am using io.realm:android-adapters:2.0.0 for showing a list of items. Each row consists of three TextViews and two EditText fields. These three TextViews text are set from realm schema. I am using two way data binding for EditText…

Anurag Singh
- 6,140
- 2
- 31
- 47
0
votes
1 answer
It is safe to upgrade realm-gradle-plugin version?
I upgraded it from 1.0.0 to 3.3.2 on debug version and everything seems to work, but I wonder if there are any breaking changes that may lead to release application crash or worse to existing schema corruption?
Are there any…

I60R
- 467
- 2
- 14
0
votes
1 answer
Realm DB & RecyclerView timing issue while deleting items
The setup: (project link)
I use a RecyclerView (with a RealmRecyclerViewAdapter) showing a List of names, which looks like this.
In order to manage the View of the sticky index letter in the top left corner vs the index letter of the item itself, a…

kazume
- 1,333
- 2
- 16
- 30
0
votes
1 answer
foreach RealmResults and delete in Android
I want to post each RealmResults data to a REST endpoint, and want to delete its data if sending is success.
Running following code, success sending but fail to delete.
I tried to use target.deleteFromRealm() in Response() but IllegalStateException…

user3752013
- 189
- 1
- 8
0
votes
1 answer
RealmDB custom fields
Can I define a field with unknown type in Realm model?
Sample classes :
public class Model1 extends RealmObject {
@PrimaryKey
private String _id;
private ? field1;
}
public class Model2 extends RealmObject {
…

Mayank
- 259
- 2
- 16
0
votes
1 answer
Is there something equivalent to .equalTo(object)?
I'd like to write a function that deletes the given RealmModel from the Realm, opening and closing the Realm.
I'm having a hard time to query for the same object on the new Realm instance in this delete method. What would be the recommended way to…

ferbeb
- 163
- 1
- 2
- 11
0
votes
1 answer
Duplicating Realm class under new class name
I have a class Message.java:
public class Message extends RealmObject implements Serializable {
@PrimaryKey
@SerializedName("id")
@Expose
private Integer id;
@SerializedName("user_id")
@Expose
private User user;
…
0
votes
2 answers
Storing ArrayList extends BaseModel> in Realm
I have an ArrayList extends BaseModel> that I'd like to store in Realm.
I have several classes that extend BaseModel and they're all stored in this ArrayList. Will Realm just do the right thing if I store this on disk? Each child class may have…

b.lyte
- 6,518
- 4
- 40
- 51