Hi Nguyen Khoa Lu,
Thank you for contacting Syncfusion support.
1. SfPopupLayout Product version
Hi Nguyen Khoa Lu,
Thank you for contacting Syncfusion support.
We have checked reported issue “Java.Lang.NullPointerException when show Popup” with given settings, We are unable to replicate the issue from our side. As you instructed Popup settings added method named as “DisplayAlert” has called when load application. When load the page, popup has open with out any crash as expected. For your reference we have attached the tested sample following here. If the sample doesn’t meet your requirement, kindly modify the sample based on your scenario and revert us back with replication procedure and with following details,it will be helpful for us to give you a better solution.
1. SfPopupLayout Product version
2. Xamarin Forms version3. Issue replicated Android deviceSample link:https://www.syncfusion.com/downloads/support/forum/150197/ze/F1501971503577096.zipRegards,Deepika.
protected override void OnCreate(Bundle bundle)
{
...
global::Xamarin.Forms.Forms.Init(this, bundle);
Syncfusion.XForms.Android.PopupLayout.SfPopupLayoutRenderer.Init();
Or
// this refers to application context or Main Activity
Syncfusion.XForms.Android.PopupLayout.SfPopupLayoutRenderer.Init(this);
LoadApplication(new App());
} |
Hi,
Expericnced similar issue in after upgrading xamarin forms to version 5.. and Android project to Android X.
Adding
in the Adnroid Mainactivity class fixed the problem
Regards,
Robert M