android workshop week2
DESCRIPTION
Workshop I did for electrical engineering students with no OOP or Android knowledge to make a very simple app.TRANSCRIPT
1
Android workshop part 2
Welcome!
Jim Clermonts |Electrical Engineer
@JimClermonts
Library | Inheritance | Lifecycle | Stack | Linking | Object | Listening | Interface | Strings | Intents
2
Last week
Library | Inheritance | Lifecycle | Stack | Linking | Object | Listening | Interface | Strings | Intents
3
Android & Java library
Library | Inheritance | Lifecycle | Stack | Linking | Object | Listening | Interface | Strings | Intents
4Library | Inheritance | Lifecycle | Stack | Linking | Object | Listening | Interface | Strings | Intents
5
Inheritance
Super class
Sub class
1
23
45
Library | Inheritance | Lifecycle | Stack | Linking | Object | Listening | Interface | Strings | Intents
6
Android lifecycle
Library | Inheritance | Lifecycle | Stack | Linking | Object | Listening | Interface | Strings | Intents
7
StackingonCreate()
onPause()
onDestroy()
Library | Inheritance | Lifecycle | Stack | Linking | Object | Listening | Interface | Strings | Intents
8
Identity.java
etUsername : EditText etPassword : EditTextbtnLogin : Button
identity.xml
usernameFieldpasswordFieldloginButton
Linking
Library | Inheritance | Lifecycle | Stack | Linking | Object | Listening | Interface | Strings | Intents
9
Linking
Ctrl + Space:
Library | Inheritance | Lifecycle | Stack | Linking | Object | Listening | Interface | Strings | Intents
10
Primitive vs Reference variables
ByteShortIntLongFloatDoubleBooleanchar
EditTextButtonAccountScannerEtc….
Library | Inheritance | Lifecycle | Stack | Linking | Object | Listening | Interface | Strings | Intents
11
Object
Library | Inheritance | Lifecycle | Stack | Linking | Object | Listening | Interface | Strings | Intents
12
Listening
Library | Inheritance | Lifecycle | Stack | Linking | Object | Listening | Interface | Strings | Intents
13
Listening
Library | Inheritance | Lifecycle | Stack | Linking | Object | Listening | Interface | Strings | Intents
14
Interface
<<Interface>>
Library | Inheritance | Lifecycle | Stack | Linking | Object | Listening | Interface | Strings | Intents
15
View class
Create OnClickListener Object
Listen on login button
Parameter is a OnClickListener Object!
Inherit the methods!
Library | Inheritance | Lifecycle | Stack | Linking | Object | Listening | Interface | Strings | Intents
16
Last step:
Library | Inheritance | Lifecycle | Stack | Linking | Object | Listening | Interface | Strings | Intents
17
Strings
Library | Inheritance | Lifecycle | Stack | Linking | Object | Listening | Interface | Strings | Intents
18
Intents
Library | Inheritance | Lifecycle | Stack | Linking | Object | Listening | Interface | Strings | Intents
19
…0.0001% covered
“Workshop style” “Reference book”
1 2 3
Library | Inheritance | Lifecycle | Stack | Linking | Object | Listening | Interface | Strings | Intents