Any thoughts? Thanks.
P.S: I can build and deploy it to my phone.
Any thoughts? Thanks.
P.S: I can build and deploy it to my phone.
Hi
I'm currently working on my first cross platform application using Xamarin.Forms.
I am connecting up to our existing SOAP web services. The service call seems to work fine, however, the object that I am trying to return back, some of the properties seems to get duplicated for some reason - the ones I seem to have to specify in the individual iOS & Droid projects (if that makes sense).
If you look at the attached image you will see there are two properties called "patientDetailsy" - one is NULL the other contains the information I am looking for.
When I try and pick up the info stored in the patientDetailsy I can only seem to get at the NULL value not the one with data in it.
Anyone know where I am going wrong here ?
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
Hi
I'm currently working on my first cross platform application using Xamarin.Forms.
I am connecting up to our existing SOAP web services. The service call seems to work fine, however, the object that I am trying to return back, some of the properties seems to get duplicated for some reason - the ones I seem to have to specify in the individual iOS & Droid projects (if that makes sense).
If you look at the attached image you will see there are two properties called "patientDetailsy" - one is NULL the other contains the information I am looking for.
When I try and pick up the info stored in the patientDetailsy I can only seem to get at the NULL value not the one with data in it.
Anyone know where I am going wrong here ?
I've been trying to center the text of my picker with no luck. I have a renderer to set things like text color and font size, but when I use the Control.TextAlignment = Android.Views.TextAlignment.ViewStart for android or Control.TextAlignment = UIKit.UITextAlignment.Center;, nothing happens at all. Neither the Title text nor the chosen list item is centered on the screen. In my PCL, the Picker is set to CenterAndExpand HorizontalOptions (CenterAndExpand and Center both seem to do the same thing), but all text is still left aligned. Is there anything I can do to set the Picker's text to center on screen? Thanks!
I have a number of listviews on multiple pages of a tabbed form.
They work fine.
As soon as I add a ActivityIndicator they stop loading automatically and I have to double tap them to get them to show the data.
Hi
Since upgrading my version of Visual Studio 2019 to the latest build I have been unable to build my project.
Is anyone getting this same message or do you know how to resolve it?
I am using Splat 2.0.0 as I am user ACR.UserDialogs 6.5.1 as part of a shared project.
.nuget/packages/splat/2.0.0/lib/netstandard1.1/Splat.dll" could not be resolved because it was built against the ".NETPortable,Version=v5.0" framework. This is a higher version than the currently targeted framework ".NETPortable,Version=v4.5,Profile=Profile111".
Many thanks in advance
I have this code to detect but only fire when scroll down for both method ItemAppearing and ItemDisappearing. Anyone please help
public MatchDetailListView() : base(ListViewCachingStrategy.RecycleElement)
{
ItemAppearing += MatchDetailListView_ItemAppearing;
ItemDisappearing += MatchDetailListView_ItemDisappearing;
}
private void MatchDetailListView_ItemDisappearing(object sender, ItemVisibilityEventArgs e)
{
}
private void MatchDetailListView_ItemAppearing(object sender, ItemVisibilityEventArgs e)
{
if (e.ItemIndex == 0)
{
MessagingCenter.Send(nameof(MatchDetailListView), "ScrollDown");
}
}
I would like to send a text file through Xamarin to WhatsApp...
string path2 = Application.Context.FilesDir.Path;
var filePath = Path.Combine(path2, "test.txt");
System.IO.File.WriteAllText(filePath, "Hello World");
Intent sendIntent = new Intent();
sendIntent.SetAction(Intent.ActionSend);
sendIntent.PutExtra(Intent.ExtraText, "Lista de Precos");
Java.IO.File file = new Java.IO.File(filePath);
Android.Net.Uri uta;
uta = Android.Net.Uri.FromFile(file);
or
uta = Android.Net.Uri.Parse("file:///" + filePath);
sendIntent.PutExtra(Intent.ExtraStream, uta);
sendIntent.SetType("text/plain");
sendIntent.SetPackage("com.whatsapp");
StartActivity(sendIntent);
I would like send the text file to WhatsApp....
Thank you,
Rogério
Mail: rogerio.ricardo@uol.com.br
Hello,
I created a project that targets Android 8 at first, but I needed to downgrade to target Android 5.1.
I changed target platform, then I uninstalled all packages and finally, installed Xamarin.Forms 2.3.3.180 that I knew it is the last version that supports Android 5.1.
When I installed it in the project, I am receiving the following warning:
Warning NU1701 Package 'Xamarin.Forms 2.3.3.180' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.
I thought that I could target .NET 4.6.1 in that project but I can select only until 2.0.
How can I solve this? Please don't ask me to use a more recent Android version. I must use Android 5.1.
I am using Visual Studio 2019.
Regards
Jaime
Hello,
I have a X.F. that needs to use native library and .net standard projects.
I add my c library, compiled for iOS (mylib.a) and Android (mylib.so), in the iOS and Android projects in the right places
I made simple tests calling this library from within iOS and Android projects and it works well
For my needs, in my solution I also have a .NET Stardard project, that 'talk' my mylib library.
Unforunately in .NET Standard projects I can't use preprocessing directive, so I am not able to make the right DLLImport declaration for iOS and Android,
for example like that:
#if Android
[System.Runtime.InteropServices.DllImport("mylib")]
private static extern int my_c_func(byte[] stato, UInt16 attempts);
#elif iOS
[System.Runtime.InteropServices.DllImport("__Internal")]
private static extern int my_c_func(byte[] stato, UInt16 attempts);
#endf
I wich way I should solve my problem?
Thanks
I need to create an app in xamarin forms where I read bluetooth devices and link, is it necessary to make the native app or can it be in forms?
try with the plugin.BLE but it tells me that the .NETFramework is 4.0 and needs 2.0!!! i help me please
As I know, when I create a Xamarin.Android project and use HttpClient with AndroidClientHandler, so AndroidClientHandler is the new handler that delegates to native Java/OS code instead of implementing everything in managed code. This is the recommended option.
But when I use Xamarin.Forms, How can I confirm HttpClient is Native or How can I use AndroidClientHandler?
Hi everyone,
When I want to create a user profile on Xamarin forms, how do I create?
I want the user to choose an image in your profile
I know there are lot's of samples of doing this but none of them works for me. I can change the colors, even the Text of a Tabbar Title but not the the size nor font. I tried through Custom TabbedPageRenderer. And I have a simple Demo project with a ExtendedTabbedPageRenderer.cs in the Android part.
The Application class is a FormsAppCompatActivity.
I've got the problem that I don't know how to use the new CheckBox element within a ListView. The only thing I've found is how to use a button within it.
Maybe someone already knows how to do this.
Edit: I know how to add the element itself but not how to sync this with my database. I want to change the boolean Completed once the CheckBox is clicked.
Here is the xmal part:
ListView x:Name="ToDoListView" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand" HasUnevenRows="true" ItemSelected="ToDoListView_ItemSelected"> <ListView.ItemTemplate> <DataTemplate> <ViewCell> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="*"/> <ColumnDefinition Width="7*"/> <ColumnDefinition Width="2*"/> </Grid.ColumnDefinitions> <BoxView CornerRadius="2" BackgroundColor="#494949" Grid.Column="0" Grid.ColumnSpan="3"/> <CheckBox Grid.Column="0" IsChecked="{Binding Completed}" CheckedChanged="CheckBox_CheckedChanged"/> <StackLayout Grid.Column="1"> <Label Text="{Binding Subject}" TextColor="White" FontSize="16" LineBreakMode="NoWrap" /> <Label Text="{Binding Assignment}" TextColor="White" FontSize="13" /> </StackLayout> <StackLayout Grid.Column="2" VerticalOptions="EndAndExpand" HorizontalOptions="EndAndExpand"> <Label Text="{Binding Deadline, StringFormat='{0:dd/MM/yyyy}'}" TextColor="White" FontSize="10"/> </StackLayout> </Grid> </ViewCell> </DataTemplate> </ListView.ItemTemplate> </ListView>
and here the code behind:
`private void CheckBox_CheckedChanged(object sender, CheckedChangedEventArgs args)
{
var todo = (ToDo)BindingContext;
Console.WriteLine(todo + " " + (ToDo)BindingContext);
if(todo != null)
{
if(todo.Completed==false)
{
todo.Completed = true;
}
else
{
todo.Completed = false;
}
}`
Sorry for the mess with using the Code formation in the Forum.
I have a CCAvenue account which I am using for my website Payment Gateway. Now I need it for my Mobile Application. Does any one have example or document for integrating CCAvenue in Xamarin Forms App?
Hi,
Why I am starting to see this error:
**You uploaded an APK that is not zip aligned. You will need to run a zip align tool on your APK and upload it again
**
when I try to archive an Android package?
I contacted Google and they told me it's nothing to do with the certificate..
Thanks,
Jassim
i am trying to display a hosted IMAGE from a secure web api it working
<WebView
HorizontalOptions="FillAndExpand"
Source="*://192.168.137.1:3581/Uploads/04-02_1.jpg"
VerticalOptions="FillAndExpand" />
but trying to display a hosted PDF from a secure web api it not working
<WebView
HorizontalOptions="FillAndExpand"
Source="*://192.168.137.1:3581/Uploads/3.pdf"
VerticalOptions="FillAndExpand" />
*= http