Professional Documents
Culture Documents
EE542 Android Presentation
EE542 Android Presentation
What is Android
Software stack for mobile devices
SDK provides tools and APIs to develop
apps
Major Components
in a vertical orientation
in relative position
Sensor mAccelerometer =
mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);
…
mSensorManager.registerListener(this, mAccelerometer,
SensorManager.SENSOR_DELAY_NORMAL);
BluetoothServerSocket
Receives connection requests
Returns a BluetoothSocket when connected
BluetoothSocket
InputStream object
OutputStream object
Location
LocationManager locman =
(LocationManager) getSystemService(Context.LOCATION_SERVICE)
GPS_PROVIDER NETWORK_PROVIDER
Location Listener
private class MyLocListener implements LocationListener
onLocationChanged(Location location)