Recreate Xamarin.Android App In Xamarin.Forms

Kwasi Asante 1 Reputation point
2021-06-11T16:29:05.11+00:00

I started building a Xamarin.Android app based on a java android project. I now need it to be deployed for Xamarin.IOS and Xamarin.UWP. I looked this up for a while now and I understand that doing this is unorthodox and not easy. However, I am required to do this so what are the recommended steps I should take to rebuild the Xamarin.Android for Xamarin.Forms?

Developer technologies | .NET | Xamarin
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2021-06-14T02:09:43.227+00:00

    Hello,​

    Welcome to our Microsoft Q&A platform!

    what are the recommended steps I should take to rebuild the Xamarin.Android for Xamarin.Forms?

    Firstly, Xamarin.Android is quite different from the Xamarin.Forms. You have to read the Xamarin.Forms document firstly.

    https://learn.microsoft.com/en-us/xamarin/get-started/what-is-xamarin-forms

    Create a first hello world application, then you can be familiar with XAML, XAML is a way to put the controls(it is the same as Xamarin.Android).

    Here are some points, please focus on them.

    If you want to custom Xamarin.Forms native controls, you can use custom renderer to achieve it.

    If you want to open a service like foreground service, broadcast receiver Or open a function for different platforms. DependenceService is a good choose.

    And if you want to add MVVM framework in your application, you can use data-binding

    Xamarin.Essentials provides developers with cross-platform APIs for their mobile applications. It write some functions for you, for example, Request permissions, device information, you do not need to use DependenceService to write it again.

    You can google following keywords, you will find some helpful article.

    Xamarin Native, Xamarin.Forms, Rewards without the Risk

    Best Regards,

    Leon Lu


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.