Download - Android workshop week2
![Page 1: Android workshop week2](https://reader035.vdocuments.us/reader035/viewer/2022062312/554fb792b4c9053d018b4581/html5/thumbnails/1.jpg)
1
Android workshop part 2
Welcome!
Jim Clermonts |Electrical Engineer
@JimClermonts
Library | Inheritance | Lifecycle | Stack | Linking | Object | Listening | Interface | Strings | Intents
![Page 2: Android workshop week2](https://reader035.vdocuments.us/reader035/viewer/2022062312/554fb792b4c9053d018b4581/html5/thumbnails/2.jpg)
2
Last week
Library | Inheritance | Lifecycle | Stack | Linking | Object | Listening | Interface | Strings | Intents
![Page 3: Android workshop week2](https://reader035.vdocuments.us/reader035/viewer/2022062312/554fb792b4c9053d018b4581/html5/thumbnails/3.jpg)
3
Android & Java library
Library | Inheritance | Lifecycle | Stack | Linking | Object | Listening | Interface | Strings | Intents
![Page 4: Android workshop week2](https://reader035.vdocuments.us/reader035/viewer/2022062312/554fb792b4c9053d018b4581/html5/thumbnails/4.jpg)
4Library | Inheritance | Lifecycle | Stack | Linking | Object | Listening | Interface | Strings | Intents
![Page 5: Android workshop week2](https://reader035.vdocuments.us/reader035/viewer/2022062312/554fb792b4c9053d018b4581/html5/thumbnails/5.jpg)
5
Inheritance
Super class
Sub class
1
23
45
Library | Inheritance | Lifecycle | Stack | Linking | Object | Listening | Interface | Strings | Intents
![Page 6: Android workshop week2](https://reader035.vdocuments.us/reader035/viewer/2022062312/554fb792b4c9053d018b4581/html5/thumbnails/6.jpg)
6
Android lifecycle
Library | Inheritance | Lifecycle | Stack | Linking | Object | Listening | Interface | Strings | Intents
![Page 7: Android workshop week2](https://reader035.vdocuments.us/reader035/viewer/2022062312/554fb792b4c9053d018b4581/html5/thumbnails/7.jpg)
7
StackingonCreate()
onPause()
onDestroy()
Library | Inheritance | Lifecycle | Stack | Linking | Object | Listening | Interface | Strings | Intents
![Page 8: Android workshop week2](https://reader035.vdocuments.us/reader035/viewer/2022062312/554fb792b4c9053d018b4581/html5/thumbnails/8.jpg)
8
Identity.java
etUsername : EditText etPassword : EditTextbtnLogin : Button
identity.xml
usernameFieldpasswordFieldloginButton
Linking
Library | Inheritance | Lifecycle | Stack | Linking | Object | Listening | Interface | Strings | Intents
![Page 9: Android workshop week2](https://reader035.vdocuments.us/reader035/viewer/2022062312/554fb792b4c9053d018b4581/html5/thumbnails/9.jpg)
9
Linking
Ctrl + Space:
Library | Inheritance | Lifecycle | Stack | Linking | Object | Listening | Interface | Strings | Intents
![Page 10: Android workshop week2](https://reader035.vdocuments.us/reader035/viewer/2022062312/554fb792b4c9053d018b4581/html5/thumbnails/10.jpg)
10
Primitive vs Reference variables
ByteShortIntLongFloatDoubleBooleanchar
EditTextButtonAccountScannerEtc….
Library | Inheritance | Lifecycle | Stack | Linking | Object | Listening | Interface | Strings | Intents
![Page 11: Android workshop week2](https://reader035.vdocuments.us/reader035/viewer/2022062312/554fb792b4c9053d018b4581/html5/thumbnails/11.jpg)
11
Object
Library | Inheritance | Lifecycle | Stack | Linking | Object | Listening | Interface | Strings | Intents
![Page 12: Android workshop week2](https://reader035.vdocuments.us/reader035/viewer/2022062312/554fb792b4c9053d018b4581/html5/thumbnails/12.jpg)
12
Listening
Library | Inheritance | Lifecycle | Stack | Linking | Object | Listening | Interface | Strings | Intents
![Page 13: Android workshop week2](https://reader035.vdocuments.us/reader035/viewer/2022062312/554fb792b4c9053d018b4581/html5/thumbnails/13.jpg)
13
Listening
Library | Inheritance | Lifecycle | Stack | Linking | Object | Listening | Interface | Strings | Intents
![Page 14: Android workshop week2](https://reader035.vdocuments.us/reader035/viewer/2022062312/554fb792b4c9053d018b4581/html5/thumbnails/14.jpg)
14
Interface
<<Interface>>
Library | Inheritance | Lifecycle | Stack | Linking | Object | Listening | Interface | Strings | Intents
![Page 15: Android workshop week2](https://reader035.vdocuments.us/reader035/viewer/2022062312/554fb792b4c9053d018b4581/html5/thumbnails/15.jpg)
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
![Page 16: Android workshop week2](https://reader035.vdocuments.us/reader035/viewer/2022062312/554fb792b4c9053d018b4581/html5/thumbnails/16.jpg)
16
Last step:
Library | Inheritance | Lifecycle | Stack | Linking | Object | Listening | Interface | Strings | Intents
![Page 17: Android workshop week2](https://reader035.vdocuments.us/reader035/viewer/2022062312/554fb792b4c9053d018b4581/html5/thumbnails/17.jpg)
17
Strings
Library | Inheritance | Lifecycle | Stack | Linking | Object | Listening | Interface | Strings | Intents
![Page 18: Android workshop week2](https://reader035.vdocuments.us/reader035/viewer/2022062312/554fb792b4c9053d018b4581/html5/thumbnails/18.jpg)
18
Intents
Library | Inheritance | Lifecycle | Stack | Linking | Object | Listening | Interface | Strings | Intents
![Page 19: Android workshop week2](https://reader035.vdocuments.us/reader035/viewer/2022062312/554fb792b4c9053d018b4581/html5/thumbnails/19.jpg)
19
…0.0001% covered
“Workshop style” “Reference book”
1 2 3
Library | Inheritance | Lifecycle | Stack | Linking | Object | Listening | Interface | Strings | Intents