+ All Categories
Home > Mobile > Connect Xamarin.Android to Web Services

Connect Xamarin.Android to Web Services

Date post: 07-Apr-2017
Category:
Upload: albilaga-linggra-pradana
View: 176 times
Download: 0 times
Share this document with a friend
12
Connect Xamarin.Android with API ALBILAGA LINGGRA PRADANA RADYA LABS [email protected] @ALBILAGA
Transcript
Page 1: Connect Xamarin.Android to Web Services

Connect Xamarin.Android with APIALB IL AGA L INGGRA PRADANARADYA L ABS ALB I L AGA@RADYAL ABS .COM @ALB IL AGA

Page 2: Connect Xamarin.Android to Web Services

API

Image from : https://www.arxan.com

Page 3: Connect Xamarin.Android to Web Services

REST API

Image from : http://maxoffsky.com

Page 4: Connect Xamarin.Android to Web Services

Connect To API Sample Code

Page 5: Connect Xamarin.Android to Web Services

Connect To API Result

Page 6: Connect Xamarin.Android to Web Services

Connect To API (Demo)

Page 7: Connect Xamarin.Android to Web Services

JSON

Image from : http://datasymphony.com.au

Page 8: Connect Xamarin.Android to Web Services

JSON to Model• Check JSON and format JSON to here http://pro.jsonlint.com/ (optional)

• Convert JSON to C# model. To make it simple you can use http://json2csharp.com/ to make it simple

• Deserialize JSON. Use Newtonsoft.Json package to make it simple

Page 9: Connect Xamarin.Android to Web Services

JSON Example

Page 10: Connect Xamarin.Android to Web Services

JSON Parse Sample Code

Page 11: Connect Xamarin.Android to Web Services

JSON Parse Result

Page 12: Connect Xamarin.Android to Web Services

Build Model (Demo)


Recommended