public class GpsActivity
extends Activity
Modifier and Type | Class and Description |
---|---|
private class |
GpsActivity.MyThread
Thread that monitors the gps information about the latitude an longitude
of the device's location and sends the data collected to the gui if the GPS
Activity is currently showing on the screen.
|
Modifier and Type | Field and Description |
---|---|
private ToggleButton |
button
The button for enabling and disabling the gps monitoring.
|
(package private) Handler |
handler
Handler for printing to the the text view of the gui the info that
the gps thread has collected
|
private TextView |
textGpsInfo
The text view that shows the collected information about the location.
|
Constructor and Description |
---|
GpsActivity() |
Modifier and Type | Method and Description |
---|---|
void |
buttonPushed(View view)
Method that is called when the button Enable Monitoring is pushed.
|
protected void |
onCreate(Bundle savedInstanceState) |
protected void |
onDestroy() |
protected void |
onPause() |
protected void |
onResume() |
protected void |
onStart() |
protected void |
onStop() |
private TextView textGpsInfo
private ToggleButton button
Handler handler
protected void onCreate(Bundle savedInstanceState)
protected void onStart()
protected void onResume()
protected void onPause()
protected void onStop()
protected void onDestroy()
public void buttonPushed(View view)