android - Sending Coordinates to Google App engine -


i working on android side project have set website on google cloud platform, using google app engine , setup database on google datastore.

my website consists of map can create fences , send coordinates of fences app. have maps activity on android app , trying figure out how send gps location / coordinates of mobile server every few mins.

so can able see location of mobile on website map. how track user. can please let me know if there way this? thanks.

you have 2 options here independent of underlying architecture using currently:

  • polling
  • sending broadcast

in first strategy server (google app engine) shall poll mobile devices @ specific time interval. can find code online in choice of language. fetch location of mobile devices can store in datastore , display on map of website.

in second strategy can put sendbroadcast() code/method in android code. enable device send location server , can store them in datastore , display them on map.

hope helps!!


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -