Top Banner
EESTEC Android Workshops 103 - The Internet and JSON
8

EESTEC Android Workshops - 103 The Internet and JSON

Jul 18, 2015

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: EESTEC Android Workshops - 103 The Internet and JSON

EESTEC Android Workshops

103 - The Internet and JSON

Page 2: EESTEC Android Workshops - 103 The Internet and JSON

The Internet

Page 3: EESTEC Android Workshops - 103 The Internet and JSON

Making Calls to a Server

Create a client

Create a request

Add parameters

Execute

Page 4: EESTEC Android Workshops - 103 The Internet and JSON

A task is a must!

Page 5: EESTEC Android Workshops - 103 The Internet and JSON

Javascript Object Notation

Has small footprint

Can be processed fast

Is object friendly

Page 6: EESTEC Android Workshops - 103 The Internet and JSON

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

How to handle them in Android?

Using the class JSON, of course!

Page 8: EESTEC Android Workshops - 103 The Internet and JSON

NetworkHelperLet’s create a class, just to help us make calls!