Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Intro to Android in 4 days
Search
Andrei Diaconu
December 17, 2015
Technology
0
15
Intro to Android in 4 days
Training for really basic Android concepts, way back in 2015.
Andrei Diaconu
December 17, 2015
Tweet
Share
More Decks by Andrei Diaconu
See All by Andrei Diaconu
On-device machine learning in Flutter
andreidiaconu
0
54
Flutter for Web
andreidiaconu
0
420
The road to your first million
andreidiaconu
0
26
Comparing multi-platform mobile frameworks
andreidiaconu
0
390
PostMuse - Startup Pitch Deck
andreidiaconu
0
54
If I made a product that did X, would you buy it?
andreidiaconu
0
53
Screen Transitions in Android
andreidiaconu
1
280
Performance Tools on Android
andreidiaconu
0
450
Mobile Testing in the cloud
andreidiaconu
0
1.4k
Other Decks in Technology
See All in Technology
リファクタリングへの耐性が高いモデルベースの統合テストの紹介 / Model-Base Integration Test for Refactoring
yuitosato
5
1.5k
日経ビジュアルデータにおける スクロールテリングと地図/nikkei-tech-talk-26
nikkei_engineer_recruiting
0
160
とあるユーザー企業におけるリスクベースで考えるセキュリティ業務のお話し
4su_para
0
250
顧客が本当に必要だったもの - パフォーマンス改善編 / Make what is needed
soudai
21
5.8k
サイロ化した金融システムを、packwerk を利用して無事故でリファクタリングした話
coincheck_recruit
3
3.2k
オニオンアーキテクチャで実現した 本質課題を解決する インフラ移行の実例
hryushm
13
2.7k
Jamstack でリニューアルするグリーグループのメディア
gree_tech
PRO
2
220
Databricksで構築する初めての複合AIシステム - ML15min
taka_aki
2
1.3k
分布で見る効果検証入門 / ai-distributional-effect
cyberagentdevelopers
PRO
2
550
Railway Oriented Programming を オニオンアーキテクチャに適用する by kotlin-result / Railway Oriented Programming in Onion Architecture by kotlin-result
yuitosato
2
210
品質の高い機能を”早く”提供するために技術的な面でチームでやったこと、やりたいこと
sansantech
PRO
2
230
なんで、私がAWS Heroに!? 〜社外の広い世界に一歩踏み出そう〜
minorun365
PRO
1
540
Featured
See All Featured
Rebuilding a faster, lazier Slack
samanthasiow
79
8.6k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
328
21k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
GitHub's CSS Performance
jonrohan
1030
460k
Building Applications with DynamoDB
mza
90
6k
Producing Creativity
orderedlist
PRO
341
39k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
106
49k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
231
17k
How to train your dragon (web standard)
notwaldorf
88
5.6k
Code Reviewing Like a Champion
maltzj
519
39k
How to Think Like a Performance Engineer
csswizardry
19
1.1k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
5
140
Transcript
Android Intro Vrei sa fii miliardar edition
4 zile 1. Setup + 1 Buton 2. Tipuri de
layout 3. Activitati 4. Salvarea datelor
Ziua 1 1. Setup Android Studio 2. Terminologie POO 3.
Structura fisiere 4. XML Layout 5. Java
https://developer.android.com/sdk/index.html
None
• Clasa • Obiect • Atribut • Metoda • Parametru
• Android Manifest • Resurse Android • Layout • Drawable
• Values • Java
Layout
Layout
Java
Ziua 2 • width, height • Tipuri de ViewGroup •
Layout-ul jocului nostru
Abc wrap_content Abc match_parent Ab 50px
LinearLayout
Abc Bcdef Gol
A B
A
A B
RelativeLayout
id view-ul pozitionat
ViewGroup • LinearLayout • RelativeLayout • FrameLayout • TableLayout •
GridLayout • PercentFrameLayout, PercentRelativeLayout ?
Intrebare Raspuns Raspuns Raspuns Raspuns
Intrebare luuungaaaaaaaaaaa aaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaa Raspuns Raspuns
Ziua 3 1. Populam ecranul cu date 2. Activitate de
final de joc 3. Intenturi intre activitati
Intent • actiune • parametri
Intent • explicite • implicite
context.startActivity(intent)
Intent explicit • Intent i = new Intent(context, FinalActivity.class); •
i.putExtra("key","value"); • startActivity(i);
Exemple implicite • ACTION_VIEW • ACTION_SEND
ACTION_VIEW • Intent i = new Intent(Intent.ACTION_VIEW); • i.setData(Uri.parse("http://google.com")); •
startActivity(i);
ACTION_SEND • Intent i = new Intent(Intent.ACTION_SEND); • i.putExtra(Intent.EXTRA_SUBJECT, "Subject
Here"); • i.putExtra(Intent.EXTRA_TEXT, "A body"); • startActivity(i);
Practica • Ecran de final • Validarea raspunsurilor • Legam
intrebarile intre ele • Inchidem ecranele din urma
Ziua 4 • Shared Preferences • Un ecran de start
• Numar de castiguri si pierderi • Extra
Shared Preferences • getSharedPreferences ("nume_fisier", MODE_PRIVATE)
Salvarea datelor • editor = sharedPreferences.edit() • editor.putInt("numar_castiguri", 5) •
editor.apply()
Citirea datelor • sharedPreferences.getInt("numar_castiguri",0)
Extra: Portret / Landscape • Calificatori de resurse • land
vs port • Practica
Extra: resurse online • AsyncTask<> • Permisiuni android INTERNET •
URL.openStream()
Keep in touch • https://www.facebook.com/ITst.Iasi • https://www.facebook.com/groups/androidiasi/