18,829 questions
1
vote
1
answer
21
views
How to create an APK file from a Xamarin project using the command line?
Can you tell me what I need to do to get the APK through the console?
How do I check that all the needed tools are installed?
And which command or set of commands will create the APK file?
I can ...
1
vote
0
answers
51
views
Xamarin Forms - Last Android version supported
What is the last version of Android that is supported for Xamarin Forms? I'm trying to update my app to the last possible version of Android for Xamarin Forms. I know I'll have to switch to MAUI ...
1
vote
0
answers
112
views
Android .NET application intermittent/unpredictable file I/O
I'm building a cross-platform app in C# (Avalonia), but am seeing inconsistent/unreliable behavior when accessing the filesystem on Android. This manifests in a variety of ways, but the easiest to ...
0
votes
0
answers
462
views
Xamarin Android - Google play - problem with 4kb page size using in libs: libmonodroid, skiasharp
I received a message from the Google Play Store after uploading the app that the current libraries do not support a 16kb page size:
base/lib/arm64-v8a/libSkiaSharp.so
base/lib/arm64-v8a/libmonodroid....
0
votes
1
answer
44
views
Save and read photo on Android 11 using Xamarin.Android
I can save a photo from camera intent to Mediastore Public Picture Directory, but the photo cannot be read back by the app.
private bool DoPhoto(int KeepAsking)
{
Intent intent = new Intent(...
3
votes
1
answer
2k
views
Has anyone successfully targeted Android API Level 35 in a .NET MAUI app?
I recently got a critical warning from Google Play Console: "2 of your apps are targeting an old version of Android. Google Play requires all apps to meet target API level requirements before ...
1
vote
1
answer
115
views
OnnxRuntime SO files does not get packaged in a APK file generated from Xamarin app
I am figuring out how can I run my machine learning model in C#.NET Xamarin Android app. I am testing it inside Android device created using Android Device Manager that comes with VS2022. I have ...
0
votes
0
answers
32
views
How to use JARBinding on Xamarin.Forms?
I've a .jar library for Android. I need to use it from the Xamarin.Forms code (we do not use ios project, only android). So I followed Microsoft guide for Jar Binding, but when I build the app project ...
0
votes
0
answers
47
views
Type com.google.gson.FieldNamingPolicy$5 is defined multiple times
I'm working on a C# native android project using net8.0-android34.0 as framework version and one of the projects in the solution imports those android libraries:
<AndroidLibrary Update="Jars\...
0
votes
0
answers
56
views
Not able to fire OnNotificationOpened event for notification only and mixed firebase calls in Xamarin with C#
I have tried a lot but not able to fire this OnNotificationOpened or OnNewIntent when I send a Firebase call using notification only or mixed type (using HTTP v1 API https://fcm.googleapis.com/v1/...
0
votes
1
answer
37
views
How to use custom font in Xamarin.Android?
In Android device or emulator, there will be a set of fonts available as system fonts. The list of fonts can be obtained by using this API AvailableFonts
Questions:
How to display a TextView with the ...
0
votes
0
answers
25
views
Xamarin native Android linked Reference not able to build and showing error reference not linked
The type or namespace name 'SalesRecordManager' could not be found (are you missing a using directive or an assembly reference?)
The name 'SalesRecordManager' does not exist in the current context
The ...
0
votes
1
answer
75
views
Class not found error while binding aar library
I am trying to bind aar library called "autoreplyprint.aar", following is the aar file link
autoreplyprint.aar
I have added following itemgroups for the .aar and its .so files
<ItemGroup ...
0
votes
0
answers
44
views
Custom Keyboard Behavior in Xamarin.Android
I'm currently working on a Xamarin.Android application where I'm trying to modify the device keyboard's default behavior.
Desired Functionality:
When editing a non-empty text field, the keyboard ...
0
votes
0
answers
112
views
Unable to access certificate deployed by SOTI MobiControl in Android app
Unable to access certificate deployed by SOTI MobiControl in Android app
I'm trying to access a certificate that was deployed through SOTI MobiControl in my Xamarin.Android/.NET MAUI Android app. The ...
0
votes
1
answer
91
views
Android xamarin Google play services sign in 2025
Has anyone managed to use google play services lately? I found one person who did: Xamarin Android - How to sign in Google Play Services?
But I am not sure how because after I install the Xamarin....
2
votes
0
answers
96
views
Update Xamarin Forms App to .Net Maui App Preference Data gets lost
I have an app created in Xamarin Forms in the store. I recently migrated to Maui. I was using Xamarin.Essentials.Preferences in my Xamarin Forms, and in my Maui I had to change it to Microsoft.Maui....
0
votes
0
answers
63
views
Microsoft 365 - SMTP Oauth 2 Authentication error
I am developing an application in Xamarin Android using .NET Standard 2.0. I need to send emails to users within my organization at a certain time. I am trying to implement OAuth 2 authentication ...
0
votes
0
answers
26
views
Debug Not able to attached to Visual Studio 2022 with Xamarin project
I have Visual Studio 2022 (Version 17.12.4) but I can't debug to existing application as its showing debug on IDE but some time not able to launch on devices and sometime if it installs on device also ...
0
votes
1
answer
241
views
Problem with Jetpack Compose dependencies in a C# Android Binding Library
I have an Android Library (.aar) built with Android Studio that uses Compose @Composable.
I am trying to create an Android Binding Library in Visual Studio to use my Android Library in a MAUI ...
0
votes
2
answers
64
views
Close Android ViewPager from the adapter
I have a view pager set up and running exactly how I want it to. Once the user is done swiping through the images and data, I need to close/exit the view/viewpager. I put a button on the View that ...
2
votes
0
answers
230
views
.NET MAUI - RefreshView Content is not visible inside a Grid with Row Auto
After migrating to MAUI I have a problem with showing RefreshView Content when the RefreshView is wrapped around Grid and RowDefinition is Auto.
<Grid RowDefiniot="Auto">
<...
0
votes
1
answer
48
views
Any way to kill ALL old work planned by WorkManager?
I had to use WorkManager on a mobile app, so it can gather current user emergencies using a PeriodicWorkRequest.
But because of my lack of documentation, I implemented it in a bad way, and I ended up ...
0
votes
0
answers
36
views
Xamarin Android LifecycleOwner Build Error DevOps Pipeline
I cannot figure out why I am getting the following build error in my DevOps Pipeline when building a Xamarin Android app. The APK builds find but the AAB build always fails.
[error]Core\...
0
votes
0
answers
77
views
Required Packages for Microsoft.Maui.ApplicationModel in .NET for Android 9.0
There is probably a very simple straightforward answer, but I can't seem to find it. In a previous Project I had the following using statement:
using Microsoft.Maui.ApplicationModel;
However, I now ...
0
votes
0
answers
22
views
Xamarin Android KeyUp event before Key is released
I am receiving a KeyUp in a Xamarin App while the key is still pressed.
This only occurs on one device out of several Android 11 devices with the same hardware and configured the same.
The device is ...
0
votes
1
answer
59
views
How to Properly Bind the Button in Xamarin Forms
Can someone explain to me why my content is not showing when I add the Button with Binding, but if I don't add the Binding, it will show the content of my page?
HomePage.xaml
<?xml version="1....
0
votes
2
answers
76
views
Waiting to Access the Current Fragment
I have several Fragment(s) and a single FragmentActivity in a .NET for Android app. There are multiple external classes (such as RecyclerView.Adapter) that require access to the current Fragment (I ...
0
votes
1
answer
392
views
Xamarin Android App Crash on Android 15: mono-context.c:474, condition 'fpctx->head.magic == FPSIMD_MAGIC' not met
I am encountering a crash in my Xamarin Android application, but it occurs only on Android 15. The app crashes with the following error:
* Assertion at /Users/builder/jenkins/workspace/archive-mono/...
0
votes
0
answers
73
views
API data not showing in Release mode but works in Debug mode in MAUI application
I am developing a MAUI application that fetches data from an API (CoinDesk API) to display current Bitcoin price data. The data fetching works fine in Debug mode, but the API call fails to show any ...
-1
votes
1
answer
99
views
Xamarin androd Native Upgraded MAUI Project Issue
Severity Code Description Project File Line Suppression State
Error (active) XALNS7028 System.IO.FileNotFoundException: Could not load assembly 'Xamarin.Android.Support.v7.RecyclerView, ...
0
votes
1
answer
73
views
cannot be evaluated. Method 'System.String.0-windows10' not found
Suppression State
Error (active) MSB4184 The expression """.0-windows10" cannot be evaluated. Method 'System.String.0-windows10' not found. MauiApp1 (net8.0-android), MauiApp1 (...
0
votes
0
answers
83
views
missing attribute in android java library binding
I have recently created new android java library binding project in my MAUI 8 solution for use a java .aar library in my MAUI project.
I have been added .aar file into Jars/ directory and configured ....
0
votes
0
answers
76
views
Xamarin.Android ViewPager2 Requires match_parent
I have a Xamarin.Android app in which I am trying to use ViewPager2. The ViewPager2 is defined in my layout as follows:
<androidx.viewpager2.widget.ViewPager2 android:id="@+id/vpStartScore&...
0
votes
1
answer
292
views
Android 14, Xamarin Emulator Deployment Failed. Error XABLD7024
I have a Xamarin Forms app that I've upgraded to Android 14 which builds fine but it fails when I try to run it in the emulator. I'm running Visual Studio 17.6.3 (build 421) on the Mac. I get the ...
2
votes
1
answer
388
views
After switching to Android API 34 in my Xamarin android project,I get the error one of receiver_exported or receiver_not_exported should be specified
After switching to Api 34 in my Xamarin android project, I get the error 'one of receiver_exported or receiver_not_exported should be specified when a receiver isn't being registered exclusively for ...
0
votes
1
answer
59
views
Problem with displaying text and elements in Xamarin Forms on the smartphone and emulator screen
I encountered an issue with Xamarin Forms where not all text is displayed in the label, and elements that are off-screen are not shown. Rotating the smartphone temporarily resolves the issue until the ...
0
votes
0
answers
51
views
Glide - Retrieve file path for cached bitmap
How to get filepath to cached bitmap ?
When loading from url like below, I'm able to get filePath to the cached image
var obj = Glide.With(this)
.Load("url")
....
2
votes
0
answers
92
views
Refit is downloading html data instead of image (png) from dropbox image url
I have implemented refit from here and it is working for any png image on any site, but for dropbox, when I download from url it gives html text instead of encoded png text
[Get("/{url}")]
...
0
votes
0
answers
30
views
Create dynamic adjust width list in xamarin forms
I want to create category list as attached images. Please provide solution how to achieve this.
As in image it is seen that there is not static column for each row. Category manage width itself.
If ...
1
vote
1
answer
1k
views
Compilation Failed in .NET MAUI Project Due to Multiple Definitions of androidx.collection.ArraySetKt When Using Firebase and AndroidX Packages
First, I'm a complete noob on this. But I have a working MAUI project that builds. But when trying to start using Firebase I run into a problem that I've spent 10 hours googling and chaptGPTing. The ...
2
votes
0
answers
61
views
Web service references not available after migration from xamarin.android to .net8.0 android
I am migrating my xamarin android app to the new .net8.0 framework. This is a nightmare of a task and I have almost completed it apart from migrating my web references successfully.
On my previous ...
0
votes
1
answer
1k
views
There is no application host available for the specified RuntimeIdentifier
.net SDK 8 Android project build log shows below error and creates all ABI combined build.
/usr/local/share/dotnet/sdk/8.0.303/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk....
0
votes
0
answers
114
views
Accessing/reading Xamarin.Android old (other) app settings (shared_prefs)
I would like to read some user settings from the old (another package name) Xamarin.Android app in my new MAUI app.
In my old application, I used to save settings by calling the method
...
1
vote
1
answer
1k
views
Android styles.xml in Dark Mode overrides .Net Maui Splash Theme styles
I created a .Net MAUI application that has a native Android DatePicker. In the directory Platforms/Android/Resources I have two folders, values and values-night for the styles.xml of the Android ...
-1
votes
1
answer
27
views
What to write in WriteToParcel method for Datetime type
in xamarin android
i have a class
class Classdaysun
{
public int daysun { get; set; }
public int monthsun { get; set; }
public DateTime time { get; set; }
}
and
...
0
votes
2
answers
72
views
Unable to Change Background Color of Selected Item in Xamarin.Forms ListView
I'm experiencing an issue with changing the background color of selected items in my Xamarin.Forms application. Despite my efforts, the background color does not change as expected, and it seems like ...
0
votes
1
answer
67
views
Problems with FMOD in Monogame Android project
Yesterday I decided to export my game (on which I'm currently working) to Android. I'm using Monogame for development and also integrated FMOD API (both Core and Studio) using C# wrapper which comes ...
1
vote
0
answers
763
views
I want to update Xamarin application into .NET 8
I am very new Xamarin. I have a Xamarin native application for Android and iOS. I want to update it to .NET 8 but not migrate to MAUI. Is there any way I can do this? As i got to know it support till ....
0
votes
2
answers
362
views
HTTP Request Error: InternalServerError Internal server error: An error occurred while saving the entity changes
HTTP Request Error: InternalServerError Internal server error: An
error occurred while saving the entity changes. See the inner
exception for details.
i got this error while trying to save into ...