Most voted "xamarin" questions
Use this tag for questions about the Xamarin platform, which enables you to develop native mobile apps for iOS and Android using C# in Mono or Visual Studio. Ideally a specific framework/product tag should be used, unless the problem is general for all editions.
Learn more…494 questions
Sort by count of
-
0
votes2
answers128
viewsHow to optimize the performance of my application when doing Httpclient resquisitions
I’m developing an app using Xamarin.Forms, but I have a problem. Settings like color, company name, cover image and soon comes through a request for a call to web service whose return is a JSON, but…
-
0
votes0
answers247
viewsWhen sending a notification, how do I show the badge icon?
This is the Oncreate from my Mainactivity. Note that I have a badge with a value of 10 for testing. Now I need to make sure that by submitting a Notification, I can increment the badge icon with the…
-
0
votes0
answers31
viewsHow to display a single chart slice without repeating
I have a table called Itenslib. This table I keep the items of a sale. In this table, I made a sum for Profit and Total. The problem is that, for example, the sale with this ID:100030087 it has 5…
-
0
votes1
answer207
viewsScreen capture/screenshot button in Xamarin
I am developing an App and I need it to take a screenshot, but not by the standard procedure (home button + power), but by a button inserted on the screen. The button has already been created and is…
-
0
votes0
answers228
viewsProblem with APK Size generated by Visual Studio
I’m using the latest version of Visual Studio Community 2017, and when I get the apk, the same is getting the size 90 mega. I have already made several modifications and I did not get results. It is…
xamarin xamarin-forms xamarin.android apk visual-studio-2017asked 7 years, 1 month ago João Paulo 81 -
0
votes0
answers106
viewsHow to restrict the operation of some Android buttons
I’ve been trying a few days, some alternatives to lock the buttons of a tablet and then I need them back to work. I’ll show you some ways I’ve done and which one is operating in the best way…
-
0
votes0
answers87
viewsDesign layout Xamarin Android bugado Visual Studio 2019
Talk guys, I downloaded Visual Studio 2019 with Xamarin to work on a project, but when I open a layout to work the screen comes all blank, objects are there but do not appear. Can someone help me?…
-
0
votes1
answer138
viewscreate android text file on internal memory Xamarin.android
Well I’m trying to save an ip from the server where this my bd but I’m not getting because it does not give enough access to record the text file in the internal memory of the mobile phone, someone…
-
0
votes1
answer32
viewsIt is possible to change the background color of an image where this image is all white in Xamarin.Ios
I have an image that is white by default, it is possible to change this color via code? Cor ImagemFundobackground = CriarCor(RecursosCores.preto); ImagemFundo.BackgroundColor =…
-
0
votes1
answer56
viewsService stopped working when generating the chart
I was having trouble generating a graph, which is solved. The code below was ok and suddenly stopped, IE, the service is not running on account do not know what. At the time I call the Getservice…
-
0
votes1
answer505
viewsObject initialization can be simplified
After having made some updates to the nuget(18) packages, I went to compile my project and this error occurs: Object initialization can be simplified It points to those files in my code.…
-
0
votes0
answers73
viewsPHP to Json, create Json file
So, I have a php program that created a connection to the database. Now I want to know, necessarily I need to convert this information from php to Json to use in Xamarin ? And if it’s really…
xamarinasked 6 years, 1 month ago Matheus Alves 23 -
0
votes1
answer61
viewsGet image from "Resources" folder from android
Good morning, I have an android app made in C# via Xamarin. In this application, there is a report made in HTML that is displayed in a Webview. This report needs to display an image (PNG) that is…
-
0
votes0
answers193
viewsError placing conditional build on Assemblyinfo.Cs file
When I put this in my Assenblyinfo.Cs do not compile #if DEBUG [assembly: Application(Debuggable=true)] #else [assembly: Application(Debuggable=false)] #endif and gives error in almost all classes.…
-
0
votes1
answer104
viewsUse findViewById in all scopes or use a variable?
Which of the most recommended strategies for a good application performance? Using findViewById whenever we use some element of View or to do so only once by assigning to a variable? example in…
-
0
votes1
answer56
viewsHow to Save Simple Application Locations Data?
I need to save simple settings information, only for when the plicative loads it recover some variables. Is there any way to do this without resorting to SQL?? Ex: in windows programs I usually save…
-
0
votes2
answers225
viewsPublish app in Xamarin for Android 5 on Google Play
Google Play is not allowing me to publish an application that runs on Android less than 8.0. I am using the following settings: Compile using Android version: 8.1 Minimum Android version: 5.0 Target…
-
0
votes1
answer42
viewsEdittext.Selectionchanged event on Android
I need this event you have in Windows Forms: private void richTextBox_SelectionChanged(object sender, EventArgs e) { } Only for Xamarin, on Android. Note that I’m not using cross-Platform app. I can…
-
0
votes1
answer214
viewsXamarin Forms MVVM Binding Listview
I want to create a list of users, however, I am not able to perform Binding, the data is not displayed. If the Follows my structure: Listusuarios.xaml: <?xml version="1.0" encoding="utf-8" ?>…
-
0
votes1
answer965
viewsThe $(Targetframeworkversion) is Less than the minimum required for Xamarin.Forms (8.1)
The following error is occurring when compiling an app: The $(TargetFrameworkVersion) for Representantes.Android (v8.0) is less than the minimum required $(TargetFrameworkVersion) for Xamarin.Forms…
-
0
votes1
answer53
viewsRealm . NET - Create object copy
Guys I’m having trouble using Realm, in . NET with Xamarin. I can usually add, update or delete objects from a Realm. But like the pro version . NET does not have a copyFromRealm, here comes my…
-
0
votes1
answer72
viewsPackage installation
I needed to copy an entire class into my PCL project (Xamrin.Forms). And it’s giving error on three using which are: using System.Web; using System.Net.Sockets; using System.Security.Cryptography; I…
-
0
votes1
answer254
viewsImages disappearing from my application using Xamarin Forms
I made an application using Xamarin Forms Cross Platform, at first I only need the android version of it so I don’t care about IOS and Windows. The app is working properly when I test it on one of…
-
0
votes1
answer34
viewsC# code for Searchbar
I am trying to create a Searchbar in my code. It is only to understand the structure and syntax of the commands. After following some tutorials, I arrived at the following structure (attached). The…
-
0
votes0
answers503
viewsPass json format parameter to consume service post in app Xamarin.Forms
In my App I have this method to consume the service post (still writing the method): public async Task<string> PostIndicador(string jsonValue) { client = new HttpClient(); string url =…
-
0
votes1
answer73
viewsHow to access in Viewmodel, a Listview q is in a View?
So I have a page called Filmeview on it I have: <ListView BackgroundColor="WhiteSmoke" SeparatorColor="Blue" x:Name="listaFilme"> and I have a Viewmodel class: FilmeService filmeService = new…
-
0
votes0
answers113
viewsMy app aborts when trying to consume Rest
It has a Rest service that my android App needs to consume. For this I have to send a parameter in json format. It turns out he aborts the moment he consumes the Service. That’s the code I have for…
-
0
votes1
answer22
viewsCan or cannot Notifypropertychanged exist in the public properties of a Model?
Hi, I’m creating an App with the MVVM standard but some related issues I’m not able to clarify on the subject, I’ll leave the App link here If anyone wants to see to point out some possible mistake…
-
0
votes1
answer37
viewsHow to set a #if or #define conditionally?
Good afternoon, everyone... I’m helping a staff to make a PC game mod compatible with their Android version (Stardew Valley). The problem is that I need to use methods that only exist in the android…
-
0
votes0
answers106
viewsXamarin Forms - Application closes when access certain Forms
I’m having a problem in APP, the application works perfectly when debugging it being on mobile(android) as in emulator. However, when I put it in production and installed by Google Play, only some…
-
0
votes2
answers63
viewsHow to center 02 Textview of Videoview
I have 02 Textview and I want to put them in the center of a Videoview where a text is on top of each other. <?xml version="1.0" encoding="utf-8"?> <LinearLayout…
-
0
votes0
answers32
viewsVisual Studio - Xaml expanding alone
Visual Studio 2019. When I type "<" to include a new component, all of the tags below are expanding, probably by generating an unopened tag error, how to solve this problem so my code doesn’t…
-
0
votes0
answers10
viewsBLE plugin limit Bluetooth connection by distance
need to perform a bluetooth connection of an app in Xamarin with another device. I found a plugin called Plugin.BLE. The point is this, the connection between the 2 devices should occur only if both…
-
0
votes0
answers12
viewsHow to insert text box over image.Svg in Xamarin. Forms?
I have an extension file SVG, which I will use as a structure for my layout, I was able to display the image using the extension Ffimageloading.Svg.Forms, I would like to insert on this image fields…
-
0
votes1
answer332
viewsXamarin: Android app does not load Https images
Guys I’m developing a Cross-platform App in Xamarin and I’m not able to upload https images from an api. If I perform a compilation on Windows Phone the images are normally loaded already on android…
-
0
votes0
answers38
viewsHow to use Bidingcontext to link Views to a Dictionary?
My Xamarin application has as one of its features, creating forms based on an object. I have been having trouble saving the data from this form. I have to go through the children of Stacklayout to…
-
0
votes1
answer2848
viewsHow to resolve System.Reflection.Targetinvocationexception: Exception?
My application (using Xamarin Forms) was working everything ok, more than anything when I click the login button it is being stopped triggering the following error:…
-
0
votes1
answer121
viewsWhen I charge my App class is not recognized
It says that Badeview does not exist in the current context in this line of sham.g.Cs [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Forms.Build.Tasks.XamlG", "0.0.0.0")] private…
-
0
votes0
answers113
viewsC# Xamarin: Sqlite table from Mappings classes (Entitytypeconfiguration<Class>)
I’m trying to create some tables on sqlite with VS Community 2017 (c# and Xamarin android) from classes that are defined by Entitytypeconfiguration. Below I try to better detail my difficulty. I…
-
0
votes0
answers42
viewsPick up Selected line in Datagrid Xamarin
I am developing an application in Xamarin-Forms using the MVVM standard and I have the following difficulty. On one of my screens I’m using a Datagrid to display some information separated by rows…
xamarin visual-studio-2015 xamarin-formsasked 6 years, 8 months ago Wagner Barbosa Do Nascimento 43 -
0
votes1
answer79
viewsXamarin - Observablecollections between 3 Forms
I have an app in development with a serious problem in passing data from one screen to another. When I started, I made a home screen with a listview, in it I had a searchbox where the user typed a…
-
0
votes1
answer699
viewsSend Json from client application and receive on Server
I have a problem sending a json from my client application to my server API. Json is generated correctly, and the POST request is made, but on the server side the following error is reported:…
-
0
votes0
answers414
viewsHow to convert a json return to a C# object display the result on the screen
I’m having a little trouble reading a JSON and convert to an Object and display the data on the screen using C#, I’m using the lib Newtonsoft and would like to know how to check if the data type is…
-
0
votes1
answer220
viewsHow to declare and pass a decimal variable from XAML to C#?
<StackLayout> <Label Text="Digite um Valor:" Margin="10" HorizontalOptions="Start" VerticalOptions="Start"/> <Entry Keyboard="Numeric"/> …
-
0
votes0
answers192
viewsQuestions about Picker in Xamarin.Forms
I am creating a mobile application where the user can register x ingredients and later can register products choosing which of the registered ingredients such product uses. In this perspective:…
-
0
votes1
answer36
viewsIs there a need for ". this" in an Android Xamarin project?
I’m rewriting an application that was originally written in Java in Android Studio. Now I’m rewriting in C# for Xamarin Android, so a doubt arose me, in several classes I came across the java code…
-
0
votes0
answers42
viewsDoubt in the Sendbird API to create a chat
Good evening, everyone, I’m doing a little project and I’m using the Sendbird API to create a chat, however I’m finding problems when receiving the message that was sent from one user to another,…
-
0
votes1
answer41
viewsLocal search with detail for each typed letter - Xamarin Forms
With each typed letter appears a white ball in the middle of the app (by the way is updating the list), I wish I could not have this. The mistake: The code: //Pesquisa localmente a cada letra…
-
0
votes0
answers189
viewsWhy does the Google Maps API work in the APK release, but it doesn’t show the map in the APK loaded in the Beta open testing store?
In APK release key goes. In store APK does not show the map. Follow the manifest: <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="br.com.blablabla.blablabla.android"…
-
0
votes2
answers127
viewsTwo fields in a Picker - Xamarin Forms
It is possible to have 2 fields in a Picker? Today I have a Category listing and I would like to be able to put the Category Code in front. The XAML code of Picker: <Picker x:Name="pckCategoria"…