kopia lustrzana https://github.com/ge0rg/aprsdroid
added accuracy to display
rodzic
b8f2716110
commit
ae94223197
|
|
@ -8,6 +8,8 @@
|
|||
<string name="startlog">Start Logging</string>
|
||||
<string name="stoplog">Stop Logging</string>
|
||||
|
||||
<string name="latlon_format">lat: %1.4f lon: %1.4f (±%dm)</string>
|
||||
|
||||
<!-- AprsService -->
|
||||
<string name="aprs_server">srvr.aprs-is.net</string>
|
||||
|
||||
|
|
|
|||
|
|
@ -89,7 +89,8 @@ class APRSdroid extends Activity with OnClickListener
|
|||
}
|
||||
|
||||
def onLocationChanged(location : Location) {
|
||||
lastPost.latlon = "lat: %1.4f lon: %1.4f".format(location.getLatitude, location.getLongitude)
|
||||
lastPost.latlon = getString(R.string.latlon_format).format(location.getLatitude,
|
||||
location.getLongitude, location.getAccuracy.asInstanceOf[Int])
|
||||
latlon.setText(lastPost.latlon)
|
||||
}
|
||||
def serviceIntent(action : String) : Intent = {
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue