How to update longitude and latitude in every 10 seconds in mysql database?

前端 未结 3 601
鱼传尺愫
鱼传尺愫 2020-12-22 00:52

I\'m trying to get latitude and longitude from Android device and send it to MySQL database. when any one register his current latitude and longitude saved in the database.b

3条回答
  •  别那么骄傲
    2020-12-22 01:25

    Instead saving your lat lon to LocalDB you can use Shared Preferences.

    For more help about shared Preferences use given link https://www.tutorialspoint.com/android/android_shared_preferences.htm

    Make different class and make a method to save your lat lon when ever you get after 10 second.

    THanks!

提交回复
热议问题