Vote count:
0
How do I run this code at 1 second intervals or in "While(True)" loop with 1 second thread sleep code ?
private void GetCodeOnServer()
{
While(True)
{
WebClient _client = new WebClient();
string _code = _client.DownloadString(new Uri(@"http://myUrl/car"));
Toast.MakeText(this, "Code: " + _code, ToastLength.Long).Show();
}
}
asked 20 secs ago
I want create timer thread for android with Xamarin
Aucun commentaire:
Enregistrer un commentaire