Background Process to scan the location of the user at regular intervals and update the local database even when the app is not open

前端 未结 6 1323
梦毁少年i
梦毁少年i 2021-01-05 10:32

I am creating an app that checks for user locations every half an hour and updates the location of the user in the local database and then runs CRUD queries based on the use

6条回答
  •  隐瞒了意图╮
    2021-01-05 11:21

    1. I think for this requirement, Thread and inside it AsyncTask -- this structure will be useful.

    In link provided by you, it is mentioned very nicely here

    2. For location related blog, you can check useful materials here :

    (1) Difference between Google Map Distance and Directions API

    (2) Check this answer also

    Hope this will help you

提交回复
热议问题