[Solved] Building native apps for different platforms using Xamarin? [closed]

Just a quick : “Xamarin Pros and Cons” on Google leaded me to many results. At the end your team will have to make the decision. http://www.intellicore.co.uk/articles/4-pros-and-cons-of-mono-touch http://www.whitneyland.com/2013/05/why-i-dont-recommend-xamarin-for-mobile-development.html https://www.linkedin.com/groups/What-is-benefit-disadvantages-using-121874.S.5848849341191569409 You should try it next time. I also suggest you to try their framework with the free version, see how it suits your team. 4 solved … Read more

[Solved] when to use await key word? do I need it in this case?

no you don’t need to do that, you can use .Result if you don’t want to execute your code asynchronously , this code is perfectly fine : private void Button_Clicked(object sender, EventArgs e) { try { var getTokenQ = SecureStorage.GetAsync(“Save_Security_Question”).Result; if ((String.IsNullOrWhiteSpace(getTokenQ) == false)) { } else { } } catch (Exception ex) { DisplayAlert(“Message”, … Read more

[Solved] What is the used for in Xamarin Forms and can it be replaced with a value setting?

Using the new syntax, that would translate to: <Grid ColumnDefinitions=”*, 50″> For the complete specs on the new syntax, you can read this: https://github.com/microsoft/microsoft-ui-xaml/issues/673 Basically, <ColumnDefinition /> is the equivalent of <ColumnDefinition Width=”*” /> (* is the default value for the Width property). The width of a column can be expressed in 3 ways: Auto … Read more

[Solved] Downgrade the android version cause error [closed]

This is a bug that will be fixed in an upcoming release. To resolve this, change your Version to a version that is > API 19. https://bugzilla.xamarin.com/show_bug.cgi?id=56272 Otherwise upgrade to 15.3 in your Visual Studio Installer to receive this fix as it is included in Xamarin.Android 7.3.0.27 and above. solved Downgrade the android version cause … Read more

[Solved] How to set second label on InfoWindow xamarin map

You could get the CustomPin with the GetCustomPin method in the custom renderer like the sample in your above link. CustomPin GetCustomPin(Marker annotation) { var position = new Position(annotation.Position.Latitude, annotation.Position.Longitude); foreach (var pin in customPins) { if (pin.Position == position) { return pin; } } return null; } and in your public Android.Views.View GetInfoContents(Marker marker) … Read more

[Solved] Trying to change a Label from two enteries when Button pressed and display on another page? | Xamarin | C# [closed]

If you mean enter text in two labels is the enter text in two entrys . Here is a sample for reference : PageA – Xaml : <Entry x:Name=”entryone”/> <Entry x:Name=”entrytwo”/> <Button Text=”Push” Clicked=”Button_Clicked”/> ContentPage – Button_Clicked : private void Button_Clicked(object sender, EventArgs e) { SecondPage secondPage = new SecondPage(); secondPage.previousPageValue = entryone.Text + entrytwo.Text; … Read more

[Solved] No exception in method call UIImage.LoadFromData(null) [closed]

You either have a global exception handler, or you are calling that from a background thread and not awaiting the call to the async method so your exception is being swallowed. Example, just doing this: public override void ViewDidLoad() { base.ViewDidLoad(); var x = UIImage.LoadFromData(null); } you will get a System.ArgumentNullException: Value cannot be null … Read more

[Solved] How to update backup URL in app? Lets say for example Main URL is missing. How the back up url will accesible?

Have you seen this package Polly Polly is a .NET 3.5 / 4.0 / 4.5 / PCL library that allows developers to express transient exception handling policies such as Retry, Retry Forever, Wait and Retry or Circuit Breaker in a fluent manner. You could use it to catch the WebException then retry or switch out … Read more

[Solved] How set auto day/night mode google maps in Xamarin Forms

Install the Xamarin.Forms.GoogleMaps Nuget Package (source code available on GitHub) which has already implemented it on Xamarin.Forms. You can refer to the MapStylePage sample available here which basically explains you how to create original map styles using MapStyle With Google. You can use the wizard, select the Night theme from there and get the corresponding … Read more

[Solved] Why is my Parcelable Creator not working?

return new Set(parcel.ReadStringArray(), parcel.ReadBooleanArray()… At parcel.ReadBooleanArray() You have no boolean arrays in the constructor public Set ( string[] Jugador, int[] Games, int[] NoForzados, int[] Aces, int[] Winners, int[] DobleFaltas, int[] Primeros, int[] PrimerosGanados, int[] Segundos, int[] SegundosGanados) Did you forget to set jugado? 1 solved Why is my Parcelable Creator not working?