Questions tagged [realm-java]

99 questions
0
votes
1 answer

GlideApp symbol not found in Android Studio 4.1

I have been using Glide 4.11.0 and Realm 6.0.2 for some time now, and recently upgraded Android Studio 4.0.x to 4.1. All has been going fine. Today I ran the lint checker, and started doing some "clean up", nothing out of the ordinary (it would…
tfrysinger
  • 1,306
  • 11
  • 26
0
votes
0 answers

Reduce Realm file dimension

I got this error while writing and modifying thousand of record: Unrecoverable error. mmap() failed: Out of memory size And I found out that this is due to the dimension that the transaction occupy on the device memory. So I split the single, big…
michi07
  • 105
  • 1
  • 6
0
votes
1 answer

Realm java nested query on same ArrayObject

Current code: mRealm.where(AdditionalData.class) .contains("checklistParticipants.email", a@a.com, Case.INSENSITIVE) .equalTo("checklistParticipants.type", 0) …
Aks4125
  • 4,522
  • 4
  • 32
  • 48
0
votes
1 answer

How can I avoid a Realm.io "Attempt to invoke virtual method 'boolean io.realm.ProxyState.isUnderConstruction()' on a null object reference" error

UPDATE: At this point I can not create any new Realm-based objects. Each and every one fails with the same error, no matter if I clean, rebuild, etc. To test this, I created a new class "Sample": package com.reddragon.intouch.model; import…
tfrysinger
  • 1,306
  • 11
  • 26
0
votes
2 answers

realm link queries with conjunction

Almost same question than Realm, complex linked query, but with a important variant : In the official docs, https://realm.io/docs/java/latest/#link-queries - there's an example how to select owners of "Brown" dogs and owner of "Fluffy" dogs. Not, as…
Pierre N.
  • 11
  • 3
0
votes
1 answer

Filter RealmResults with String query and get RecyclerView granular animations

I want to filter a list based on RealmRecyclerViewAdapter and get granular animations (notifyItemRange*()). My filtering logic: override fun observeCampaigns(nameQuery: String): Flowable> = …
Tudor Luca
  • 6,259
  • 2
  • 29
  • 44
0
votes
0 answers

Searching in Realm

I have a Realm Class with many columns. I have a search controller in my view where i can search. realm = Realm.getDefaultInstance(); RealmResults counters; RealmQuery data = realm.where(example.class); …
Metti
  • 85
  • 1
  • 8
0
votes
1 answer

Alternate to fallbackToDestructiveMigration()?

I don't want to provide a migration script while changing table schema in realm java. Also, app should not crash and all the previous data should be erased or truncated something similar to fallbackToDestructiveMigration() as room dose?
Anurag Singh
  • 6,140
  • 2
  • 31
  • 47
0
votes
1 answer

Update list of objects in Realm DB after network request

I want get list of objects from DB and after network request update these objects in DB. public class TripTrack extends RealmObject { private int tripId; private double latitude; private double longitude; private long downtime; …
ViT-Vetal-
  • 2,431
  • 3
  • 19
  • 35
0
votes
1 answer

realm write / read from different implementations

i wonder if it's possible to write / read from / to realm from different implementations. We have a react native app that uses realm. We would like todo heavy writes to the database via the native side in another thread. So the question is, is that…
user8764337
0
votes
1 answer

Sort RealmResults strings numerically?

I need to sort this list of String which are actually large numbers (had to use that since BigInteger is not supported with Realm) RealmResults leaderboardList =…
zngb
  • 601
  • 1
  • 7
  • 24
0
votes
1 answer

Realm DB Relationship - One to Many - How to derive attributes as part of master that are summaries of linked children attributes

I'll explain my question using USER -> TASK (1-user-can-have-many-tasks) as an example. In realm, I can define the USER ENTITY, which includes in it a list of associated tasks. However, when querying all users, I also want to read as part of user…
0
votes
0 answers

Realm Java - Ordering/filtering list of 2 combined Realm Object Models with a one to many relationship

I am trying to display an ordered/filtered List (via RealmBaseAdapter or RealmRecyclerViewAdapter) of a combination of 2 Realm Objects. Here are my realm Object classes: first object: public class TaskModel implements RealmModel…
jdkay
  • 1
  • 2
0
votes
1 answer

My Realm not update new data to realm database

I'm trying to update data to database but nothing happen. Data will update when Setting.java is onPause() Setting.java some part of Setting.java @Override public void onPause(){ RealmUpdate realmUpdate = new RealmUpdate(); …
Hello World
  • 740
  • 5
  • 18
0
votes
1 answer

How to Use local realm and sync realm(Realm Object Server) in a single Project?

I want to use local realm and sync realm(Realm Object Server) in single Android Project. I want to store some data on local realm(that shouldn't be uploaded to Realm Object Server) and some data on Realm Object Server. I am creating two realm…
user2546410
  • 51
  • 1
  • 1
  • 5