Newest 'xamarin.android' Questions (original) (raw)
0 votes
0 answers
25 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\...
- 110
asked 2 days ago
0 votes
0 answers
44 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/...
- 9
asked Apr 19 at 10:36
0 votes
1 answer
27 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 ...
- 108
asked Apr 8 at 3:49
0 votes
0 answers
20 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 ...
- 33
asked Apr 2 at 11:16
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 ...
- 161
asked Mar 27 at 13:55
0 votes
0 answers
34 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 ...
- 13
asked Mar 26 at 16:40
0 votes
0 answers
35 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 ...
- 1
asked Mar 19 at 10:49
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....
- 13
asked Feb 26 at 22:48
1 vote
0 answers
55 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....
- 107
asked Feb 13 at 14:24
0 votes
0 answers
41 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 ...
- 101
asked Feb 11 at 13:27
0 votes
0 answers
9 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 ...
- 33
asked Feb 11 at 4:28
0 votes
0 answers
64 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 ...
- 21
asked Feb 6 at 13:18
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 ...
- 1,709
asked Jan 13 at 2:12
2 votes
0 answers
141 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. <...
- 1,296
asked Dec 30, 2024 at 8:23
0 votes
0 answers
25 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 ...
- 1
asked Dec 20, 2024 at 13:59
0 votes
0 answers
34 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\...
- 575
asked Dec 18, 2024 at 18:47
0 votes
0 answers
50 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 ...
- 109
asked Dec 10, 2024 at 19:34
0 votes
0 answers
17 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 ...
- 31
asked Dec 4, 2024 at 18:58
0 votes
1 answer
55 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....
- 5
asked Nov 24, 2024 at 20:03
0 votes
2 answers
61 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 ...
- 109
asked Nov 23, 2024 at 23:07
0 votes
1 answer
245 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/...
- 1
asked Nov 21, 2024 at 6:00
0 votes
0 answers
12 views
How to use DeepLink with Xamarin Android (NOT FORMS)
I'm trying to implement DeepLink in my Android application. It was made using Xamarin, but not forms. It's an old application that I just can't redo. Every link just takes me to either Xamarin Forms ...
- 1
asked Nov 18, 2024 at 18:09
0 votes
0 answers
47 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
asked Nov 11, 2024 at 10:12
0 votes
0 answers
42 views
White splash screen on tablet Android Xamarin
when oppening app on tablet lenovo tab m10 Android 12, app showing white splash screen, but if I open from playmarket it is normal splash screen, it is specific problem for only this table, on other ...
- 21
asked Nov 6, 2024 at 13:49
0 votes
0 answers
35 views
Downsizing the Captured Image is getting rotated in .Net 8 Android [duplicate]
I have been working on a Migration of Xamarin.Android to .Net 8 Android. The Image captured using MediaPicker.CapturePhotoAsync() and Downsized. But the image is getting rotated on Display. Can ...
- 392
asked Nov 5, 2024 at 8:56
-1 votes
1 answer
73 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, ...
- 1
asked Nov 4, 2024 at 11:02
0 votes
0 answers
91 views
How to solve Exception java.lang.IllegalStateException: superState must be null on Xamarin Forms Android?
An app I've developed using Xamarin Forms, and published to Google Play Store (ad-hoc), is reporting a crash affecting users with the error: Java.lang.IllegalStateException: superState must be null. ...
- 1
asked Oct 25, 2024 at 16:48
0 votes
1 answer
64 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 (...
- 11
asked Oct 25, 2024 at 15:02
0 votes
0 answers
78 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 ....
- 19
asked Oct 20, 2024 at 22:23
0 votes
0 answers
71 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&...
- 109
asked Oct 15, 2024 at 22:32
0 votes
0 answers
22 views
how to deploy a xamarin app in a device, using the device manager
I have an existing xamarin application, I have several devices in the device manager. The code builds fine. But when I click to deploy it I get an error. I clicked on the green arrow on top: I expect ...
- 25
asked Oct 14, 2024 at 11:08
0 votes
0 answers
49 views
Can not resolve reference 'Xamarin.Android.Support.Fragment' referenced by `X'
I persist a problem using Xamarin for App Androind and iOS , I'm try to install a package 'Xamarin.GooglePLayServices.Base' to project .NET but display the next error message: Can not resolve ...
- 11
asked Oct 10, 2024 at 20:00
0 votes
0 answers
26 views
Measuring a Slider Inside a Custom View
I have a Custom View that inherits from GridLayout. The xml layout file is as follows: <GridLayout xmlns:android="http://...
- 109
asked Oct 8, 2024 at 23:39
0 votes
0 answers
24 views
Updating Xamarin.Android Custom View Layout After Updating In Code
I have a Custom View that inherits from GridLayout. I have implemented the standard constructors (by inheriting from the base constructors) and calling the Initialize method that I have implemented. ...
- 109
asked Oct 5, 2024 at 21:19
0 votes
0 answers
32 views
Xamarin WebRTC multiple Peer connections
I have an Xamarin Android application. I have implemented WebRTC using the Xam.WebRtc.Android library. I was able to establish a peer connection successfully between Peer A and Peer B., I have ...
- 1
asked Oct 5, 2024 at 11:14
0 votes
1 answer
236 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 ...
- 11
asked Oct 3, 2024 at 13:56
0 votes
0 answers
30 views
Creating an Infinite Slider with Xamarin.Android
I need to create a slider that can be used to select any integer value, from -infinity to +infinity. The slider would have a thumb that stayed in the center and the user would slide the background (...
- 109
asked Oct 1, 2024 at 22:24
0 votes
0 answers
57 views
Customizing Ticks For com.google.android.material.slider.Slider
I have a com.google.android.material.slider.Slider for which I would like to customize the thumb & ticks. I have managed most of the thumb using app:thumbRadius & the SetCustomThumbDrawable ...
- 109
asked Oct 1, 2024 at 20:27
0 votes
0 answers
22 views
How to check/connect .cs file to .axml in Xamarin?
I have a Xamarin project (it's not mine, but I need to make some changes in it) where the .axml files use as Views. They are placed here .../Resources/layout/ The .cs with logic and events are placed ...
- 5
asked Sep 27, 2024 at 4:56
2 votes
1 answer
288 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 ...
- 21
asked Sep 22, 2024 at 5:43
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 ...
- 1
asked Sep 13, 2024 at 16:19
0 votes
0 answers
40 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") ....
- 1,807
asked Sep 10, 2024 at 4:42
1 vote
0 answers
69 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}")] ...
- 39
asked Sep 3, 2024 at 2:20
0 votes
0 answers
46 views
As a custom Android launcher, how to determine (via code) if an app's notification setting is turned off?
I am writing a custom launcher via Android APIs. While displaying the notifications coming from the apps, I would like to filter out the notifications if it is coming from the apps for which the user ...
- 1
asked Aug 31, 2024 at 19:44
0 votes
0 answers
26 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 ...
- 729
asked Aug 22, 2024 at 17:47
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 ...
- 11
asked Aug 22, 2024 at 17:33
0 votes
0 answers
32 views
xamarin: android:exported needs to be explicitly specified for element <receiver#crc64df999be563077fc4.BootReceiver>
Brief Introduction: We have xamarin app deployed through enterprise mobile management and when installing the app the Google Play Protect displays this: So in effort for this pop-up not to display, I ...
- 73
asked Aug 21, 2024 at 22:17
0 votes
0 answers
21 views
How to programmatically change the duration of TouchEffects.LongPress in Xamarin Forms
How do I change the duration of the long press on run time? I have one image(button) where it has 2 different long press mode - 2 seconds and 5 seconds. Both are separated by different modes so there ...
- 45
asked Aug 21, 2024 at 3:01
1 vote
0 answers
50 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 ...
- 33
asked Aug 12, 2024 at 18:56
0 votes
1 answer
695 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....
- 1
asked Aug 6, 2024 at 4:05