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

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -