Quantcast
Channel: Active questions tagged crash - Stack Overflow
Viewing all articles
Browse latest Browse all 7199

DisplayAlert Method causing crash in xamarin.form

$
0
0

I'm using two entry in my xamarin form application. I want to check whenever the user click on a button, if these entries are empty display an error. currently i'm using the following method:

            if (string.IsNullOrEmpty(EnAirflow.Text) || string.IsNullOrEmpty(EnPressure.Text))
        {
            DisplayAlert("Error", "Please fill all required information.", "OK");

        }

The code is working fine in debug mode on emulator. But when I changed it to release mode or create an apk file from it and testing on a physical device it cause crash. Can you please guide me how I can fix the problem.


Viewing all articles
Browse latest Browse all 7199

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>