Search code examples
androidxamarinandroid-asynctasktask

Xamarin development with AsyncTask being deprecated


We are at the verge of starting an Mobile app project, and with our Microsoft stack we want to develop our app with Xamarin, to be more precise, Xamarin.Android and Xamarin.IOS (so not forms).

Because our current knowledge about Xamarin in general is very limited, I am wondering what impact the deprecation of AsyncTask will have on Xamarin development. To my knowledge Xamarin, and .NET are heavily dependent on using AsyncTask?

I know deprecated does not mean it will be unavailable or unusable, but with future development in mind, would it be wise to move to Xamarin development?

TL;DR: Should Xamarin Developers be worried now that AsyncTask is deprecated?


Solution

  • Short answer: no.

    Long answer: Xamarin can use native APIs (platform dependent) and .NET APIs (platform independent). If your app uses native APIs you can do whatever native developer can do with them, but they can work only on one platform. If they get deprecated you are in the same position as any native developer is (usually there is the workaround / new API). .NET APIs never get deprecated as it is Xamarin's job to implement them and keep them working if they use something that is deprecated, and it is impossible that .NET cannot be implemented, it is just a question of required effort. To make it clear, you are talking about the changes in native API and ask whether they influence .NET APIs. As discussed above in theory it could happen, but I don't think such problems have ever happened and this doesn't sound like something troublesome at all.