protected async Task RefreshPayments() { if (CrossConnectivity.Current.IsConnected) { try { App_activity_indicator.IsVisible = true; App_activity_indicator.IsRunning = true; string webaddress = Libraries.MobileConfig.GetWebAddress(Application.Current.Properties["campus"].ToString()) + string.Format("DataFinder.aspx?dataFormat=studentpayments®no={0}", Application.Current.Properties["userno"]); var content = await _client.GetStringAsync(webaddress); //await DisplayAlert("IUIU Mobile ", "Accessing Web Location: " + content, "OK"); MyDB DB = new MyDB(); if (content != "[]") { //await DisplayAlert("IUIU Mobile ", "Accessing Web Location: " + content, "OK"); // DB.resetFeesPayment(); DB.AddFeesPayment(content); } else { await DisplayAlert("Error! ", "No Results Found", "OK"); } App_activity_indicator.IsVisible = false; App_activity_indicator.IsRunning = false; } catch (Exception) { App_activity_indicator.IsVisible = false; App_activity_indicator.IsRunning = false; } } else { //await DisplayAlert("IUIU Mobile ", "No Connection. Saved Data will be used", "OK"); } }