0

Can you give me example to do GET request in Android Xamarin Studio on non-main thread because when i make request using the System.Net application freezes to time when server give response.

user3537765
  • 301
  • 1
  • 4
  • 10
  • Use the methods returning a Task (they end in Async). I prefer to use HttpClient but for simple Get using WebClient you can use DownloadStringTaskAsync method. – SKall Jul 01 '14 at 23:28
  • Using Xamarin means that things like web requests are the same as in any .NET platform. There are hundreds of examples on SO and elsewhere of different ways to do this - I've linked to one example for you – Jason Jul 02 '14 at 00:14

0 Answers0