Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all 204402 articles
Browse latest View live

Proper Error handling when we expect results from secondary functions

$
0
0

im building an android application and i have some second thoughts on some error handling case.

I have a method that gets data from the internet by calling this method:

public static string StoredDatesList
        {
            get => Preferences.Get(nameof(StoredDatesList), string.Empty);
            set => Preferences.Set(nameof(StoredDatesList), value);
        }
        public static async Task<string> GetDraws(Uri url, string date)
        {
            Dictionary<string, string> StoredDates = new Dictionary<string, string>();
            StoredDates = JsonConvert.DeserializeObject<Dictionary<string, string>>(StoredDatesList);
            var contents = string.Empty;
            HttpClient client = new HttpClient();

            if (StoredDates != null)
                if (StoredDates.ContainsKey(date))
                {
                    contents = StoredDates[date];
                }
                else
                {
                    var current = Connectivity.NetworkAccess;
                    if (current != NetworkAccess.Internet)
                        return null;
                    client = new HttpClient();
                    contents = await client.GetStringAsync(url);
                    var res2 = JsonConvert.DeserializeObject<RootObject>(contents.ToString());
                    if (180 == res2.content.Count)
                    {
                        StoredDates.Add(date, contents);
                        StoredDatesList = JsonConvert.SerializeObject(StoredDates, Formatting.Indented);
                    }
                }
            else
            {
                StoredDates = new Dictionary<string, string>();

                contents = await client.GetStringAsync(url);
                var res2 = JsonConvert.DeserializeObject<RootObject>(contents.ToString());
                if (180 == res2.content.Count)
                {
                    StoredDates.Add(date, contents);
                    StoredDatesList = JsonConvert.SerializeObject(StoredDates, Formatting.Indented);
                }
            }
            return contents;
        }

the if statement current != NetworkAccess.Internet checks if internet is available, when internet is not available i return null and i check if the data is null and im displaying a message(error, internet is not available etc). I find this approach very bad and im trying to think how is the proper way to handle this. i cannot show a message to the user from the GetDraws() function.

Maybe the correct way for this approach is to have a public variable like bool internetError = false; and to make if false every time i call GetDraws(), make it true if internet is not available and check its state after GetDraws? Or should i return as result of GetDraws() the error and check first if the result match of any errors? An issue i have with returning the error message is that i cannot use GetString() function because it is a simple static class with no Android context and in that way i will not have all the application text in the strings.xml. Is maybe a good idea to pass in the GetDraws the context and then do context.GetString()?

Internet connection is not necessary every time GetDraws() is used and that is why im not checking before i called this function for internet connection


How to display an ImageSpan in a SpannableString from Vector Drawable

$
0
0

Im trying to create a spannable text that contains an ImageSpan, but the vector drawables has infinite size so we have to scale it some how, i have try this code with no luck, in some forums they say it should work:

var icon = AppCompatResources.GetDrawable(Activity, Resource.Drawable.ic_info);
            icon.SetBounds(0, 0, 20, 20);
            DrawableCompat.SetTint(icon, Color.White);
            var textView = layout.FindViewById<TextView>(Resource.Id.FeaturesContentTextView);
            var imageSpan = new ImageSpan(icon, SpanAlign.Baseline); //Find your drawable.

            var spannableString = new SpannableString(textView.Text); //Set text of SpannableString from TextView
            spannableString.SetSpan(imageSpan, textView.Text.Length - 1, textView.Text.Length, SpanTypes.InclusiveInclusive); 
            textView.TextFormatted = spannableString;

Now this code display the icon with the maximum width and height allowed from the parent layout
I also try to convert the vector drawable to bitmap with this code with no luck (i dont get any icon)

public static Bitmap GetBitmapFromVectorDrawable(Context context, int drawableId)
         {
             Drawable drawable = AppCompatResources.GetDrawable(context, drawableId);

             Bitmap bitmap = Bitmap.CreateBitmap(drawable.IntrinsicWidth,
                     drawable.IntrinsicHeight, Bitmap.Config.Argb8888);
             Canvas canvas = new Canvas(bitmap);
             drawable.SetBounds(0, 0, canvas.Width, canvas.Height);
             drawable.Draw(canvas);

             return bitmap;
         }
Bitmap bitmap = GetBitmapFromVectorDrawable(Activity, Resource.Drawable.ic_info);
            Drawable d = new BitmapDrawable(Resources, Bitmap.CreateScaledBitmap(bitmap, 80, 80, true));

How can I update the selection mode of a CollectionView at runtime

$
0
0

I tried to achieve this by binding to my ViewModel but it doesn't work. Thanks in advance

Turn on Bluetooth with button nested in MainPage and event handler code nested in MainActivity.cs

$
0
0
I have the following bluetooth enabler code in my MainActivity.cs and i intend for it to turn on bluetooth when i click on a button in the MainPage.xml,Problem is the MainPage.xaml.cs cant support the method because it does not contain Android dependencies but MainActivity.cs does because it has namespace for Android dependencies. How do i fire an event handler which is in the MainActivity.cs from MainPage.xaml?

private BluetoothManager _manager;

    public void BluetoothAndroid()
    {
        _manager = (BluetoothManager)Android.App.Application.Context.GetSystemService(Android.Content.Context.BluetoothService);
    }

    public void Enable(object sender, EventArgs e)
    {
        _manager.Adapter.Enable();
    }

    public void Disable( object sender, EventArgs e)
    {
        _manager.Adapter.Disable();
    }

OR SIMPLY USING MainPage.xaml.cs to call an event from MainActivity.cs, Thanks

What's the best way to read an Excel file?

$
0
0

Hi all,

I'm new to Xamarin.Mac, and i try to read an excel file in my. project.
I tried few NuGet packages, like ExcelDataReader, EPPlus etc. They're all complained about couldn't load the assembly.

Is there other way we could load xlsx file?

Thank you.

Xamarin.UITest how do i change state in my app in between tests?

$
0
0

The problem:
I am attempting to write some useful Ui-tests with Xamarin.UITest and have lately been trying to figure out a way to change the application’s state in between tests. This is in order to test app behavior in different scenarios where certain elements, object or components are either present, empty or missing.

One of the solutions that I have been trying to implement is the use of backdoor methods, that lets you invoke actions and change of state on the device during a test run. However, I seem to have a great deal of trouble getting the backdoor to react with the binding variables of the app.

Furthermore, is that I have not been able to find any practical examples or guides on how to change state whilst running tests on the app. At times it almost seems as if it is not a possible to do at all. The Microsoft documentation explain that state change during tests is one of the main purposes of these backdoor methods.

The documentation gives an overall understanding of how backdoors can be set up but does not go in depth about the contents of the backdoors. It explains how to access the backdoor method, but not what kind of work I need to do in order to interact with the state of my app.

What I need help with:
I need to figure out what to write in the backdoor method in order to modify/change with the state of my app during testing.

I want to interact with binding variables like these from the Xamarin.Forms template app:

I have not been able to find any examples on how to go about doing this whatsoever, or if it’s even possible this way. Any type of help is most appreciated.

Custom layout's LayoutChildren method not being called

$
0
0

I have a custom layout, who's code can be found here on Pastebin.

My layout worked when I put it in a blank page wrapped inside of a horizontal scroll view. That was fine and dandy.

I moved it over to a page in my application, which is now basically just a ContentPage with a StackLayout who's first child is this custom layout I'm working on, and now it doesn't appear. Nothing renders.

Using the debugger, I see that OnMeasure get's called twice in the layout, however, LayoutChildren is not invoked once, which means it nevers lays out the children nor does it set the internal width/height used for size requests with OnMeasure.

Is there any reason it would not be laid out? A simplified version of the XAML would be as seen here. C# code is the same as the PasteBin linked above.

Thank you for your time.

AdMob and Xamarin.forms

$
0
0

I have been through the forums and searches online and I have yet to find any samples or tutorials that work to get AdMob working with Xamarin Forms.

Does anyone know of a current admob tutorial, within the last... say 9 months... tutorial or sample that works with xamarin forms?


Implementing CollectionView Footer and Databinding

$
0
0

Can you please share the link or sample code to access the collectionview Footer in code. Also i need sample code and links to databind collection view. I have some labels in collectionview footer and want to set the label text during code.

Datepicker: Possible to bind to Nullable date value?

$
0
0

Hi everybody!

I have a nullable date field in my object and I want to bind a date picker to it. When the value is null, I would just want to show no value in the picker. Is this possible?

I tried

datepicker.SetBinding (DatePicker.DateProperty, vm => vm.DueDate, BindingMode.TwoWay);

but this results in a NullValueException when the view is shown.

Any ideas?

Customize TableSection

$
0
0

How can I achieve to customize the TableSection? I could not find a render or the possibility to add a view to the section like Monotouch.Dialog?

Xamarin.iOS Provisioning profile not showing up

$
0
0

I have a Xamarin app trying to build and deploy to the apple development using VS 2019. I am facing issues with the iOS provisioning profiles.
so not able to build my app and create deployment package.

The issue is I have created provisioning profile in and signing certificate with Apple, but it will not display as a option I can select in Visual Studio. When I select the Signing Certificate from Visual Studio with Mac Pairing it creates an new certificate with the same name on the MAC and has a Unknown Provisioning profile in the drop down.

Xamarin Picker Bind Selected Item Detail

$
0
0

I can write the product name from my picker in the txtProduct entry, but I cannot write the price of the selected product in the txtPrice entry section.

Thats my xaml code;

<StackLayout Orientation="Vertical" Padding="30,40,30,24" Spacing="7"> <Entry Placeholder="OrderId" FontSize="16" x:Name="txtId" IsVisible="True"/> <Entry Placeholder="Firma Adı" FontSize="16" x:Name="txtCompanyName"/> <Picker x:Name="myPicker" ItemDisplayBinding="{Binding ProductName}" SelectedItem="{Binding SelectedProduct}" Title="Ürün Seçimi" SelectedIndexChanged="myPicker_SelectedIndexChanged" IsVisible="True"/> <Entry x:Name="entCount" Placeholder="Adet Giriniz" Keyboard="Numeric" IsVisible="True"/> <Entry x:Name="txtProduct" IsVisible="True" IsEnabled="False"/> <Entry x:Name="txtPrice" IsEnabled="False" Text="{Binding SelectedProduct.ProductPrice}"/> <Editor Placeholder="Detaylar" FontSize="16" x:Name="txtDetail"/> <Button Text="Sepete EKle" x:Name="AddBox" Clicked="AddBox_Clicked"/> <Button Margin="0,15,0,0" Text="Sipariş Oluştur" BackgroundColor="#00a8cc" TextColor="White" x:Name="AddOrder" Clicked="AddOrder_Clicked"/> <Button Text="Sepete Git" x:Name="SepeteGit" Clicked="SepeteGit_Clicked"/> <StackLayout>

Thats my cs code;

` protected async override void OnAppearing()
{
base.OnAppearing();
_ = await firebaseHelper.GetAllProducts();
var allProducts = await firebaseHelper.GetAllProducts();
myPicker.ItemsSource = allProducts;
myPicker.SelectedItem = allProducts;
}

    private void myPicker_SelectedIndexChanged(object sender, EventArgs e)

{
var ProductName = myPicker.Items[myPicker.SelectedIndex];
txtProduct.Text = (ProductName);
}`

Thats my class code;

public class Product { public int ProductId { get; set; } public string ProductName { get; set; } public string ProductDetail { get; set; } public string ProductPrice { get; set; } }

Searchbar in Listview

$
0
0

Fill a Listview from a Firebase database.
So far so good.

Want to use a Searchbar to filter the listview.

But when i enter something it is going blanc and that is it.

What am i missing ?

 public partial class MainPage : ContentPage
    {
        FirebaseHelper firebaseHelper = new FirebaseHelper();


        List<Adresclub> list = new List<Adresclub>();


        public MainPage()
        {
            InitializeComponent();
            Ladenview();
        }
        async public void Ladenview()
        {

            var allAdresclub = await firebaseHelper.GetAllAdresclub();
           lstBal.ItemsSource = allAdresclub;

        }

        private void SearchBar_TextChanged(object sender, TextChangedEventArgs e)
        {

            lstBal.BeginRefresh();

            if (string.IsNullOrWhiteSpace(e.NewTextValue))
                lstBal.ItemsSource = list;
            else
                lstBal.ItemsSource = list.Where(i => i.Tegenstander.Contains(e.NewTextValue));

            lstBal.EndRefresh();

        }
    }
}

