android
Android project
create a simple android project in android studio which will create a simple Hello World
app
app/res/layout/activity_my.xml
This is the layout for main activity
app/manifests folder
This contains the basic information of the app
app/build.gradle
drawable-
Directory for drawables like icons designed for different [densities] (https://developer.android.com/training/multiscreen/screendensities.html)
menu
minmap
You can put launcher icons here instead of drawables
values
Constant values like Strings and colors etc
#Android Sensors
Hardware based sensors directly interface with environment one to one. Software based sensors derive data from one or more hardware based sensor
We can access the sensors using Android Sensor Framework
Android sensor framework is part of android.hardware package
Two methods are important
* Co-ordinate system is defined with respect to the default orientation. For some devices the default orientation is landscape hence we should not assume that the default orientation is potrait
* The coordinate system dosent change as the orientation changes. It is fixed. This behaviour is same as OpenGL systems
* The co-ordinate system is with respect to the default orientation of devide. X is horizontal and points to right, Y is vertical and points up, Z points towards outside of screen face