Questions tagged [xamarin]

Xamarin is a platform consisting of Xamarin.iOS, Xamarin.Android, Xamarin.Mac and Xamarin Test Cloud. It allows you to write cross-platform native Apps for iOS, Android and Mac and follow your app through its entire lifecycle. The introduction of Xamarin.Forms supports Native UI development for iOS, Android and Windows

Filter by
Sorted by
Tagged with
428 votes
11 answers
214k views

What's the difference between .NET Core, .NET Framework, and Xamarin?

Microsoft now has .NET Core, .NET Framework and Xamarin (Mono) in its family. It seems to be a lot of overlap here. What's the difference between these types of .NET Platforms? When should I choose to ...
MeeChao's user avatar
  • 4,317
46 votes
2 answers
43k views

Use a local database in Xamarin

I have started using the Xamarin plugin for Visual Studio to create an Android app. I have a local SQL database, and I want to call it to display data. I don't see how I can do this. Is it possible?
user2631662's user avatar
3 votes
3 answers
20k views

Hamburger Menu Xamarin Forms (MasterDetailPage)

I'm new enough to use Xamarin, in my Xamarin Forms project I created a Master-Detail Page and in the ListView that represents the menu I wanted to put Title and Icon, for icon images I have to insert ...
Riccardo Pezzolati's user avatar
86 votes
16 answers
145k views

Xamarin.Forms ListView: Set the highlight color of a tapped item

