AshishChagugule
AshishChagugule
returning null plz help me out RealmQuery roundRealmQuery = realmSuperInstance.where(Round.class); int currentRound = Integer.parseInt(preferenceManager.getCurrentRoundId()); mRound = roundRealmQuery.equalTo("round_id", currentRound).findFirst();
Hey thanks for reply and this is from activity main thread and realmSuperInstance is initialized In oncreate method Thanks and Regards , Ashish Chaugule, 9096832006. On Jan 25, 2018 12:06...
It will very helpfull to me if you look in this two attach file and help me out android code i am getting null on mRound RealmQuery roundRealmQuery = realmSuperInstance.where(Round.class);...
Yes we have added the same code to check null on the incoming object but we are getting null after our app gets crashed for some reasons. We are not...
Hello , 01-27 01:16:47.421 18266-18266/com.rounder I/System.out: Round:java.lang.IndexOutOfBoundsException: No results were found. Realm realmSuperInstance=Realm.getDefaultInstance(); realmSuperInstance.beginTransaction(); RealmQuery roundRealmQuery = realmSuperInstance.where(Round.class); int currentRound = Integer.parseInt(preferenceManager.getCurrentRoundId()); RealmResults realmResults = roundRealmQuery.equalTo("round_id", currentRound).findAll(); mRound=realmResults.first(); realmSuperInstance.commitTransaction(); realmSuperInstance.close();...
and its happening when i am reinstalling app . On Sat, Jan 27, 2018 at 11:53 AM, Ashish Chaugule < [email protected]> wrote: > Hello , > 01-27 01:16:47.421 18266-18266/com.rounder I/System.out:...
public void startRealm(){ try { SyncCredentials myCredentials = SyncCredentials.usernamePassword("@@@@@@", "@@@@@@$$", false); SyncUser.loginAsync(myCredentials, "http://##############", new SyncUser.Callback() { @Override public void onSuccess(@NonNull SyncUser syncUser) { SyncConfiguration syncConfiguration = new SyncConfiguration.Builder(syncUser, "realm://app.rounderapp.com:9080/Rounder_Live").build(); //...
NO!!! this is my config public void startRealm(){ try { SyncCredentials myCredentials = SyncCredentials.usernamePassword("XXXXXX", "XXXXXXXX", false); SyncUser.loginAsync(myCredentials, "http://XXXXXXXXXX", new SyncUser.Callback() { @Override public void onSuccess(@NonNull SyncUser syncUser) { System.out.println("onSuccess:" +...
can we have call or somthing On Sat, Jan 27, 2018 at 3:19 PM, Ashish Chaugule < [email protected]> wrote: > NO!!! > > this is my config > > public...
System.out.println("getCurrentRoundId():" +preferenceManager.getCurrentRoundId()); RealmResults realmResults = roundRealmQuery.findAllSorted("round_id", Sort.DESCENDING); for(Round round:realmResults) { System.out.println("getCurrentRoundId():" +round.getRound_id()); if(round.getRound_id()==currentRound){ mRound=round; break; } } my current id is:769 but query consider records from 528 why so 01-27...