204 |
message.append("Location info:\n"); |
message.append("Location info:\n"); |
205 |
message.append("-Obtained by: ").append(loc != null ? loc.getProvider() : "-").append("\n"); |
message.append("-Obtained by: ").append(loc != null ? loc.getProvider() : "-").append("\n"); |
206 |
message.append("-Accuracy: ").append(loc != null ? (int)loc.getAccuracy() : "-").append("m\n"); |
message.append("-Accuracy: ").append(loc != null ? (int)loc.getAccuracy() : "-").append("m\n"); |
207 |
|
message.append("-Latitude: ").append(loc != null ? loc.getLatitude() : "-").append("\n"); |
208 |
|
message.append("-Longitude: ").append(loc != null ? loc.getLongitude() : "-").append("\n"); |
209 |
MessageBox.showMessage(this, message.toString()); |
MessageBox.showMessage(this, message.toString()); |
210 |
break; |
break; |
211 |
default: |
default: |
303 |
intent.putExtra("longitude", longitude); |
intent.putExtra("longitude", longitude); |
304 |
intent.putExtra("stationid", station.getId()); |
intent.putExtra("stationid", station.getId()); |
305 |
intent.putExtra("address", station.getAddress()); |
intent.putExtra("address", station.getAddress()); |
306 |
|
intent.putExtra("isregional", station.isRegional()); |
307 |
|
intent.putExtra("isstrain", station.isSTrain()); |
308 |
|
intent.putExtra("ismetro", station.isMetro()); |
309 |
startActivity(intent); |
startActivity(intent); |
310 |
} |
} |
311 |
|
|