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

0
votes
1answer
37 views

What is the correct way to put a transparent background color?

It is supposed that this code #272727a6 is a dark almost black color with a% 30 of transparency but it seems blue in android, while in CSS code or in web, the color if it is transparent black, what am ...
0
votes
0answers
10 views

UWP image scaling with Xamarin Forms

I am creating a iOS, Android, UWP app with Xamarin Forms. I am well versed in how the iOS and Android platforms handle image scaling (1x, 2x, 3x, etc). However, I am not so familiar with UWP. In ...
0
votes
0answers
28 views

Removable SD External Storage filepath needed in Android code

I've been working on a basic music player app. Had much help already from you fine fellas. I am trying to keep questions concise and so not put too much code/irrelevant info. Basically, I want to ...
2
votes
1answer
34 views

Xamarin Forms - How to pass values when Navigating Back to the previous Page?

I have been strugling with passing a simple string back to the previous page from where i navigated initialy after i pressed the back button on the toolbar.. i haven't found anything yet.. what is the ...
0
votes
0answers
36 views

Delete Rows in TableViewController

I need to expand and collapse rows.When header clicked, calls method handleExpandClose.In order to delete rows, I have this: public void handleExpandClose() { var paths = new NSIndexPath[...
0
votes
1answer
17 views

Xamarin: Change value of GridItemLayout in codebehind

<CollectionView Grid.Row="2" Grid.Column="0" x:Name="collectionViewItemsLayout" ItemsSource="{Binding BaseCustomersCards}" ItemTemplate="{StaticResource CustomerCardTemplateSelector}" > ...
0
votes
0answers
36 views

How can you create an app that accesses a local database

I am a programmer who has a desktop program developed on Vb.net. This program works under Windows with a local Access database. Now what I need is to add functions to query and update the database but ...
3
votes
1answer
50 views

How to put different text formatting and hyperlink in a text property

I want to use a syncfusion check box in my xamarin.forms project and the text property should contain a hyperlink on a single word block which should be underlined like this: [ ] By continuing to ...
1
vote
0answers
25 views

Printing a barcode in Xamarin

While this example shows the printing of a simple piece of text, i need to be able to print a barcode that i have the font already, that's the simple bit but how does one send it to the printer that ...
0
votes
0answers
11 views

Error processing method: 'Android.Gms.Tasks.CancellationToken Google.Places.FetchPhotoRequest::get_CancellationToken()'

I updated my project to use the Xamarin.Google.Android.Places v1.1.0.1 package from the NuGet package Manager. But the project build fails after upgrading to the new Places package. I have tried ...
1
vote
0answers
14 views

File upload form elements don't work on xamarin ios but its working fine with android

i am using webview and in my application there is upload button and its working fine with android but in ios when i click on button it shows options like Take photo, Browse gallery etc. when i click ...
0
votes
1answer
39 views

Getting a List of all filepaths for Audio Files in a certain directory

Hello all I am trying to build my own Music Player android app. I want it to be very simple , just find all valid music files (perhaps I set file types such as mp3, m4a, wma etc for it to look for?) ...
0
votes
1answer
19 views

Combine button look with focused color

I have a problem. I have 2 xml files: The first one changes the color when you are focusing the button and press it: <selector xmlns:android="http://schemas.android.com/apk/res/android"> <...
-4
votes
1answer
43 views

how to make auto reply App in xamarin for whatsapp

how to make auto reply App in xamarin for whatsapp like these app on store https://play.google.com/store/apps/details?id=com.pransuinc.autoreply or https://play.google.com/store/apps/details?id=...
0
votes
1answer
28 views

Xamarin Forms: I can't get the text from Xamarin.Forms.Editor

this is probably something really easy and i feel really stupid for having to ask for help with this but i can seem to get access to a Editors text from the CodeBehind file. I have tried numerous ...
0
votes
1answer
36 views

How to remember what selection from a picker, Im using xamarin.plugins.settings by montemagno and i don't know how to get the right syntax

the value or string is getting saved but the selection on the picker on the main page itself is not getting saved. when i re open my app the picker is in empty. I don't know the syntax how to use a ...
-1
votes
0answers
19 views

How to create exe file in xamarin forms [duplicate]

I have created an application in xamarin forms.Now i want to make exe file to run that application.Can someone suggest me how to create exe file (not appxbundle file).
0
votes
1answer
34 views

Xamarin.Android cannot use vector images

Recently I have faced with the issue that it is not possible to use vector drawable object from Native Android project in Xamarin.Android: Severity Code Description Project File Line Suppression ...
0
votes
1answer
35 views

Accessing a value from a list of custom classes

I have a lyrics app where users search songs on Genius.com and can view and download those lyrics. They are stored in a folder on the device and each file is a .txt with the name being the song's ...
0
votes
0answers
23 views

ListView cells not behaving as expected with caching options and IsEnabled settings on elements within ViewCells

I have a listview that displays some information on the users payment history, and within each payment entry there are various elements that are displayed or not depending on the PaymentEntry object. ...
-2
votes
0answers
28 views

How to add animation on ListView of Xamarin Forms?

I'm using Xamarin Forms, I want to add animation on ListView as below: https://drive.google.com/file/d/1U2cVepJ533odC9IhlMOfI2mAImGR-FrM/view?usp=sharing Please help me a solution or suggest me a ...
-1
votes
1answer
33 views

HttpClient web service request gets canceled when iOS app is backgrounded

If I make a web service request and background the iOS app and foreground it again, I get an exception that the request has been canceled. Is this a bug or the way iOS operates? I can't find any ...
0
votes
1answer
16 views

Send an email with xamarin essential

I use the following sample to sent a simple email. https://docs.microsoft.com/en-us/xamarin/essentials/email?tabs=android The first time when I run xamarin forms app and call the sent method the ...
0
votes
1answer
29 views

Read json and view result in view xamarin

I want to read a json and iterate to show data. But the text does not have style, paint all data together. How can I paint text with style? string a = ""; foreach (Messages element in response) { ...
1
vote
0answers
43 views

cognitive vision library error : the remote server returned an error (401) in xamarin project

when I am trying to use cognitive vision library in xamarin project , I got an error message : the remote server returned an error (401) I am using a VisionServiceClient object this code is a code to ...
0
votes
1answer
27 views

Xamarin PushAsync Animation (Android)

I've got a question regarding the default animation of a PushAsync Navigation call on Xamarin. All Android Apps seem to have a default animation for a new page, which is the new page sliding in from ...
0
votes
1answer
20 views

How to get the value of ContactsContract.RawContacts.AGGREGATION_MODE_DISABLED in xamarin?

I am trying to insert contacts programatically in Xamarin.Android. I have found this Java code and was trying to convert it to Xamarin C# ArrayList<ContentProviderOperation> ops = new ...
0
votes
0answers
36 views

Application Not Responding, Android

I have an Android app written with Xamarin. The app starts foreground service that retrieves data from some api. Service can work a few hours but every time crashes. In logcat I found the following ...
0
votes
2answers
26 views

In a Xamarin Forms application. What's a Styles.xcassets file in the iOS project used for?

My application has one of these files but it doesn't seem to do anything and when I click on it, then it shows as empty.
1
vote
1answer
31 views

appcenter stopped sending emails when distributing releases, any potential causes?

We use appcenter.ms to distribute an application (Xamarin, Android) to test groups. So far the center was sending emails to the users, when the release was distributed. It did stop doing so recently. ...
0
votes
2answers
42 views

Need help understanding cross platform with Xamarin Forms

so I have been recently trying to get into mobile development with Xamarin, however, I am having a bit of trouble understanding how the cross-platform development works with forms. Some older ...
0
votes
1answer
23 views

How to set current view in Xamarin

I have a main view in my Xamarin project. That view contains a List that when I click on an element, a Details page is shown. I can back to the source view when I press back button, however, I need to ...
0
votes
1answer
20 views

How can I send a message from MainActivity to Xamarin.Forms.Application object?

I need to send a message to the App object which was subscribed. That App object is of Xamarin.Forms.Application class..... from MainActivity, in .Android project, I need to send a message to it, ...
0
votes
1answer
25 views

Use Android specific code in MainPage.xaml.cs

I am writing a cross-platform app. Now, assuming that the program is running on an Android device, I would like to call a class from the namespace ProjectName.Droid in my MainPage.xaml.cs, which is ...
0
votes
0answers
26 views

How to get view from Activity in Xamarin

I have used VS 2019 wizard to create a basic Xamarin application. It created 2 projects. One that contains the MainActivity (the entry point) and other containing the views (some XAML files). One of ...
0
votes
0answers
23 views

Xamarin UWP compiling with .Net native tool chain causes run time exceptions

I have a xamarin application that works fine until i check the "compiling with .Net native tool chain" in the project properties. I get following exceptions: Exception thrown: 'StructureMap....
0
votes
0answers
29 views

AppDelegate ContinueUserActivity not called when launching app from deep link

In my AppDelegate class I'm trying to handle deep links that launch my Xamarin iOS app, so that I can navigate the user to the proper place in the app based on the url. I'm overriding all of the ...
0
votes
0answers
26 views

Take Photo or Video crashing on my Mobile Application [on hold]

My question is about mobile application on IOS. when I run my application and picking ( Take Photo or Video) the application crash.I have add the location , photo, camera in the info.plist and still ...
1
vote
1answer
43 views

How to change the Color of the Status Bar in iOS when using shell

I'm using Xamarin Forms v4.0.0.425677. When i use shell, i set the BackgroundColor to #ff3A2E, and it's not working in iOs. <code> public AppShell() { InitializeComponent(); ...
0
votes
1answer
93 views

How to display a Dynamic type list in ListView Xamarin Form?

I am developing an application from which I am obtaining data directly from a database, these are stored inside a variable of dynamic type to later insert it in a list and be able to display it in a ...
1
vote
2answers
41 views

How to enable location services in Xamarin iOS App

I would like my simple to enable location services I have added the following in info.plist file I have enabled background modes and location (ios Manifest Editor view) However when i install the ...
0
votes
1answer
22 views

How can I align my custom Popover view controller to center of ParentViewController in Xamarin.iOS?

I am currently dealing with the screen where I have to show custom PopOver view controller to the center of the ParentViewController. I have used PopOverView.Center = new CGPoint(UIScreen.MainScreen....
1
vote
2answers
48 views

DatePicker dd/mm/yyyy format showing dd-mm-yyyy, why

I have DatePicker in Xamarin.Forms. It is showing date in mobile dd-mm-yyyy format. How can I change it to dd/mm/yyyy format This is m code <DatePicker Format="dd/MM/yyyy" Date="{Binding ...
0
votes
0answers
23 views

How to resolve “CREATEMULTIDEXMAINDEXCLASSLIST : error : Expecting class path separator ';'…”

Windowa 10 Visual Studio 2017 v15.9.7 Hi all, I have a Xamarin.Forms solution targetting Pie and a minimaum version of Ice Cream Sndwich.. I am having trouble building the Android project. After ...
0
votes
1answer
10 views

How to make the clicks from one UIViewController pass into the parent UIViewController through the hole

I have UIViewController (OverlayViewController), which overlay another UIViewController(RootViewController). In OverlayViewController I add UIView for all frame size: var overlayView = new UIView(...
0
votes
1answer
30 views

How can I install certificate for “Visual studio emulator for android”'s emulator?

I am working on a Xamarin Form that need to call httpclient to consume company's internal https REST api. Unfortunately, it return with this error Javax.Net.Ssl.SSLHandshakeException: java....
0
votes
0answers
22 views

Visual studio emulator for Android's EMULATOR connected but Host connectivity loss

I am working on xamarin form. I use "Visual studio emulator for Android" and enabled hyper-v. I have my emulator started up and connected to internet but once it connected to internet, my pc (host) ...
0
votes
1answer
18 views

Xamarin iOs: How to customize background color of top bar

How to customize background color of top bar? as you can see it is appearing white and the navigation drawer color I have set to white so its not visible
2
votes
0answers
18 views

Xamarin Uploading sqllite file to Azure Blob storage, sqlite .db3 file is empty on Blob storage

I'm trying to upload the local database of the app build in Xamarin forms iOS. There is data in the local database and the app can see all the table and data just fine. I want to investigate the ...
-2
votes
2answers
62 views

How to close SQLite Connection in Xamarin Forms?

I have a code the gets data from my server. Every data will be inserted in my local database (SQLite Database) one by one. Every once in a whole I am getting these two errors. My codes below is where ...