geolocation - Android listing large number of data in a listview based on current location -
i trying display large number of records in list view , ordering them base on user location -nearest first- in range of 15km , data keep updating while user move.
the current approach doing send request server current location , distance calculation done on server side , data ready use ..
but approach take many time application couldn't handle! , application become slaw..
i thought can cash data on mobile , calculate on mobile data huge!
how can handle that? idea ?
you can use firebase realtime database, , make json details nearest range etc, make priorities in database on how should update using query
. if going display large amount of data, should consider moving recyclerview
.
you can find tutorials on firebase realtime database here
Comments
Post a Comment