Hello,
Welcome to our Microsoft Q&A platform!
Xamarin.Android permits writing Android apps with C# instead of Java. To create a custom Application/View class, we need to add the Java/JNI constructor.
[Application]
public class CustomApplication : Application
{
protected CustomApplication(System.IntPtr javaReference, JniHandleOwnership transfer) : base(javaReference, transfer)
{
}
public override void OnCreate()
{
base.OnCreate();
}
}
Best Regards,
Jarvan Zhang
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.