SlideShare a Scribd company logo
1 of 12
Connect
Xamarin.Android with
API
A L B I L A G A L I N G G R A P R A D A N A
R A D Y A L A B S
A L B I L A G A @ R A D Y A L A B S . C O M
@ A L B I L A G A
API
Image from : https://www.arxan.com
REST API
Image from : http://maxoffsky.com
Connect To API Sample Code
Connect To API Result
Connect To API (Demo)
JSON
Image from : http://datasymphony.com.au
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
JSON Example
JSON Parse Sample Code
JSON Parse Result
Build Model (Demo)

More Related Content

More from Albilaga Linggra Pradana

More from Albilaga Linggra Pradana (6)

Advanced xamarin development
Advanced xamarin developmentAdvanced xamarin development
Advanced xamarin development
 
Chatbot Development Using Bot Framework and Xamarin
Chatbot Development Using Bot Framework and XamarinChatbot Development Using Bot Framework and Xamarin
Chatbot Development Using Bot Framework and Xamarin
 
Pembangung aplikasi cross platform pelacak kendaraan dengan metode portable c...
Pembangung aplikasi cross platform pelacak kendaraan dengan metode portable c...Pembangung aplikasi cross platform pelacak kendaraan dengan metode portable c...
Pembangung aplikasi cross platform pelacak kendaraan dengan metode portable c...
 
Build UI with Xamarin.Android
Build UI with Xamarin.AndroidBuild UI with Xamarin.Android
Build UI with Xamarin.Android
 
Introduction to Xamarin
Introduction to XamarinIntroduction to Xamarin
Introduction to Xamarin
 
Azure Mobile Service On Android
Azure Mobile Service On AndroidAzure Mobile Service On Android
Azure Mobile Service On Android
 

Connect Xamarin.Android to Web Services