59 |
|
|
60 |
|
|
61 |
|
|
|
|
|
62 |
@Override |
@Override |
63 |
protected void onPrepareDialog(int id, Dialog dialog) { |
protected void onPrepareDialog(int id, Dialog dialog) { |
64 |
super.onPrepareDialog(id, dialog); |
super.onPrepareDialog(id, dialog); |
69 |
} |
} |
70 |
} |
} |
71 |
|
|
|
|
|
|
|
|
|
public void progressDialog() { |
|
|
dialog = new ProgressDialog(this); |
|
|
dialog.setMessage("Wait for location fix"); |
|
|
dialog.setCancelable(false); |
|
|
dialog.show(); |
|
|
} |
|
|
|
|
72 |
public void startLookup() { |
public void startLookup() { |
73 |
isRunning = true; |
isRunning = true; |
74 |
showDialog(DLG_PROGRESS); |
showDialog(DLG_PROGRESS); |
|
//progressDialog(); |
|
75 |
|
|
76 |
locator.locateStations(); |
locator.locateStations(); |
77 |
stationsFetched.sendEmptyMessageDelayed(FIXTIMEOUT, 20000); |
stationsFetched.sendEmptyMessageDelayed(FIXTIMEOUT, 20000); |
124 |
intent.putExtra("name", station.getName()); |
intent.putExtra("name", station.getName()); |
125 |
intent.putExtra("address", station.getAddress()); |
intent.putExtra("address", station.getAddress()); |
126 |
intent.putExtra("distance", station.getDistance()); |
intent.putExtra("distance", station.getDistance()); |
127 |
|
intent.putExtra("latitude", station.getLatitude()); |
128 |
|
intent.putExtra("longitude", station.getLongitude()); |
129 |
startActivity(intent); |
startActivity(intent); |
130 |
} |
} |
131 |
|
|