I tried all the tutorials with custom renderer and I always have errors like constructor is version 2.5 etc ... Is there any other way to do rounded entry borders ?
Is there any nuget for Rounded Entry Borders in Xamarin Forms ?
How to get rid of Hamburger icon
I have been revisiting one of my old Xamarin apps and I noticed the hamburger icon appear on the bottom navigation bar.
Does anyone know how to get rid of this?
Xamarin.Forms iOS Build Failure
Have a Xamarin.Forms project with net standard 2 XF assembly driving UWP and iOS apps. Running XF v3.4.0.1008975 on Visual Studio Community 2017 15.9.4 on the latest Windows 10. Mac that is performing the build is running Mojave 10.14.1 and Visual Studio Mac 7.7.2 (Build 21).
UWP application builds and runs with no problems. iOS build was running without any problems up to about two weeks ago.
Now the iOS build throws out several MT0136 warnings for assemblies that are referenced by the net standard assembly and then crashes out with MT2001 that tells me that encountered an error while processing references of the net standard 2 assembly. This is after the detection of the signing identity output and the linker setting is do not link (debug mode).
Any guidance is greatly appreciated. Note that I already tried common approaches involving deleting bin/obj directories and mac build cache cleanup.
Which version of NDK should we use? not latest?
I was told that we should always use the version NDK according to below
https://github.com/xamarin/xamarin-android/blob/master/build-tools/android-toolchain/android-toolchain.projitems
as it seems 14b version is used, we can use highest 14b? which is from march 2017, pretty old. why is it? I tried used 18b today latest version and my project works fine in debug mode and compiles also fine in release mode. Problem occurs when i want to install the app in release more or try to create a package. I get this exception
Error XA5101: C compiler for target Arm was not found. Tried paths:
"C:\Android\android-ndk-r18b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64\bin\arm-linux-androideabi-gcc.exe;
C:\Android\android-ndk-r18b\prebuilt\windows-x86_64\bin\gcc"
So, can someone confirm from xamarin team if we can rely on android-toolchain.projitems file or we can simply use latest NDK, maybe my exception is something else?
What is equivalent to Android.Widget.ListView.NestedScrollingEnabled in versions before 21?
I am developing custom renderer for android to enable the nested scrolling for a ListView
and I'm using Android.Widget.ListView.NestedScrollingEnabled
attribute and it works fine but that attribute is added in API level 21 and I am wondering what is equivalent to it in versions before 21?
Can't debug on android devices in visual studio
Since I have started with Xamarin I have had problems getting the android debugging to work.
Every time I deploy a Xamarin Forms (PCL) project to my phone (LG G Flex 2, Android 5.1 lollipop), the deploy succeeds, enters debug mode for about 6 or 7 seconds, then goes out of the debug mode without any errors and closes the app on my phone. The app is installed however and I can use it afterwards.
I have a laptop and a pc, both running Visual Studio 2015 update 2, both have the same problem with every project.
These problems only occur when debugging for Android, not for Windows or Windows Phone, (no idea about IOS).
The output tab (Debug) only shows:
Android application is debugging. Couldn't connect to logcat, GetProcessId returned: 0
That last line is only showed on my laptop and not on my pc.
The output from Xamarin Diagnostics :
[D:RunShellCommand]: LGH955833bfe56 getprop [D:RunShellCommand]: LGH955833bfe56 getprop [D:RunShellCommand]: LGH955833bfe56 date +%s [D:RunShellCommand]: LGH955833bfe56 setprop "debug.mono.extra" "debug=127.0.0.1:8865:8866,timeout=1464533426,loglevel=0,server=y" [D:RunShellCommand]: LGH955833bfe56 am start -a "android.intent.action.MAIN" -c "android.intent.category.LAUNCHER" -n "Project.Droid/md5ebb414a62e6ccdc1a237d6523954780b.MainActivity" [D:RunShellCommand]: LGH955833bfe56 ps [D:RunShellCommand]: LGH955833bfe56 am force-stop Project.Droid [D:RunShellCommand]: LGH955833bfe56 setprop "debug.mono.connect" ""
As you can see it forces the application to close for some reason, but i have no idea what's causing it.
On my pc the output is about the same except for 2 extra lines concerning the logcat.
Any idea on how to fix this?
Custom tool ResXFileCodeGenerator failed to produce an output for input file
Severity Code Description Project File Line Suppression State
Error Custom tool ResXFileCodeGenerator failed to produce an output for input file 'Multilingual\AppMultilingualResource.he.resx' but did not log a specific error. shaot_standard
Xamarin Forms Draw grid over camera view
Hello,
I've been searching for some time now and the only thing I found was drawing over the camera view, but this was only in a Xamarin.Android project which is coded with .axml files. My question was: How can I draw a grid over the camera view using the xamarin cross platform project which is coded in xaml. I want to create something like what is done in photomath
UnitTest with FFImageLoading
I couldn't find any example for unit test, and I always get the error Could not load file or assembly 'FFImageLoading.Platform, Version=2.4.4.859, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified
ToolbarItem with Order="Secondary" not functional in iOS?
It is not a problem that they appear as Buttons (???) inbetween the Title and the ListView in iOS. But when I tap them the Clicked events are not fired.
Is that normal? How do I make them functional in iOS?
Three questions on ContextAction's behavior
First, Aren't ContextAction's available in UWP at all?
Second, I see the sliding for ContextAction buttons be visible is available in iOS only. Can't we get sliding for actions in Android?
Third, In iOS they appear only on sliding from right to left. I don't find any property to set to make them appear while sliding from left to right?
How can I get around these two issues?
Request permissions not working within PermissionsPlugin
For my Xamarin.Forms-App I'm using the PermissionsPlugin v2.0.1.
If no permission is granted, I want to request the user to do so by CrossPermissions.Current.RequestPermissionsAsync(Permission.Storage)
The problem is that the function always returns Unknown
instead of requesting the user for the permission. One time, it worked...but I don't know what I changed that it's not working anymore..
Here my code:
MainActivity.cs (Android-project)
public override void OnRequestPermissionsResult(int requestCode, string[] permissions, Permission[] grantResults)
{
base.OnRequestPermissionsResult(requestCode, permissions, grantResults);
PermissionsImplementation.Current.OnRequestPermissionsResult(requestCode, permissions, grantResults);
}
AndroidManifest.xml
<uses-sdk android:minSdkVersion="15" android:targetSdkVersion="25" />
<uses-permission android:name="android.permission.CAMERA" />
PermissionsExample.xaml.cs
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class PermissionExample
{
public PermissionExample()
{
this.InitializeComponent();
}
private async void Button_OnClicked(object sender, EventArgs e)
{
var requestedPermissions = await CrossPermissions.Current.RequestPermissionsAsync(Permission.Camera);
var requestedPermissionStatus = requestedPermissions[Permission.Camera];
await this.DisplayAlert("", $"Permission: {requestedPermissionStatus}", "ok");
}
}
Thanks for your help!
How to access child stacklayout into c#
In Xaml, I took one parent stacklayout and inside it, I took another child stacklayout. In c#, I can access parent Stacklayout but i am unable to access child stacklayout. how to access child stack layout in c#. Any suggestion please?
How to convert Base64 Image String to FileImageSource in xamarin forms?
My attached images are stored into local database as a Base64 String,I want to show the data to the ImageCarousel(Nuget plugin to view image sliding) View.so how to convert the base64 string to FileImageSource
here is my code
ObservableCollection imageSources = new ObservableCollection();
FileImageSource imageaData= FileImageSource.FromStream(() => new MemoryStream(Convert.FromBase64String(data)));
imageSources .Add(imageData);
how to convert base64 to FileImageSource?
hey guys, how can i implement a scratch screen or scratch ticket using skiasharp in xamarin forms
i have to overlay two canvas , so when i rub or drag my finger on the canvas then the second canvas or may be any image should appear in the area that i have rubbed ...Basically i want to achieve a scratch ticket effect, how can i achieve this
Thanks in advance
OpenTok Xamarin.Forms nuget Video Chat
Hi all, i created a nuget package for achieving video chat via OpenTok for Xamarin.Forms projects
What is the best way to do video conferencing in Xamarin Forms?
I'm looking at how to do video conferencing in IOS and Android,
Is there any SDK to do this? Or should it be done natively on each plataform?
Which is the best route?
I searched in the forum, but found only very old answers. And nothing concrete about the operation.
If someone has done something like this, please share it with us.
Thank you all
TokBox OpenTok SDK for Xamarin Forms.
Hi,
I have made proof of concept app for a video chat application in Xamarin Native using the below nuget packages (it works like a charm the source code is done by provider available here https://github.com/DreamTeamMobile/Xamarin.Opentok.Samples/tree/code-improvements)
https://www.nuget.org/packages/Xamarin.OpenTok.Android/
https://www.nuget.org/packages/Xamarin.OpenTok.iOS/
These nuget packages are basically a port of the native iOS/Android SDK's by TokBox for Xamarin, Created by DreamTeamMobile. I want to make use of them to for creating a Xamarin Forms application, I need some guidance how I can make the same functionality available to a Forms Project, considering that the package provider doesn't provides Xamarin Forms implementation. Would custom renderers help here.
Video Chat App Using the Xamarin forms
Hello Folks
Is there any to create the Video chat application using the xamarin forms.
Thanks
Laxman
Get information from Bluetooth with BLE plugin
I am using BLE plugin and try to make app to conect with Arduino using bluetooth. If I use some BLE terminal from store I get information from module. My app can find and connect to module, but I dont know how to read information from bluetooth.