Questions tagged [realm-java]
99 questions
2
votes
1 answer
Is it safe to shorten the RSA key to 64 bytes?
im trying to encrypt Realm DB. Key should be 64 bytes long. Minimum api level of my application is 21, so I can generate only RSA key, which minimum length is 512 bytes, relying on an android sdk solution. Is it safe to shorten the RSA key to 64…

drbear
- 31
- 2
2
votes
0 answers
realm java: Mmap() failed: Out of memory size
io.realm.exceptions.RealmError: Unrecoverable error. mmap() failed: Out of memory size: 1073741824
offset: 0 in /Users/cm/Realm/realm-java-release/realm/realm-library/src/main/cpp/io_realm_internal_OsSharedRealm.cpp line 101
at…

Mher Arsh
- 588
- 4
- 21
2
votes
1 answer
Realm: How to tell if a field is nullable via DynamicRealm?
Does DynamicRealm offer a way to determine if a field is nullable on a kotlin RealmModel subclass?
For example, given the following realm models:
open class IntObj(
var i: Int = 1
): RealmObject()
open class NullIntObj(
var i: Int? =…

Mitch Ware
- 415
- 1
- 4
- 15
2
votes
1 answer
Delete Realm Manually on Migration
Realm Platform: Mobile Android
Realm Version: 3.3.2
Encryption: Yes
I have an production app. I use auto delete realm when migration needed on my apps v0.3.0 until v0.14.0. Because of some reason, on v0.14.2 I must migrate manually. And several user…

M Hasan
- 68
- 7
2
votes
1 answer
Android - Save the realmlist inside a realm object
I have a model
public class Response extends RealmObject {
@PrimaryKey
private String _id;
private RealmList task_responses;
private AssignmentRecord assignmentRecord;
private ResponseStatistic…

Mayank
- 259
- 2
- 16
2
votes
3 answers
ClassNotFoundException when unmarshalling: io.realm.NeedRealmProxy$$Parcelable
I got this error when running this snippet of code from a fragment HomeFragment
public void onTaskClick(View view, Need need, int position) {
Log.d(TAG, "onTaskClick() - " + need.toString());
Intent intent = new Intent(getActivity(),…

Mael Fosso
- 360
- 6
- 14
2
votes
1 answer
Is possible to sum a relationship field? [Using Realm]
I am trying to find a away to SUM the relationship field, but always throw an exception~
So it`s possible to sum a relationship filed by using realm database?
if u knows where i write wrong, please tell me, thanks a lot :)
Assuming I have the…

lixi
- 31
- 4
2
votes
2 answers
Polymorphic relations in realm
IBaseA <--- Interface
CBaseB <--- Concrete base class
ChildA implements IBaseA{
//fields and getters, setters
}
ChildB extends CBaseB, implements IBaseA{
//fields and getters, setters
}
TestClass implements RealmModel{
private…

Mayank
- 259
- 2
- 16
2
votes
2 answers
Sort by relationship value?
I have two model object classes that are related to each other:
class Car {
private String model;
private Manufacturer manufacturer;
// getter and setter methods
}
And:
class Manufacturer {
private String name;
// getter…
user7513076
2
votes
0 answers
insert to realm from json without primary key
I have a big JSONArray like this
[{
"serverId":1,"title":"title!"
},....]
and I have an object:
class A extends RealmObject{
@PrimaryKey
public int local_id;
public int serverId;
public String title;
} …

max
- 5,963
- 12
- 49
- 80
2
votes
3 answers
Realm createOrUpdateAllFromJson to create RealmModel objects without persisting?
I'm using realm Java in my in-development Android app quite happily. I receive JSONObject arrays from the server API, and realm dutifully ingests them through the convenient createOrUpdateAllFromJson on the main realm instance object.
The typical…

Dhiraj Gupta
- 9,704
- 8
- 49
- 54
1
vote
1 answer
How to track only INSERT in Realm?
I need to track only Realm INSERT operations. Is there a listener for something like this?
I use a Realm-java for Android and work with a server that sends data in independent parts. For example, a Person or a Pet can be received via websocket in…

Est Stalegaykin
- 53
- 2
- 7
1
vote
1 answer
After Realm Java upgrade and downgrade, crash with RealmFileException: Unsupported Realm file format version. line 101 Kind: ACCESS_ERROR
I upgraded Realm version from io.realm:realm-gradle-plugin:5.1.0 to 10.8.1 with no issue. However, then I had to test an earlier version of my app, so I completely uninstalled the app that used 10.8.1 from the phone and reinstalled the app that used…

zetatlas
- 320
- 2
- 8
1
vote
1 answer
Realm PermissionManager.getPermissions() error after connection reset
I am facing this issue and would like to know if someone facing it too and maybe have solution.
I also opened issue on Github but no answer so far
link to issue
After connection reset or dropped connection PermissionManager.getPermissions() return…

Pavel Poley
- 5,307
- 4
- 35
- 66
1
vote
3 answers
How do I delete Realm objects which are not referenced by any other object during migration?
I have two models -
class Direction : RealmObject {
var distance : Int
var polyline : String
}
class Route : RealmObject {
var id : String
var directionList : RealmList
}
I have been using insertOrUpdate() to update…

vepzfe
- 4,217
- 5
- 26
- 46