EESTEC Android Workshops - 101 Java, OOP and Introduction to Android
EESTEC Android Workshops - 103 The Internet and JSON
8
EESTEC Android Workshops 103 - The Internet and JSON
-
Upload
antonis-kalipetis -
Category
Documents
-
view
222 -
download
0
Transcript of EESTEC Android Workshops - 103 The Internet and JSON
![Page 1: EESTEC Android Workshops - 103 The Internet and JSON](https://reader031.fdocuments.in/reader031/viewer/2022032617/55a98cda1a28ab23048b4761/html5/thumbnails/1.jpg)
EESTEC Android Workshops
103 - The Internet and JSON
![Page 2: EESTEC Android Workshops - 103 The Internet and JSON](https://reader031.fdocuments.in/reader031/viewer/2022032617/55a98cda1a28ab23048b4761/html5/thumbnails/2.jpg)
The Internet
![Page 3: EESTEC Android Workshops - 103 The Internet and JSON](https://reader031.fdocuments.in/reader031/viewer/2022032617/55a98cda1a28ab23048b4761/html5/thumbnails/3.jpg)
Making Calls to a Server
Create a client
Create a request
Add parameters
Execute
![Page 4: EESTEC Android Workshops - 103 The Internet and JSON](https://reader031.fdocuments.in/reader031/viewer/2022032617/55a98cda1a28ab23048b4761/html5/thumbnails/4.jpg)
A task is a must!
![Page 5: EESTEC Android Workshops - 103 The Internet and JSON](https://reader031.fdocuments.in/reader031/viewer/2022032617/55a98cda1a28ab23048b4761/html5/thumbnails/5.jpg)
Javascript Object Notation
Has small footprint
Can be processed fast
Is object friendly
![Page 6: EESTEC Android Workshops - 103 The Internet and JSON](https://reader031.fdocuments.in/reader031/viewer/2022032617/55a98cda1a28ab23048b4761/html5/thumbnails/6.jpg)
How does it look like?
Objects are in brackets and Arrays are in square brackets
Types are evaluated dynamically, they are not
declared
![Page 7: EESTEC Android Workshops - 103 The Internet and JSON](https://reader031.fdocuments.in/reader031/viewer/2022032617/55a98cda1a28ab23048b4761/html5/thumbnails/7.jpg)
How to handle them in Android?
Using the class JSON, of course!
![Page 8: EESTEC Android Workshops - 103 The Internet and JSON](https://reader031.fdocuments.in/reader031/viewer/2022032617/55a98cda1a28ab23048b4761/html5/thumbnails/8.jpg)
NetworkHelperLet’s create a class, just to help us make calls!