EESTEC Android Workshops - 103 The Internet and JSON

Post on 18-Jul-2015

219 views 0 download

Tags:

transcript

EESTEC Android Workshops

103 - The Internet and JSON

The Internet

Making Calls to a Server

Create a client

Create a request

Add parameters

Execute

A task is a must!

Javascript Object Notation

Has small footprint

Can be processed fast

Is object friendly

How does it look like?

Objects are in brackets and Arrays are in square brackets

Types are evaluated dynamically, they are not

declared

How to handle them in Android?

Using the class JSON, of course!

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