Hi guys, i am trying bind data from webservice http://api.androidhive.info/contacts/ but when run the application it will keeps on loading in emulator
i am not aware what is the problem i have shared snapshot
and code please help me
public async void GetJSON()
{
//Check network status
if (NetworkCheck.IsInternet())
{
var client = new System.Net.Http.HttpClient();
var response = await client.GetAsync("http://api.androidhive.info/contacts/");
string contactsJson = await response.Content.ReadAsStringAsync();
ContactList ObjContactList = new ContactList();
if (contactsJson != "")
{
//Converting JSON Array Objects into generic list
ObjContactList = JsonConvert.DeserializeObject<ContactList>(contactsJson);
}
//Binding listview with server response
listviewConacts.ItemsSource = ObjContactList.contacts;
}
else
{
await DisplayAlert("JSONParsing", "No network is available.", "Ok");
}
//Hide loader after server response
ProgressLoader.IsVisible = false;
}