关于Userhash Location Reporting
您可以随时随地在自己的各种设备上畅享数百万最新的 Android 应用、游戏、音乐、电影、电视节目、图书、杂志等精彩内容。
Using your own cloud server, host a location reporting service. Share your mobile location with friends and view their location. Source available for both client and server pieces.
This app requires the UserHash servlet (userhash.war, link below) to run at the "userhash server url" in the app settings.
It is convenient to run nginx as the front facing web server proxying requests to tomcat in the background.
For example if you have a small 512k VPS with a Ubuntu image, you can install the following:
apt-get install nginx
apt-get install tomcat7
apt-get install default-jdk
For SSL support (recommended), install a self-signed cert in nginx
and add users/passwords in /etc/nginx/htpassword
The file nginx-site contains sample settings for nginx with SSL.
Also modify the tomcat's server.xml to add address="127.0.0.1", localhost only.
port="8080"
protocol="HTTP/1.1"
address="127.0.0.1"
maxHttpHeaderSize="8192"
connectionTimeout="20000"
URIEncoding="UTF-8"
redirectPort="443" />
In the app in Settings, you can paste your self signed cert if you want to use one.
The list of users on your userhash server to view and will also be the ones you share your location with.
The key is your Mapquest open street map key, or you can create another web template and use another map view service or host your own map data and map rendering javascript.
Currently if you change the update minutes, you have to restart your phone to take effect.
Apache license, source at:
https://github.com/threedliteguy/UhLocationReportingService

