In android xml file you can change font like bellow Some built in fonts names: Roboto regular Roboto italic Roboto bold Roboto bold italic Roboto-Light Roboto-Light italic Roboto-Thin Roboto-Thin italic Roboto-Condensed Roboto-Condensed italic Roboto-Condensed bold Roboto-Condensed bold italic Roboto-Medium Roboto-Medium
new AlertDialog.Builder(this) .setTitle(“Title in alert dialog”) .setMessage(“Message”) .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { // continue with positive input } }) .setNegativeButton(android.R.string.no, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { // continue with negative
Using Eclipse, create a new Android project and name it GPS.java. To use GPS functionality in your Android application, you’ll need to add the ACCESS_FINE_LOCATION permission to theAndroidManifest.xml file: In Android, location-based services are provided by the LocationManager class located
Accelerometer noise note If it is too slow to adapt to sudden change in position, do more rapid changes when angle(accel, acceleration) is bigger You can throw away single values that are way out of average. The |acc| does not
matrixR – rotation matrix R device coordinates -> world’s coordinates Rt= R-1 matrixI – inclination matrix I rotation around the X axis getInclination (I) – computes geomagnetic inclination angle in radians Open GL The rotation matrix can be used with
Accelerometer vs. Gyroscope
• Accelerometer senses linear movement, but worse rotations, good for tilt detection, Does not know difference between gravity and linear movement, shaking, jitter can be filtered out, but the delay is added • Gyroscope measure all types of rotation not
Light sensor Sensor.TYPE_LIGHT values = ambient light level in SI lux units SensorManager’s constants LIGHT_CLOUDY: 100 LIGHT_FULLMOON: 0.25 LIGHT_NO_MOON: 0.001 LIGHT_OVERCAST: 10000.0 (cloudy) LIGHT_SHADE: 20000.0 LIGHT_SUNLIGHT: 110000.0 LIGHT_SUNLIGHT_MAX: 120000.0 LIGHT_SUNRISE: 400.0 Proximity sensor Sensor.TYPE_PROXIMITY values: Proximity sensor distance measured in
Applications Resizing screen / tilt Environment adjustment of apps, user comfort Adjustment in cinema, prediction of movement Gaming AR AR Gaming AR Navigation Bar codes Geo – tagging, grafitti, recomendations.. Network of objects, locations and people, 3D social Giant distributed