Skip to content

Source code for Broadcast from Android device, processed by server and display it in webclient

Notifications You must be signed in to change notification settings

indosandi/gpsTracking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gpsTracking

Source code for broadcasting position from android device, processed by server and display it in webclient. This code is not designed to give realtime tracking. Use different technology such as websocket to get realtime tracking

  1. Broadcaster This code use periodic http request to specified server. The periodic request run on background via Service utilizing timer task and handler. GPS access is provided by class SimpleLocation.java taken from: https://github.com/delight-im/Android-SimpleLocation

  2. Server Written in java ran in Tomcat . This servlet handle either request from client or broadcaster. Servlet will process post request with following parameter:


latitude-> latitude in string
longitude--> longitude in string
client--> for client request set as "1", for broadcaster can be anything
description---> Description of broadcaster, it will appear on google map marker
id---> Assign this string to different broadcaster. This id will become key when storing information about broadcaster.
Server will periodically do cleaning or deleting broadcaster if after period of time broadcaster stop updating information. Variables TIME_CLEAN_INTERVAL and TIME_EXPIRED specify those information.
3. Client
Client will periodically request to get new data from server.

Smile everyone :)

About

Source code for Broadcast from Android device, processed by server and display it in webclient

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published