What are the best libraries for Charts

$
0
0

What are the good chart libraries for Xamarin.MacOs? I have been researching and I haven't been able to found something other than OxyPlot. I was just wondering what the community is using?
Also, if you are using OxyPlot, are you satisfied with it?


Can Xamarin use the same Android SDK folder with Android Studio?

$
0
0

I have Android Studio installed on my machine and I'd like to learn Xamarin. To save the disk space, after installing Visual Studio, I tried changing the Xamarin's Android SDK location to be the same folder as Android Studio but seems the Android Tools on Visual Studio cannot recognize the SDK tools which have been installed (from Android Studio) So, I wonder that "can Xamarin use the same Android SDK folder with Android Studio?" If so, how to configure it?

This seems not an issue on MacBook (my company's device) but only on Windows machine (my own computer)

Xamarin Java Binding Library multiple already defined errors ??

$
0
0

Hi all,

I have with issue that when I generate binding library for HERE-sdk.aar I got a lots of issues with multiple definitions:

  Com.Here.Sdk.Analytics.HEREAnalytics.cs(84, 20): [CS0102] The type 'HEREAnalytics.Options' already contains a definition for 'cb_getMap'
  Com.Here.Sdk.Analytics.HEREAnalytics.cs(86, 20): [CS0111] Type 'HEREAnalytics.Options' already defines a member called 'GetGetMapHandler' with the same parameter types
  Com.Here.Sdk.Analytics.HEREAnalytics.cs(93, 18): [CS0111] Type 'HEREAnalytics.Options' already defines a member called 'n_GetMap' with the same parameter types
  Com.Here.Sdk.Analytics.HEREAnalytics.cs(220, 20): [CS0102] The type 'HEREAnalytics.Properties' already contains a definition for 'cb_getMap'
  Com.Here.Sdk.Analytics.HEREAnalytics.cs(222, 20): [CS0111] Type 'HEREAnalytics.Properties' already defines a member called 'GetGetMapHandler' with the same parameter types
  Com.Here.Sdk.Analytics.HEREAnalytics.cs(229, 18): [CS0111] Type 'HEREAnalytics.Properties' already defines a member called 'n_GetMap' with the same parameter types
  Com.Here.Sdk.Analytics.HEREAnalytics.cs(322, 20): [CS0102] The type 'HEREAnalytics.Traits' already contains a definition for 'cb_getMap'
  Com.Here.Sdk.Analytics.HEREAnalytics.cs(324, 20): [CS0111] Type 'HEREAnalytics.Traits' already defines a member called 'GetGetMapHandler' with the same parameter types
  Com.Here.Sdk.Analytics.HEREAnalytics.cs(331, 18): [CS0111] Type 'HEREAnalytics.Traits' already defines a member called 'n_GetMap' with the same parameter types

Seems like in this partial class already generated some where cb_getMap member, but I do not seem ...
I have found that it could be fixed somehow with Metadata.xml, but in documentation there is not topic regarding multiple definitions for member of class ...

Have anyone face with the same issue ? How yo solve it ?

App crashes on launch (on Android 10 devices)

$
0
0

Hi, my app crashes a lot on Android 10 devices. I checked the crashes log via Google crashes (Play Console), and found this

android.runtime.JavaProxyThrowable: at MyApp.MainActivity.OnCreate (Android.OS.Bundle savedInstanceState) [0x00944] in <2db4792a6fec44ad9619bff36e7f27b2>:0
at Android.App.Activity.n_OnCreate_Landroid_os_Bundle_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_savedInstanceState) [0x0000f] in <836cd94f547548ce8d837927fb030ce6>:0
at (wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.2(intptr,intptr,intptr)
  at crc641dad7c57cb173049.MainActivity.n_onCreate (Native Method)
  at crc641dad7c57cb173049.MainActivity.onCreate (MainActivity.java:44)
  at android.app.Activity.performCreate (Activity.java:7957)
  at android.app.Activity.performCreate (Activity.java:7946)
  at android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1307)
  at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:3607)
  at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:3784)
  at android.app.servertransaction.LaunchActivityItem.execute (LaunchActivityItem.java:83)
  at android.app.servertransaction.TransactionExecutor.executeCallbacks (TransactionExecutor.java:135)
  at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:95)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2270)
  at android.os.Handler.dispatchMessage (Handler.java:107)
  at android.os.Looper.loop (Looper.java:237)
  at android.app.ActivityThread.main (ActivityThread.java:8125)
  at java.lang.reflect.Method.invoke (Native Method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:496)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1100)

