Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all 81910 articles
Browse latest View live

i cant get the control id in code behind

$
0
0

xamarin forms.4.0.0.49 standard
VS v-16.1.4

hello all,
i cant get the control id in code behind, any suggestions?

--------- XAML

<Switch x:Name="swStart_definiteTime"
                    Toggled="Sw_Toggled"                    
                    VerticalOptions="Center"
                    HorizontalOptions="End"

                    IsEnabled="True"  
                    IsToggled="True"


                    ></Switch>

--------------------- codeB

 private void Sw_Toggled(object sender, ToggledEventArgs e)
        {
            var sw = ((Switch)sender);
            var sID = sw.Id.ToString();
            var isOn = sw.IsToggled;


Strange space at top of titleview in xamarin forms for UWP

$
0
0

Experiencing a very strange issue where the title view is cut by about 10 pixels, on UWP only, causing major UI inconsistencies with its android counterpart on a forms project.
markup is relatively simple, just a few stacklayouts, sample below, on a master detail page.
I've attached an image with a different background color, could I please ask for some suggestions? Many thanks

<NavigationPage.TitleView
>



<Image.GestureRecognizers>


</Image.GestureRecognizers>

            </Image>
            <Label Text="Edit Show" FontSize="10" TextColor="White" VerticalTextAlignment="Center" />
        </StackLayout>![](https://us.v-cdn.net/5019960/uploads/editor/bk/ufxlpzj1iclv.png "")

Build Problem Xamarin.iOS on new project

$
0
0

Hello everybody,

I'm facing a strange problem regarding Xamarin.iOS (in Xamarin.Forms projects).

Since 2 days, I'm unable to build Xamarin.iOS project with a strange error regarding "netstandard" :

MTOUCH : warning MT0136: Cannot find the assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' referenced from '/Users//.nuget/packages/xamarin.forms/4.0.0.425677/lib/Xamarin.iOS10/Xamarin.Forms.Core.dll'.
MTOUCH : warning MT0137: Cannot find the assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51', referenced by a Xamarin.Forms.Xaml.TypeConversionAttribute attribute in 'Xamarin.Forms.Core.dll'.
MTOUCH : warning MT0137: Cannot find the assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51', referenced by a Xamarin.Forms.Xaml.TypeConversionAttribute attribute in 'Xamarin.Forms.Core.dll'.
MTOUCH : warning MT0137: Cannot find the assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51', referenced by a Xamarin.Forms.Xaml.TypeConversionAttribute attribute in 'Xamarin.Forms.Core.dll'.
MTOUCH : warning MT0137: Cannot find the assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51', referenced by a Xamarin.Forms.Xaml.TypeConversionAttribute attribute in 'Xamarin.Forms.Core.dll'.
MTOUCH : warning MT0136: Cannot find the assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' referenced from '/Users/Shared/Dev/Xamarin/Tests/EmptyXamarinFormsProject/EmptyXamarinFormsProject/bin/Debug/netstandard2.0/EmptyXamarinFormsProject.dll'.
MTOUCH : warning MT0136: Cannot find the assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' referenced from '/Users//.nuget/packages/xamarin.forms/4.0.0.425677/lib/Xamarin.iOS10/Xamarin.Forms.Xaml.dll'.
MTOUCH : warning MT5215: References to 'gdi32' might require additional -framework=XXX or -lXXX instructions to the native linker
MTOUCH : warning MT5215: References to 'kernel32' might require additional -framework=XXX or -lXXX instructions to the native linker
MTOUCH : warning MT5215: References to 'comdlg32' might require additional -framework=XXX or -lXXX instructions to the native linker
MTOUCH : warning MT5215: References to 'winspool' might require additional -framework=XXX or -lXXX instructions to the native linker
MTOUCH : warning MT5215: References to 'user32' might require additional -framework=XXX or -lXXX instructions to the native linker
MTOUCH : warning MT5215: References to 'shell32' might require additional -framework=XXX or -lXXX instructions to the native linker
MTOUCH : warning MT5215: References to 'oleaut32' might require additional -framework=XXX or -lXXX instructions to the native linker
MTOUCH : warning MT5215: References to 'gdiplus' might require additional -framework=XXX or -lXXX instructions to the native linker
MTOUCH : warning MT5215: References to 'gdi32' might require additional -framework=XXX or -lXXX instructions to the native linker
MTOUCH : warning MT5215: References to 'user32' might require additional -framework=XXX or -lXXX instructions to the native linker
MTOUCH : warning MT5215: References to 'libX11' might require additional -framework=XXX or -lXXX instructions to the native linker
MTOUCH : warning MT5215: References to 'libcups' might require additional -framework=XXX or -lXXX instructions to the native linker
MTOUCH : warning MT5215: References to 'gdiplus' might require additional -framework=XXX or -lXXX instructions to the native linker
MTOUCH : warning MT5215: References to 'kernel32' might require additional -framework=XXX or -lXXX instructions to the native linker
clang : error : linker command failed with exit code 1 (use -v to see invocation)
error MT5209 : Native linking error : framework not found Carbon

I faced this issue in an existing project so I tried to downgrade Xamarin.Forms (I worked with first version of Xamarin 4, and 3.6 also) but none of those downgrade helped me :(

I created a fresh new project that immediately having this issue.

I also downloaded "dotnet-sdk-2.2.300-osx-x64.pkg" but still cannot build.

Does someone faced this issue recently ?
I cannot build any of my project and some of them are currently in production with bug fixes in the pipe.

Any solution ?

Best regards,

Cyril

How can I test methods containing Application.Current

$
0
0

There are few methods which have Application.Current.Properties and Application.Current.SavePropertiesAsync methods. So how do i test methods having these two in them? I'm stuck after trying to use Unity container for them but its only working for Properties not SavePropertiesAsync. how can i implement it? How i have implemented it is:

public interface IAppProperties { IDictionary<string, object> Properties { get; set; } }
`public class AppProperty:IAppProperties
{
public const string AppPropertiesName = "AppProperties";

    public IDictionary<string, object> Properties { get; set; }

    public AppProperty(IDictionary<string, object> appProperties)
    {
        Properties = appProperties;
    }
}`

In App xaml.cs
UnityContainer container = new UnityContainer(); if (!IsUnitTestCase) { container.RegisterInstance<IDictionary<string, object>>(AppProperty.AppPropertiesName, Application.Current.Properties); } else { container.RegisterInstance<IDictionary<string, object>>(AppProperty.AppPropertiesName, new Dictionary<string,object>()); } container.RegisterType<IAppProperties,AppProperty>(); Application.Current.Resources.Add("Unity", container);

A good way to reproduce a cartoon-like tone?

$
0
0

I made a paint software using SkiaSharp.
https://github.com/satochibi/UgomemoPro
Unlike other software, it reproduces cartoon-like tones.
As we use "SetPixel" of "SKBitmap" extensively,
Every time you need to repaint (when changing the window size / when undoing), the process becomes very heavy.
This method does not seem to be suitable for repainting in the first place.
Is there another way to handle it faster?

how to make a accelerator key for Xamarin.Forms button ?

$
0
0

I want make a accelerator key for my Xamarin.Forms button on UWP.
My app is a chat app, on Android the user like to press the Send Button.
But on UWP when it run on desktop, the user like to use the accelerator key to trigger the Send Button event.
Can I do this for UWP in Xamarin.Forms ?

How to detect Enter KeyPress in Editor?

$
0
0

In my app there is an multiple line Editor.
So when I press the Enter key there is not Complete event to raise.
I want process the KeyPress event in XAML, but there is no KeyPress event can use in XAML.

My app has android and UWP version.
In android because the user can touch the Send button to do the work, so I don't need handle the Keypress event in android.
In UWP because the user will be press the Enter key to do the work, so I need handle the Keypress event in UWP.

I want to use some event which can write in XAML like this:
<Editor KeyPress="SendButton_KeyPress"/>

But I don't know which function or keywords to use.
Some one help me?

How do I proceed? General question on data storing and defining variables

$
0
0

Hi there,

I need a bit of advice on a project I am supposed to do.
The goal is to create an App that runs on Windows and Android that
allows the user to enter data (mainly int) which are then used to calculate points based on the entered data.

The requirements are the following:

  • Several numerical data should be entered by the user (not all data entry fields must be filled out only the onces that matter for the user).
  • In the back of the application, these data are then used to calculate further values which are displayed next to the entered data.
  • Once the user has come to the final page and several entry fields have been filled with numbers, a final point count should be displayed.
  • On the following page, depending on the data entered, a number of questions are displayed, adressing certain entries (sort of an adaptive Checklist page).
  • Often the use will have to switch back and forth between pages, the entered data should not be erased while switching back and forward.
  • Once everything is finished (data entry, point count, checklist), the entered data should be saved in some sort of .txt (to be reused by the app on demand) as well as PDF and all caluclations and entries should be erased.
    I already did this with Excel and VBA Makros, but now I am told to perform this in form of a more user friendly way.

So, I started to wrap my mind around C# and to get familiar with Xamarin forms.
So far I have all the pages where the data should be entered (Labels & Entry) in a Grid with all the grid properties set.
The navigation between the contant pages works as well. And finally I managed to pass data from one page to another.

But my biggest challange now is to store these data that the user enters in forms of variables that I can call from any other page to do the background calculations (the calculations are rather complex).
How do I do that? How can I define the variables? I've watched nearly every online tutorial...some create class pages other do all sorts of strange things.
I am completely lost and all the online tutorials as well as the two books that I`ve bought are useless for my simple mind it seems.

What is the right thing to do here?

Your help is massively appreciated!!

Cheers,
Ulli


Bluetooth Plugin for Printers

$
0
0

Hello,
Please, does anyone know of a plugin or have a solution that really works and that prints bluetooth printer on both iOS and android?
I tried some from Github, but most of them only for Android, and did not worked as espected.

Regards

How to fit the height of CollectionView when it is wrapped by ScrollView?

$
0
0

Hi to everyone!
I do not know if is a problem or a misunderstanding by me (maybe the second one) but I can not success to set any height size to my CollectionView.

I am starting to use Xamarin and I was trying to use the CollectionView object when I realized that the height of this View is very large (and other View Objects had an addecuate size, for example Label Views).
The height is more or less like the height Page.
Firstly I think that was a problem with the inside objects. I tried with strings and custom objects without success.
After a lot of tests, I tried with an empty CollectionView (with the BackgroundColor set in LightBlue) and I realized that my problem is not in the collectionView objects, but is in the CollectionView object itself.
When I was trying to reproduce the problem to publish it here I realized that the CollectionView was fitting its own size to the page size (the height is still very big but less than the height Page).
So, finally, I checked my code and found that the CollectionView is inside a StackLayout and this StackLayout is in a ScrollView.
I mean:

    <ScrollView>
       <StackLayout>
          <CollectionView>
          </CollectionView>
       </StackLayout>        
    </ScrollView>

When I wrap the StackLayout in a ScrollView, the CollectionView height increase (I didn't measure it, but the height is more or less like the height page).

This height is very large and I didn't find an option to change its height.

I am using the latest stable version of Xamarin (3.6.0.344457). But I also checked the latest preliminar version (4.0.0.394984-pre) without success.
To test the program I am using an emulator with Android 9.0 (Api 28) and my own smartphone (Nexus 5X with Android 8.1, Api 27).

To reproduce the problem I created a new Mobile Application (Xamarin.Forms) project, select a Shell template and, in ItemDetailPage.xaml, I added the ScrollView, two labels and the CollectionView.
This is the full code of ItemDetailPage.xaml with my own modifications:

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http: //xamarin.com/schemas/2014/forms"<!-- Here I added a space between "http:" and "//" because I can not publish urls in the forum-->
             xmlns:x="http: //schemas.microsoft.com/winfx/2009/xaml"<!-- The same here-->
             x:Class="XamarinTest.Views.ItemDetailPage"
             Title="{Binding Title}">

    <ScrollView>
        <StackLayout Spacing="20" Padding="15">
            <Label Text="Text:" FontSize="Medium" />
            <Label Text="{Binding Item.Text}" FontSize="Small"/>
            <Label Text="Description:" FontSize="Medium" />
            <Label Text="{Binding Item.Description}" FontSize="Small"/>

            <Label Text="CollectionView:"></Label>
            <CollectionView BackgroundColor="LightBlue">

            </CollectionView>
            <Label Text="End CollectionView"></Label>
        </StackLayout>        
    </ScrollView>

</ContentPage>

I only want a CollectionView that it only has the necessary height, the enough to wrap it's own children.

Thanks in advance!

How to arrange native code items when using binding assemblies which project to embed them into

$
0
0

I’ve been working on integrating a vendor’s SDK “ThirdParty” into my Xamarin Forms app “MyApp”. I ran into something with jar/aar binding that I figured out a hack for, but it seems like there should be a better way.

Intended Xamarin code structure - 6 assemblies as follows:

Code Project - Description

(1) MyApp - Cross Platform core code

References: (4)

(2) MyApp.IOS - IOS App

References: (4) (6)

(3) MyApp.Android - Android App

References: (4) (5)

Here, I hope not to have to include in this high-level project: - libThirdPartyClient.so as AndroidNativeLibrary and - ThirdPartyclient.jar as AndroidJavaLibrary

(4) ThirdPartyConnector - Cross-Platform ThirdParty sub-project

References: Nothing from 1-6

Where I will house common code and abstractions of things located down in projects (5) and (6), which are to be used by project (1).

(5) ThirdPartyConnector.Android - Binding Assembly

References: (4)

Contains implementations of abstractions from (4).

Here, I Expect to include in this project: - libThirdPartyClient.so as AndroidNativeLibrary and - ThirdPartyclient.jar as AndroidJavaLibrary

(6) ThirdPartyConnector.IOS - Binding Assembly

References: (4)

Contains implementations of abstractions from (4).

What I run into at runtime is that unless I include the libThirdPartyClient.so and ThirdPartyclient.jar files inside assembly (3) MyApp.Android (I had originally included them in (5) ThirdPartyConnector.Android), the so and jar files do not get included into the final APK file. At runtime, then the app runs into JNI Java Class Not Found errors because the so and jar file content isn’t present/included in the built APK file.

What I really don’t like about it is that no code in assembly (3) has any direct calls into these subordinate java artifacts that are needed at a much lower level (5) in the solution at runtime. My project (3) is big enough on its own – hence my motivation to break things down into logical sub-projects.

Questions:

1.Does anyone have any suggestions on how these assemblies can better linked/embeded native items whem you have separate projects like (3) and (5)?

2.If one had, for example 4 more jars from other vendors/packages, would one have to also include all of these jar and aar files in my assembly (3) project? Seems messy, but doable if one really has to.

3.This post has been focused on Android, but do you have to do similar things for IOS, when it comes to embedding native code? Will I have to embed code used by project (6) into project (2)?

Any tips, pointers, or insight into how this works at compile-time will be greatly appreciated.

Child rendering behaviour mismatched after upgrading Xamarin.Forms (>4.0) in FlexLayout

$
0
0

Hi All,

I have a simple sample with the layout structure of FlexLayout which has more number of Grid. Each Grid has two children that are

  1. Grid with Label as a child
  2. Custom View (TouchView) which is inherited from View.

    <FlexLayout HorizontalOptions="Start" 
                                    VerticalOptions="Center" 
                                    Direction="Row" 
                                    Wrap="Wrap" 
                                    BindableLayout.ItemsSource="{Binding ChildItems}"
                                    JustifyContent="Start" 
                                    AlignContent="Start" 
                                    AlignItems="Start">
    
                <FlexLayout.BindableLayout.ItemTemplate>
                    <DataTemplate>
                        <Grid>
                            <Grid BackgroundColor="Aqua">
                                <Label TextColor="Black" Text="{Binding}"/>
                            </Grid>
                            <local:TouchView/>
                        </Grid>
                    </DataTemplate>
                </FlexLayout.BindableLayout.ItemTemplate>
    
            </FlexLayout>
    

Here TouchView represents like

public class TouchView:View
    {

    }

This FlexLayout wrap its child element correctly up to the Xamarin.Forms version of 3.6.0.539721

But after 4.0.0.425677 , it rendered be like in below

Note : Issue only with Android platform.

@Xamariners please check this and update us with possible solution. Actually it blocks our development cycle. Taking this a high priority and provide a solution ASAP.

I have attached the sample in both lower and higher version of Xamarin.Forms.

Regards,
Hemalatha M.

CollectionView not firing SelectionChangedCommand

$
0
0

I am using FreshMVVM to bind my view models to my views, and all commanding has worked great so far. However, I am not able to get the SelectionChangedCommand to fire when I change the selection of a CollectionView.

Full source code can be found here

Here is my XAML...

<StackLayout>
    <CollectionView SelectionMode="Single"
                    ItemsSource="{Binding Tags}"
                    SelectedItem="{Binding SelectedTag, Mode=TwoWay}"
                    SelectionChangedCommand="{Binding SelectedTagChangedCommand}">
        <CollectionView.ItemTemplate>
            <DataTemplate>
                <StackLayout>
                    <Label Text="{Binding .}" />
                </StackLayout>
            </DataTemplate>
        </CollectionView.ItemTemplate>
    </CollectionView>
</StackLayout>

And the page model...

public class MainPageModel : FreshBasePageModel
{
    public override void Init(object initData)
    {
        Tags = new ObservableCollection<string>() { "A", "B", "C" };
        SelectedTag = "B";

        base.Init(initData);
    }

    public ObservableCollection<string> Tags { get; set; }

    public string SelectedTag { get; set; }

    public Command SelectedTagChangedCommand
    {
        get
        {
            return new Command(() =>
            {
                   // ****** 
                   // ****** this is never called
                   // ****** 
            });
        }
    }
}

Can anyone see the issue here?

Transparent Color not working with ViewCellRenderer

$
0
0

Hi,
I have one Problem.
I created new ViewCellRenderer for Android.
If I put color "Transparent", SelectedItem gets Orange Color.
Other colors work without problems.
Does anyone have any solution ?
I'm testing on Android.

Thanks !

How to implement splitview in already created xamarin project ?

$
0
0

I have one Xamarin Application, while developing we only focused on look and feel for iphone. Now we want to implement SplitView for some page in our application.

But it is giving run time error :

System.InvalidOperationException: Title property must be set on Master page

I already set title as given in link inside searchTabletpage.cs file.

public SearchTabletPage()
        {
            Title = "Details";
            this.MasterBehavior = MasterBehavior.Default;

            Master = new SearchPage(true);
            Detail = new ContentPage()
            {
                Content = new StackLayout
                {
                    VerticalOptions = LayoutOptions.Center,
                    HorizontalOptions = LayoutOptions.Center,

                    Children = {
                        new Label { Text = "Select a Record", FontSize = Device.GetNamedSize(NamedSize.Large, typeof(Label)) }
                    }

                }

            };

            ((SearchPage)Master).ItemSelected = (searchDetail) =>
            {

                BusinessDetailPage businessDetail = new BusinessDetailPage(searchDetail.InfogroupId,searchDetail.Distance,searchDetail.FullAddress,searchDetail.Phone);
                Detail = businessDetail;
                if (Device.RuntimePlatform != Device.UWP)
                {
                    IsPresented = false;
                }
            };

            IsPresented = true;
        }
    }

I have followed steps given in blog: Bringing Xamarin.Forms Apps to Tablets

Please help.
Thanks in Advance.


Is XamlCompile broken in latest Forms/VS??

$
0
0

Just so happens that today is first time trying out the XamlC feature. At first I tried the assembly level attribute in my App.cs file:

[assembly: XamlCompilation(XamlCompilationOptions.Compile)]

After compiling, I was getting a bunch of errors that were all identical. I also got a a different error on any page using a TemplateControl. So I pulled it off the assembly level and put a single class-level attribute on one page, and it still failed with the same error:

Value cannot be null.
Parameter name: method  

I poked around on Stackoverflow and found that about a year ago someone had the same issue (here), but they said they resolved it by upgrading Xam Forms to latest version. Since I'm on the latest stable versions, I have no where to go there.

I tried this class-level attribute on several pages in my app and only found it to work on a single page in my entire app... just so happens this page has zero bindings in the XAML markup. I'm wondering if a bug was introduced that causes it to blow up.

Markup of page that doesn't work:

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="Prepify.App.Pages.MainMenu"
                         xmlns:controls="clr-namespace:ImageCircle.Forms.Plugin.Abstractions;assembly=ImageCircle.Forms.Plugin.Abstractions"
                         BackgroundColor="White"
             Title="Menu">
    <StackLayout VerticalOptions="FillAndExpand">
        <ListView
            Header="{Binding .}"
            SeparatorColor="{StaticResource dividerColor}"
            HasUnevenRows="True"
            ItemSelected="AppMenu_OnItemSelected"
            ItemTapped="AppMenu_OnItemTapped"
            ItemsSource="{Binding Items}"
            x:Name="appMenu">

            <ListView.HeaderTemplate>
                <DataTemplate>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="10"/>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="30"/>
                            <ColumnDefinition Width="10"/>
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="30"/>
                            <RowDefinition Height="80"/>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="5"/>
                        </Grid.RowDefinitions>

                        <BoxView Grid.ColumnSpan="4" Grid.RowSpan="4" BackgroundColor="{StaticResource grayDark}"/>
                        <controls:CircleImage Grid.Column="1" Grid.Row="1" HorizontalOptions="Start" VerticalOptions="End" Source="{Binding ProfileImageUrl}" WidthRequest="75" HeightRequest="75"/>
                        <Label Grid.Column="1" Grid.Row="2" Text="{Binding FullName}"/>
                        <ActivityIndicator Grid.Column="2" Grid.Row="2" IsVisible="{Binding IsBusy}" IsRunning="{Binding IsBusy}" Color="White" WidthRequest="20" HeightRequest="20" VerticalOptions="Center" />

                    </Grid>
                </DataTemplate>
            </ListView.HeaderTemplate>
            <ListView.ItemTemplate>
                <DataTemplate>
                    <ViewCell>
                        <StackLayout Orientation="Horizontal" >
                            <StackLayout.Padding>
                                <OnPlatform x:TypeArguments="Thickness" Android="15,15,15,15" iOS="25,12,15,12" />
                            </StackLayout.Padding>
                            <Image Source="{Binding Icon}" VerticalOptions="Center" WidthRequest="20" HeightRequest="20"/>
                            <Image WidthRequest="20"/>
                            <Label Text="{Binding Label}" VerticalOptions="Center" TextColor="{Binding LabelColor}" Style="{DynamicResource ListItemTextStyle}"/>
                        </StackLayout>
                    </ViewCell>
                </DataTemplate>
            </ListView.ItemTemplate>
        </ListView>
    </StackLayout>
</ContentPage>

Markup of only page that does work:

<?xml version="1.0" encoding="utf-8" ?>
<MasterDetailPage xmlns="http://xamarin.com/schemas/2014/forms"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    x:Class="Prepify.App.Pages.Root"
    xmlns:pages="clr-namespace:Prepify.App.Pages;assembly=Prepify.App"
    MasterBehavior="Popover"
    Title="Make Preparedness Easy">

    <MasterDetailPage.Master>
        <pages:MainMenu/>
    </MasterDetailPage.Master>

</MasterDetailPage>

I'm using
Visual Studio 2015
Xamarin.Forms 2.3.3.193
Xamarin.VS 4.3.0.784

Xamarin Forms Bluetooth Classic--Emergency!!

$
0
0

I am trying to write an app about listing the bluetooth device and connect with them with xamarin forms. I found a code from internet but it is for BLE and looks good, however, my target device is RN-42 which is a classic bluetooth device and of course I can't detect the device with my iPhone.

So Anyone know have to let the iOS app detect the RN-42 classic bluetooth?

Please give the specific steps about how to solve this problem, I have no experience about Bluetooth iOS app development.

i am in a hurry please help me, thanks!

Xamarin Forms - Shell Flyout without items?

$
0
0

Hi, I want to use "shell", but I'm trying to make the shell flyout content without items, I want to build my own content on that section, it there a way for do it?

I don't want to use the 1 picture + title.

I mean the middle part on this picture:

Receiving the data from the BLE device and draw on the iOS App

$
0
0

Hi I am planning to design an app that connect with a ble device and receive the x, y value from the device, then display the location based on the values of device on the picture coordinate.

So far I solved the connection part and have no idea how to get the values from the device and use them to draw the point, anyone can give me a clear example?

Various warnings when compiling Xamarin Forms solution from Android project.

$
0
0

Hi,

I'm getting various warning when compiling my Xamarin Forms solution but they all seem to be coming from the Android project and I've got no idea on how to resolve them. All together I've got 10 warnings but here are a few of the warnings which will hopefully help:

========================
Drawable.avd_hide_password_x warnings

Warning Skipping MyApp.Mobile.Droid.Resource.Drawable.avd_hide_password_1. Please check that your Nuget Package versions are compatible. MyApp.Mobile.Android

Warning Skipping MyApp.Mobile.Droid.Resource.Drawable.avd_hide_password_3. Please check that your Nuget Package versions are compatible. MyApp.Mobile.Android

Other warnings

Warning Skipping MyApp.Mobile.Droid.Resource.Id.design_menu_item_action_area. Please check that your Nuget Package versions are compatible. MyApp.Mobile.Android

Warning Skipping MyApp.Mobile.Droid.Resource.Id.fixed. Please check that your Nuget Package versions are compatible. MyApp.Mobile.Android

========================

I've googled it and found a couple of suggestion.

  1. Xamarin.Forms library may be out of date: I checked and it was. I've updated it since and it is now the very latest version but to no avail.

  2. Set the version of the Android project to 8. I created a new virtual device yesterday and when I did I had set it to Oreo 8.1 - API 27. When I checked the version, it was actually set to Pie 9.0 - I changed it to 8.1 but again, no luck

  3. Check Nuget packages packages are compatible. I've checked all the ones from the Android project and they are all from MonoAndroid 6 or higher all the way to 8.1 which I assume should be ok.

Any ideas on how I can remove these??

Thanks.

Thierry

Viewing all 81910 articles
Browse latest View live


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