Search Posts

Category: Xamarin.Forms

Xamarin.Forms allows true cross platform all device development by compiling native apps from a shared PCL code base where XAML can be used to design the views.

Xamarin.Forms Dropbox integration (app folder)

Dropbox API

App backup / synchronization between devices Apps usually backup their content to the respective cloud to ensure local data isn’t lost, but there is of course no guarantee the user has activated those features. When working with Xamarin/Forms your app is available on more then one device, so you might want to sync files between the OS:s too – like an SQLite database for example. Complete Code for this tutorial DropboxService.cs GIST Dropbox v2 API SDK […]

Solve Android.OS.NetworkOnMainThreadException

Background Working with Xamarin.Android (or Xamarin.Forms with Android) you might encounter this error when making HTTP/REST calls to an API, even if you think your making the call async. So what’s up with that? The Culprit What can commonly happen is you got some nested async call like this (simplified):

While Login will begin to execute async and the nested call to Authenticate (signature async Task<TokenResponse>) will also do so the assignment to this.TokenResponse (a […]