This happened recently, do you have any ideas, thanks in advance.

I build my app using Android 9 SDK.

Visual Studio Community 2019 for Mac (Preview)
Version 8.8 Preview (8.8 build 493)
Installation UUID: 2d72c3eb-508c-4455-9246-a2fae1353e2f
    GTK+ 2.24.23 (Raleigh theme)
    Xamarin.Mac 6.18.0.23 (d16-6 / 088c73638)

    Package version: 612000090

Mono Framework MDK
Runtime:
    Mono 6.12.0.90 (2020-02/d3daacdaa80) (64-bit)
    Package version: 612000090

Xamarin Designer
Version: 16.8.0.167
Hash: d9d45ae09
Branch: remotes/origin/d16-8
Build date: 2020-07-23 07:13:26 UTC

Roslyn (Language Service)
3.7.0-4.20351.7+1348405bff1ef3f5b76782a3c7ad8c4244e77da5

NuGet
Version: 5.7.0.6702

.NET Core SDK
SDK: /usr/local/share/dotnet/sdk/3.1.401/Sdks
SDK Versions:
    3.1.401
    3.1.302
    3.1.301
    3.1.300
    3.1.200
    3.1.100
    3.0.101
MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/msbuild/Current/bin/Sdks

.NET Core Runtime
Runtime: /usr/local/share/dotnet/dotnet
Runtime Versions:
    3.1.7
    3.1.6
    3.1.5
    3.1.4
    3.1.2
    3.1.0
    3.0.1
    2.1.21
    2.1.20
    2.1.19
    2.1.18
    2.1.16
    2.1.14

Xamarin.Profiler
Version: 1.6.12.29
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

Updater
Version: 11

Xamarin.Android
Version: 11.0.99.9 (Visual Studio Community)
Commit: xamarin-android/d16-8/2bd5c33
Android SDK: /Users/user/Library/Android/sdk
    Supported Android versions:
        None installed

SDK Tools Version: 26.1.1
SDK Platform Tools Version: 30.0.2
SDK Build Tools Version: 29.0.3

Build Information: 
Mono: 83105ba
Java.Interop: xamarin/java.interop/d16-8@8f217e7
ProGuard: Guardsquare/proguard/proguard6.2.2@ebe9000
SQLite: xamarin/sqlite/3.32.1@1a3276b
Xamarin.Android Tools: xamarin/xamarin-android-tools/d16-8@2fb1cbc

Microsoft OpenJDK for Mobile
Java SDK: /Users/user/Library/Developer/Xamarin/jdk/microsoft_dist_openjdk_1.8.0.25
1.8.0-25
Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

Android SDK Manager
Version: 16.8.0.12
Hash: 3cde5ae
Branch: remotes/origin/master
Build date: 2020-07-17 22:52:10 UTC

Android Device Manager
Version: 16.8.0.12
Hash: 93db4c2
Branch: remotes/origin/master
Build date: 2020-07-17 22:52:34 UTC

Apple Developer Tools
Xcode 11.6 (16141)
Build 11E708

Xamarin.Mac
Xamarin.Mac not installed. Can't find /Library/Frameworks/Xamarin.Mac.framework/Versions/Current/Version.

Xamarin.iOS
Version: 13.22.1.2 (Visual Studio Community)
Hash: 0221d2223
Branch: d16-8
Build date: 2020-07-18 18:48:47-0400

Build Information
Release ID: 808000493
Git revision: 6827853e4c725ecf7b8ad956e72b295023d9623f
Build date: 2020-07-31 06:19:53-04
Build branch: release-8.8
Xamarin extensions: 6827853e4c725ecf7b8ad956e72b295023d9623f

