public class GeneralActivity
extends Activity
Modifier and Type | Class and Description |
---|---|
private class |
GeneralActivity.MyThread
Thread that makes the connection with the web-service and then sends to it
the collected information about the battery and gps of the device
|
Modifier and Type | Field and Description |
---|---|
private ToggleButton |
button
The button for enabling and disabling the battery monitoring.
|
private TextView |
textDeviceInfo
The text view that shows the collected information about the battery.
|
Constructor and Description |
---|
GeneralActivity() |
Modifier and Type | Method and Description |
---|---|
void |
buttonPushed(View view)
Method that is called when the button Start Sending Data is pushed.
|
protected void |
onCreate(Bundle savedInstanceState) |
protected void |
onDestroy() |
protected void |
onPause() |
protected void |
onResume() |
protected void |
onStart() |
protected void |
onStop() |
private TextView textDeviceInfo
private ToggleButton button
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)