Android Workshop
09 Dec 2013
Last Friday I organised an Android Workshop at HP. The target audience were Java developers. I divided the workshop in 7 steps and explained the basic concepts of Android application development through code samples. The code is available on GitHub:
- Step 1: Creation of a new project, with a Master/Detail Flow, introducing Fragments, Activities, Views, .. with different layout for tablets and smartphones. Demonstration of the Android application life cycle. https://github.com/bart-blommaerts/android-workshop/releases/tag/step-1
- Step 2: Introduction of SQLite database with service class to enable CRUD operations. https://github.com/bart-blommaerts/android-workshop/releases/tag/step-2
- Step 3: Added a new Activity to enable inserting new items in the SQLite database. https://github.com/bart-blommaerts/android-workshop/releases/tag/step-3
- Step 4: Added images to the list via a SimpleListAdapter. Explained how different resources can be used for different screen resolutions. https://github.com/bart-blommaerts/android-workshop/releases/tag/step-4
- Step 5: Added the image from the list to the detail Activity https://github.com/bart-blommaerts/android-workshop/releases/tag/step-5
- Step 6: Introduced camera + switch between Bitmap and Drawable in detail Activity. Demonstrated Toasts. https://github.com/bart-blommaerts/android-workshop/releases/tag/step-6
- Step 7: Demo of SensorEventListener to enable "shaking" the phone/tablet using the accelerometer. https://github.com/bart-blommaerts/android-workshop/releases/tag/step-7
The end result is not an actual (or useful) application, but demonstrates some of the core principles of Android development.