Operating System
Mac OS X 10.15.6
Darwin 19.6.0 Darwin Kernel Version 19.6.0
    Thu Jun 18 20:49:00 PDT 2020
    root:xnu-6153.141.1~1/RELEASE_X86_64 x86_64

Does the picker have the valuemember function?

$
0
0

Good night, I am having a hard time adapting form vbnet to xamarin, however with the help of this forum, I am understanding many things.
I have a picker and I need a value to be displayed, but in the database add another value.

in vbnet
ComboBox1.DataSource = dataTable
ComboBox1.ValueMember = "id"
ComboBox1.DisplayMember = "name"

Combobox1 <---- SHOW NAME VALUE
ComboBox1.SelectedValue <---- INSERT ID VALUE

I want the picker to show "Name", but the database to insert "Item"

  public string Item { get; set; }
        public string Nombre { get; set; }

       static ObservableCollection<InventarioPickerItem> _ItemsInventario;
        public static ObservableCollection<InventarioPickerItem> All
        {
            get
            {
                if (_ItemsInventario == null)
                {
                    _ItemsInventario = new ObservableCollection<InventarioPickerItem>
                    {

                      new InventarioPickerItem { Item="IMP", Nombre="IMPRESORA",},
                        new InventarioPickerItem { Item="INF", Nombre="INFRAESTRUCTURA"},
                        new InventarioPickerItem { Item = "SRV", Nombre ="SERVIDOR"},
                         new InventarioPickerItem { Item="TEL", Nombre="TELEFONO"},
                          new InventarioPickerItem {Item = "TAB",Nombre ="TABLET"},
                           new InventarioPickerItem { Item = "USR", Nombre ="USUARIO"}
                    };
                }

                return _ItemsInventario;
            }
        }
    }

  private async void OnButton(object sender, EventArgs e)
        {

        var client = new HttpClient();
        var uri = new Uri(string.Format("Api/AgregarItemInventario?Codigo=" + HERE I NEED PICKER "ITEM" VALUE ));
        var request = new HttpRequestMessage(HttpMethod.Post, uri);
        var response = await client.SendAsync(request);

        }

<Picker 
                ItemsSource="{x:Static InventarioPicker:InventarioPickerItem.All}"
                ItemDisplayBinding="{Binding Nombre}"
                FontFamily="OS"
                Margin="0,5,0,0"
                TextColor="White"
                x:Name="PickerCodigo"
                Title="Seleccione el código..."
                TitleColor="{StaticResource TextPlaceHolderColor}" 
                />

thanks!!!!

Firebase authentication proider

$
0
0

Hello everyone

I am using using firebase auth, in Andorid in IOS, but I do not know how to implement login with Facebook and Google.

This is my code to login with email and password

Android

     public async Task<bool> LoginWithEmailAndPassword(string Email, string Password) {
            try {
                await FirebaseAuth.Instance.SignInWithEmailAndPasswordAsync(Email, Password);

                return true;

            } catch (FirebaseAuthWeakPasswordException e) {
                await Application.Current.MainPage.DisplayAlert("Error", e.Message, "ok");
                return false;
            } catch (FirebaseAuthInvalidCredentialsException e) {
                await Application.Current.MainPage.DisplayAlert("Error", e.Message, "ok");
                return false;
            } catch (FirebaseAuthInvalidUserException e) {
                await Application.Current.MainPage.DisplayAlert("Error", e.Message, "ok");
                return false;
            }
        }

IOS

     public async Task<bool> LoginWithEmailAndPassword(string Email, string Password) {
            try {
                await Auth.DefaultInstance.CreateUserAsync(Email, Password);
                return true;
            } catch (NSErrorException ex) {

                string message = ex.Message.Substring(ex.Message.IndexOf("NSLocalizedDescription=",
                    StringComparison.InvariantCulture));
                message = message.Replace("NSLocalizedDescription=", "").Split(".")[0];

                await App.Current.MainPage.DisplayAlert("Error", message, "ok");

                throw new Exception(message);
            }
        }
Viewing all 204402 articles
Browse latest View live


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