Introduction to Android Programming – Workshop Berglind Ósk Bergsdóttir CC-BY-SA 2012
Android applications Open development platform written in Java
The Android SDK tools compile the code into an Android package (.apk)
The Android operating system is a multi-user Linux system ( 2.6 ) in which each application is a different user.
Each process has its own instance of the Dalvik virtual machine.
Android Manifest.xml A must for every application in its root directory
Info about version number,  min sdk version, install location
User permissions
Declare activities, services, broadcast receievers... launchMode, screenOrientation, theme: android:theme="@android:style/Theme.NoTitleBar"
UI – resources folder Xml layout files layout-hdpi, -mdpi, -ldpi, -land, -xlarge
LinearLayout, RelativeLayout Drawables drawable-hdpi, -mdpi, -ldpi Menus and context menus
Values strings
UI –LinearLayout
Activity Typically represents one screen
Must implement  onCreate(Bundle savedInstanceState)
Needs a view (xml layout file)  setContentView(R.layout.activity_layout )
When a new activity starts, it is pushed onto the back stack "last in, first out" ListActivity
Fragments (API level 11> = 3.0>)
 
Activity Starting an activity

Android basics