Android Application Development Crash Course
Total course duration: 3 Days
Each day has an 8-hour session
During the session participant will have hands on exposure to the Eclipse IDE. Students will also have to develop & deploy an app/game as the part of the course. The development of the app/game will take place as the course goes on, with each and every concept explained along the way. The time is evaluated with 10 participants per batch. If there are more students than number of days will increase by 1
Introduction to Android
Eclipse development environment
Android directory structure
src – Contains the source code of your projects
gen – Generated by eclipse – DO NOT EDIT
assets – Used to save your resources but in a different way .
res – Resources like images , xmls , strings etc are stored here
- hdpi – High definition pixel
- ldpi – low definition pixel
- mdpi – mid definition pixel
Manifest.xml – Contains application information such as permissions required for the app , app-name , number of activities etc.
MVC Architecture in General
o Model : What to render ?
o View : How to render ?
o Controller : Events, user input
In case of android –
Model – Database, network connection etc.
View – View such as button, checkbox, label etc.
Controller – Activity and Listeners
HELLO WORLD Program to understand Android App Life Cycle.
o What is layout. How android devices handle layout
o How to decide which layout to be use for the App or the game.
o LinearLayout - Aligning views one after the other views.
o RelativeLayout – A Layout where the positions of the children can be described in relation to each other or to the parent.
o FrameLayout - Generally used to display only one view, or views which overlap.
Every view has following properties
o Fill parent – Size = parent size in width or height
o Wrap Content – size = content size in width or height
o Weight – Used to give ratAndroid wrt to the parent
o Gravity – Aligning the view
String resources and String localization
o Statics strings that are used in the application should always be declared in the String.xml
file. This helps in 2 things
o Making the app more dynamic
o What are listeners?
o How they are handled?
o An interface in the Java programming language is an abstract type that is used to
specify an interface (in the generic sense of the term) that classes must implement.
o Interfaces include OnClickListeners , OnTouchListeners , OnItemClickListeners ,
OnItemChangedListeners etc .
o OnClickListener example
o TextView – is equivalent to label in other languages
o EditText – is equivalent to text box in other languages
o Button – the normal button
o Spinner – The dropdown box
o ListView – basic introduction
o GridView – basic introduction
o Datepicker – Date and time picker
o Used to interact between Activities; activities may be of the application itself or of
external applications such as facebook, camera, gallery etc .
o What is Canvas?
o Where one should use Canvas
o Example of small game using canvas.
Circle , Rectangle , Path , Image in Canvas
Using listeners on the Canvas