« first day (2480 days earlier)      last day (770 days later) » 

04:57
Good morning all
@AshishJain then I think that static variable you can achieve this
Good morning
Good Morning All
 
1 hour later…
06:24
is it possible to drag and drop whole group in expandablelistview like recyclerview?
See above link, I want this type of implementation but in expandablelistview
@AshishJain @Ali @ॐRakeshKumar @JaiprakashSoni @Bandish @ShobhakarTiwari
@Radhey
@ShobhakarTiwari how?
have you see my above query ?
06:46
@JaiprakashSoni let me check it
@JaiprakashSoni I think it is chile dragging but I want to drag whole group from one position to another position, is it possible?
I have seen this also
https://github.com/h6ah4i/android-advancedrecyclerview //
https://github.com/JaydipZala/Drag-Drop-ExpandableListView //
@Radhey let me check it
@JaiprakashSoni & @Radhey is it possible to change whole group position from on place to another place, I mean drag and drop whole group ?
havn't tried yet.
 
3 hours later…
09:49
does any one can do some help
0
Q: Get multiple type of live data from room database using for loop in android

ShaileshI have implemented ROOM Database in one of my Chat app. For chat I have used XMPP server. I want to get two type of data at the same time in side the loop. Once api is call completed and get the message list from server, I want update those latest time and if any unread message statue in the list...

@ॐRakeshKumar @Radhey @JaiprakashSoni @Ninja
10:44
are you able to log/print data inside for loop when accessing data base?
11:03
@Radhey Yes
but the issue is loop speed is to fast
some time LastMessage call is completed and sometime UnreadMessageCount is completed so data is not sorted properly
@Shailesh I think this issue happens, right?
11:33
@Shailesh , Once List data will be updated successfully then after set that data in the adapter. Didn't understand, can you rephrase it?
@ॐRakeshKumar let me explain
suppose i = 1 and j=1 and at that time data is received from DB
Now I am updating that newly received data in the list
so that means data is updated
now I want to set that newly updated data in adapter
As the data you are receiving from the DB then you are updating it
Yes
but issue is
You should use DiffUtil, It will update new data only
sometimes when query is still executing but cursor don't wait for finish it and i++ or j++
11:38
You should do once the async operations finish their job
so first index query is still executing and loop cycle is ++ so next index and again next query is started
@ॐRakeshKumar How, I don't know?
@ॐRakeshKumar I am also thinking but I don't get the idea that how to implement it
Inside the loop, you are trying to let the last message, which might work independently
i think you are using live data only
Not actually aware, why you put that DB query inside the loop
use mutable livedata or mediator livedata instead
11:44
but as I said that query is still executing but loop speed is more then retrieving speed, so loop is completed but data is not still updating
It is because you put the async task in loop
@Radhey whenever I receive the data then that message is store it the DB and then after set on the adapter
Loop is not being executed under async
Livedata can't update UI directly
you need to cast it inside mutable live data or mediator live data
@ॐRakeshKumar Is there things we achieve this things?
@Radhey I don't know about it can you give some idea bro
OK let me check it
https://stackoverflow.com/a/49628662/1848157 //
@ॐRakeshKumar hru man!

« first day (2480 days earlier)      last day (770 days later) »