de.Android_Seminar
Class Sensor_Logging_for_Mobility

java.lang.Object
  extended by Activity
      extended by de.Android_Seminar.Sensor_Logging_for_Mobility
All Implemented Interfaces:
java.util.EventListener

public class Sensor_Logging_for_Mobility
extends Activity
implements java.util.EventListener

Author:
Kai This class is the main Activity and print the diagram and provides us with help of the menu key the other activities

Field Summary
static SensorController sensorController
           
 
Constructor Summary
Sensor_Logging_for_Mobility()
           
 
Method Summary
 boolean[] getSensorsChecked()
          This gives us all checked sensors
 boolean[] getSensorsPaint()
          This give us all Sensors which should be painted
 SensorType[] getSensorTyps()
          This gives us all sensors types
 void loadProperties()
          This starts our properties view
 void loadSending()
          This starts our sending view
 void loadTagging()
          This starts our tagging view
 void onCreate(Bundle savedInstanceState)
          Called when the activity is first created.
 boolean onCreateOptionsMenu(Menu menu)
          This we need for the Menu.
 boolean onKeyDown(int keyCode, KeyEvent event)
          This method catch the KeyEvent.
 boolean onOptionsItemSelected(MenuItem item)
          This is execute if one Item will be selected
 boolean onPreparePanel(int i, View view, Menu menu)
          This is called every time we enter the menu
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sensorController

public static SensorController sensorController
Constructor Detail

Sensor_Logging_for_Mobility

public Sensor_Logging_for_Mobility()
Method Detail

onCreate

public void onCreate(Bundle savedInstanceState)
Called when the activity is first created.


onKeyDown

public boolean onKeyDown(int keyCode,
                         KeyEvent event)
This method catch the KeyEvent. We change some key events


loadProperties

public void loadProperties()
This starts our properties view


loadTagging

public void loadTagging()
This starts our tagging view


loadSending

public void loadSending()
This starts our sending view


getSensorTyps

public SensorType[] getSensorTyps()
This gives us all sensors types

Returns:
SensorType[]

getSensorsChecked

public boolean[] getSensorsChecked()
This gives us all checked sensors

Returns:
boolean[]

getSensorsPaint

public boolean[] getSensorsPaint()
This give us all Sensors which should be painted

Returns:
boolean[]

onCreateOptionsMenu

public boolean onCreateOptionsMenu(Menu menu)
This we need for the Menu. It is called by the first time we start the menu


onPreparePanel

public boolean onPreparePanel(int i,
                              View view,
                              Menu menu)
This is called every time we enter the menu


onOptionsItemSelected

public boolean onOptionsItemSelected(MenuItem item)
This is execute if one Item will be selected