Using Xamarin.Forms, how can I define the highlight/background color of a selected/tapped ListView item? (My list has a black background and white text color, so the default highlight color on iOS is ...
Falko's user avatar
  • 16.9k
49 votes
4 answers
39k views

How do I use SharedPreferences in Xamarin.Android?

I want to save and retrieve some application settings in my Xamarin.Android project. I know that in Android (java), I use the class SharedPreferences to store this information, but I do not know how ...
Richard Le Mesurier's user avatar
45 votes
6 answers
31k views

Xamarin.Android Proguard - Unsupported class version number 52.0

I'm trying to use Proguard in my Xamarin.Android project, yet the compilation fails with the error Unsupported class version number [52.0] (maximum 51.0, Java 1.7) I saw from those two questions that ...
Eino Gourdin's user avatar
  • 4,079
4 votes
1 answer
3k views

How can you restrict/control the navigation routes the user can visit based on login status/role?

For my Xamarin.Forms app, I am looking for a way to check if a user has the right role/authentication status to access a page. I know Angular has route guards that can be reused for different routes ...
Kevin van Schaijk's user avatar
55 votes
16 answers
61k views

Visual studio (2015) emulator for android not working - XDE.exe - Exit Code 3

I have created a new Blank App (Xamarin.Forms Portable) project in Visual Studio 2015. When I try to run Droid project in Visual Studio Emulator for Android, I just get a generic error message: ...
Ladislav Margai's user avatar
20 votes
3 answers
48k views

How to implement INotifyPropertyChanged in Xamarin.Forms

I am implementing a cart in Xamarin.Forms. In my cart page there is a ListView with data. Each of the cell contains a button to select the count of item and amount. In the cart view there is a grand ...
user avatar
7 votes
2 answers
5k views

Access the Android Special Folder Path by using Environment

I want to save my logs to a folder which I can access with windows explorer. For example I want to create my log in the following path This PC\Galaxy A5 (2017)\Phone\Android\data\MyApp\files So I ...
ertan2002's user avatar
  • 1,448
59 votes
2 answers
85k views

What is fatal signal 6 in android logcat [closed]

Im new to android development my app gets constantly killed when switching 11 times from activity and than it only says Fatal signal 6 (SIGABRT), code -6 in tid 9485 (Thread-141585) in my logcat....
Stefan van de Laarschot's user avatar
23 votes
10 answers
37k views

App not run in visual studio emulator for android in visual studio 2015

I create blank xamarin android project without add any code when i debug this project debugging without problem but when i run app with visual studio emulator for android emulator is running but not ...
m.h.bayan's user avatar
  • 281
173 votes
20 answers
150k views

Add bottom border line to UI TextField view in SwiftUI / Swift / Objective-C / Xamarin

I would like to keep the border at the bottom part only in UITextField. But I don't know how we can keep it on the bottom side. Can you please advise me?
dhaval shah's user avatar
  • 4,499
172 votes
3 answers
80k views

What is the difference between Xamarin.Forms and Xamarin Native? [closed]

I am confused between Xamarin.Forms and Xamarin native. What is the difference between the two? So what are the technical positives and negatives of using Xamarin.Forms over Xamarin Native?
Ajay Kumar's user avatar
  • 2,031
40 votes
11 answers
45k views

java Lang UnsupportedClassVersion Error in Xamarin Studio

I am getting the following error when I am building my project . How do I correct this ? C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(3,3): Error: java.lang....
Seinfeld's user avatar
  • 680
13 votes
1 answer
12k views

Should one create a bond with a Bluetooth LE device

For a Bluetooth project with Xamarin (Android API 21 and up) I would like to know if it is common to create a bond with a Bluetooth device. The current requirements are: The Bluetooth device is used ...
Caspar Kleijne's user avatar
3 votes
2 answers
1k views

Do I know if I need Multi-Dex enabled? (ClassNotFoundException)

Suddenly and seemingly for no reason at all, the following error starts presenting itself. After fighting it all day, I discovered enabling Multi-Dex resolved it. Is this error potentially caused by ...
maplemale's user avatar
  • 1,986
46 votes
7 answers
48k views

How to log in to Facebook in Xamarin.Forms

I want to make a Xamarin.Forms project, targeting iOS, Android and Windows Phone. My app needs to authenticate users using Facebook. Should I implement login for each platform independently, or use ...
Morten Lyhr's user avatar
63 votes
6 answers
77k views

How to use Push Notifications in Xamarin Forms

I have an app using Xamarin.Forms targeting IOS, Android and WP 8. I need push notification feature in my app. I have seen the pushsharp demos and it seems promising. But all the code I have seen is ...
Rohit Vipin Mathews's user avatar
56 votes
5 answers
76k views

Singleton httpclient vs creating new httpclient request

I am trying to create layer for webservice using HttpClient in my Xamarin.Forms mobile app. without singlton pattern with singleton pattern in first approach i am creating new http client object in ...
Hunt's user avatar
  • 8,175
47 votes
11 answers
41k views

Warning major version 52 is newer than 51, the highest major version supported by this compiler

Basicly I'm super newbie and started internship in IT company. I installed VS with Xamarin. The problem that I'm facing is very frustrating. So even when i create empty project I can't compile it and ...
T.Gelev's user avatar
  • 499
42 votes
2 answers
33k views

Global Exception Handling in Xamarin Cross platform

Can you please let me know how to handle the global exception(without App crash) in Xamarin Cross platform project.
Ashaar's user avatar
  • 467
26 votes
6 answers
44k views

How to make ObservableCollection thread-safe?

System.InvalidOperationException: Collection was modified; enumeration operation may not execute. I am adding/removing from an ObservableCollection which is not on a UI thread. I have a method names ...
ilight's user avatar
  • 1,622
21 votes
5 answers
28k views

Xamarin-System.UnauthorizedAccessException: Access to the path is denied

I'm trying to download a file and I'm getting System.UnauthorizedAccessException: Access to the path "/storage/emulated/0/Download/test.pdf" is denied. I have set required permission in Android ...
Melody's user avatar
  • 1,193
5 votes
1 answer
2k views

Convert .NET Standard class library to native aar/jar

Currently, we are developing a .NET Standard class library that will be used by different Xamarin.* platforms. I was wondering if there is a way to use the shared code in a native Android project (...
Tomer Domshlak's user avatar
3 votes
4 answers
13k views

How to get actual path from Uri xamarin android

I want to get actual path from Uri, when I select file using intent then it will be returning URI but below line of code not working for conversion URI to string path Open FilePicker public static ...
Kishan Donga's user avatar
  • 2,761
2 votes
1 answer
3k views

How to handle Firebase Notification i.e. Notification Messages and Data Messages in Android

What is the best way to handle both Notification Messages and Data Messages in firebase using Xamarin Android, while the user is in Foreground and Background? Also, how do I get the notification data,...
FreakyAli's user avatar
  • 13.1k
0 votes
2 answers
2k views

Xamarin project not running, assembly not found

Im learning Xamarin, when I try to create a project and build it, it gives me this error: The "Xamarin.Forms.Build.Tasks.GetTasksAbi" task could not be loaded from the assembly , C:\Users\XXXX....
Joel Alvarez Myrrie's user avatar
33 votes
11 answers
143k views

Appcenter iOS install error "this app cannot be installed because its integrity could not be verified"

I see that this question has been asked many times but I see no solution that works for me so I'm hoping that providing more info might shed some light. We use appcenter.ms to test iOS apps. Until our ...
CYAD's user avatar
  • 945
7 votes
2 answers
6k views

How to use Font Awesome icons in project as an icon of ImageButton

I am having a problem to realize how to use Font Awesome icons in my Xamarin application, I want to use it with ImageButtonas icon. And most tutorials I found didn't help me understand how it works.
GotStuckatm's user avatar
5 votes
3 answers
8k views

Xamarin - Requesting camera permissions in WebView

I want to make a container-app for my web application, and I decided to do so in Xamarin because the rest of the project is also .NET. Initially I downloaded and setup the project from Xamarin Sample ...
Hans's user avatar
  • 53
265 votes
6 answers
150k views

Xamarin 2.0 vs Appcelerator Titanium vs PhoneGap [duplicate]

After all IDE evolutions (all platforms on topic are changed) of this year, i'm looking to understand what is the state of technology for those platforms. What are strengths and weaknesses of each ...
Valerie Linc's user avatar
  • 2,811
227 votes
22 answers
158k views

Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE] even if app appears to not be installed

When trying to deploy my app to the Android device I am getting the following error: Deployment failed because of an internal error: Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE] I am aware of this ...
YKa's user avatar
  • 3,988
182 votes
3 answers
57k views

What is the difference between Xamarin.Form's LayoutOptions, especially Fill and Expand?

In Xamarin.Forms every View has the two properties HorizontalOptions and VerticalOptions. Both are of type LayoutOptions and can have one of the following values: LayoutOptions.Start LayoutOptions....
Falko's user avatar
  • 16.9k
128 votes
4 answers
72k views

What's the meaning of * (asterisk) in XAML ColumnDefinition?

What is the meaning of * (asterisk) in the XAML below? <ColumnDefinition Width="0.07*"/> <Grid Height="100" HorizontalAlignment="Left" Margin="102,134,0,0" Name="grid1" ...
Shashank's user avatar
  • 6,077
97 votes
10 answers
341k views

The SSL connection could not be established

I am using a third party library (Splunk c# SDK ) in my ASP.NET core application. I am trying to connect to my localhost Splunk service via this SDK, but I get an exception saying: System.Net....
MVafa's user avatar
  • 1,061
47 votes
9 answers
58k views

Android - Correct use of invalidateOptionsMenu()

I have been searching a lot on invalidateOptionsMenu() and I know what it does. But I cannot think of any real life example where this method could be useful. I mean, for instance, let's say we want ...
Bugs Happen's user avatar
  • 2,148
32 votes
5 answers
38k views

Write device platform specific code in Xamarin.Forms

I have the following Xamarin.Forms.ContentPage class structure public class MyPage : ContentPage { public MyPage() { //do work to initialize MyPage } public void LogIn(...
Michael Kniskern's user avatar
31 votes
1 answer
18k views

Xamarin Forms Android App Crashes Running Debug with VS Android Emulator

I have a basic Xamarin Forms app I created. It works fine against the iOS simulator. However when I try and run with a VS Android Emulator (5.1in Marshmallow) it crashes every time upon opening. Even ...
aherrick's user avatar
  • 19.8k
30 votes
1 answer
48k views

Xamarin - How to update Mono.Android version to resolve dependencies?

I'm trying to install a nuget package (Xamarin.Firebase.Firestore) which requires a newer version of Xamarin.GooglePlayServices.Basement (60.1142.0, I have 42.1021.1), which in turn requires me to ...
Ibraheem Nofal's user avatar
21 votes
5 answers
17k views

How can I programmatically enable Guided Access (Kiosk mode) on an iPhone?

Question How do I automate Guided Access mode on an iPhone? I will need to automate the enabling and removal of this feature Background This application from the State of Iowa uses an iOS app to ...
makerofthings7's user avatar
16 votes
7 answers
35k views

How to make long press gesture in Xamarin Forms?

Could you please let me know how can I recognize long press gesture in Xamarin Forms application? A few days before I used TapGestureRecognizer TapGestureRecognizer imageTap = new ...
Joseph Katzman's user avatar
7 votes
2 answers
910 views

ExpandableListView with ViewPager combination as its child

UPDATE - Added experimentation result Is it possible to implement an ExpandableListView to have a viewpager child? I tried to put viewpager as a child in ExpandableListView but it is not showing :( ...
jace's user avatar
  • 1,634
6 votes
1 answer
6k views

C#: HttpClient, File upload progress when uploading multiple file as MultipartFormDataContent

I'm using this code to upload multiple files and it working very well. It uses modernhttpclient library. public async Task<string> PostImages (int platform, string url, List<byte []> ...
Drunken Daddy's user avatar
6 votes
2 answers
16k views

How to view PDF file using Xamarin Forms

Is there any way I can use xamarin form to view a PDF file without using custom renderer.
Sonu's user avatar
  • 665
2 votes
1 answer
18k views

Accessing directly a Sql Server Database in Xamarin.Forms

I'm just a beginner in using Xamarin. I created a sample Xamarin.Forms Portable project in Visual Studio 2013. I want to know if it is possible to access an MS SQL database and display it to my mobile ...
Jaycee Evangelista's user avatar
566 votes
6 answers
57k views

How to compare the performance of Android Apps written in Java and Xamarin C#? Anyway to check quantitative data (code & results) [closed]

I came across Xamarin claims that their Mono implementation on Android and their C# compiled apps are faster than Java code. Did anyone perform actual benchmarks on very similar Java and C# code on ...
93 votes
12 answers
99k views

Facebook SDK: app not registered as a URL Scheme

I am using the Facebook SDK found here, and am trying the sample that is provided (in the folder FacebookiOSSample). If I simply replace the AppId here with my specific AppId, then I can no longer ...
L. Desjardins's user avatar
87 votes
27 answers
59k views

ERROR ITMS-90164/90046: Invalid Code Signing Entitlements

Note: I'm developing using Xamarin. Similar question posted in Xamarin Forum here I'm creating an app called, say CompanyApp. Then I created an App ID for it com.Company.CompanyApp, along with ...
yonasstephen's user avatar
  • 2,645
78 votes
8 answers
89k views

GridLayoutManager - how to auto fit columns?

I have a RecyclerView with a GridLayoutManager that displays Card Views. I want the cards to rearrange according to the screen size (the Google Play app does this kind of thing with its app cards). ...
Milen Pivchev's user avatar

1
2 3 4 5
84