Questions tagged [xamarin.android]

Xamarin.Android (previously known as Mono for Android) is an implementation of Mono that runs on the Android platform, allowing you to write Android applications in C# using native Android libraries as well as using the .NET BCL (Base Class Libraries).

0
votes
0answers
4 views

Xamarin.Droid Resource.designer.cs is generated in a strange way?

My Resource.Designer.cs file is always generated with a bunch of errors. I can compile and run the app just fine, even with the errors but it spams the Error List window. In my case, the Resource....
0
votes
0answers
8 views

Xamarin.Android Java bindings library runtime failure accessing native library

TL;DR: I am looking for a way to find and extract a native shared library (.so) file from an Android device that is running a vendor-specific custom Android build. I need this file as the missing ...
-1
votes
0answers
18 views

How to solve 04-23 12:37:17.041 E/com.companynam(25170): Invalid ID 0x00000000 [on hold]

I have a custom control created in Xamarin Forms Android. The control have no resources or drawable or resource.designer. When used the control in the sample on swiping or on touch getting the below ...
0
votes
0answers
13 views

Can I use Xam.plugin.Madia With Xamarin Android

Can I use Xam.Plugin.Madia with Xamarin.Android? I have install Xam.Plugin.Madia but I'm receiving exception. Unhandled Exception: System.NotImplementedException: This functionality is not ...
1
vote
0answers
16 views

How to connect via bluetooth from an android device to a linux device with xamarin forms [on hold]

I am developing a multiplatform application with xamarin forms and I need to connect from a cell phone to a linux device by means of bluetooth, when doing the tests on an IO device I have had no ...
0
votes
0answers
32 views

SQLiteOpenHelper - Cannot access disposed object

I have a my SQLiteOpenHelper class, which is written as a singleton. I should note that I am not doing this in Java, I am using Xamarin.Android C# to write this. Here's a snippet from that class: ...
0
votes
1answer
41 views

Binding not working when we use ListView with DataTemplate through Resources.(MVVM)

I have a ListView which gets its ItemTemplate from a Resource file. I have a Resource dictionary as below! <?xml version="1.0" encoding="utf-8" ?> <ResourceDictionary xmlns="http://xamarin....
0
votes
0answers
22 views

How to dynamically change the theme in Xamarin.Android?

I have an application on Xamarin.Android. I have a button in the application. Clicking this button changes the theme. But I do not want to call the onCreate method when each theme changes. ...
0
votes
0answers
25 views

Can't package Android project anymore, since I activated Proguard

What is the problem? I upgraded from GCM to FCM. The new Firebase dependency added too much to the Dex file. So I had to enable Proguard/MultiDex. The Android release build runs fine, no errors or ...
0
votes
0answers
32 views

Xamarin release mode failed although debug mode work (Already added INTERNET_PERMISSION in AndroidManifest.xml)

My Xamarin cross-platform app works well in debug mode (Android), but when I change to release, it throw exceptions. I've already searched to correct for this situation. Most of posts reveal that ...
0
votes
0answers
16 views

Android WCF client stop responding after 2 calls

I have a service that is is self hosted in a WPF application. Also I have a WPF client and a xamarin android client that use the WCF client to consume the service. I have realize that I can call with ...
1
vote
1answer
53 views

Send message to SignalR hub from any Xamarin (Visual Studio 2017) android activity

I've been able to create and receive messages from a SignalR hub from a html page, aspx page and an Xamarin client which is the app I really need it for using Microsoft.AspNet.SignalR.Client v2.4.1 ...
1
vote
0answers
45 views

Restore sqlite database in xamarin forms or xamarin android

I implemented backup database in xamarin and it copies my database to sdcard. The code below shows path of backup file: "/sdcard/MyTaskDatabase" I want to implement restore backup. And to do that I ...
0
votes
1answer
21 views

Java.Lang.RunTimeException Error When Attempting To Emulate App

Building a splashscreen for Xamarin.Android project. My error is the following: com.shaneckeney.spikeballsampleapp:drawable/splash_background_revised with resource ID #0x7f02012c ---> Android....
0
votes
1answer
56 views

How to display data on Xamarin.Android edit text using Web API

I'm trying to display the data from SQL server using web API, get method on edit text in Xamarin.Android. The data will display on the edit text once the button is clicked. I've followed all the steps ...
0
votes
0answers
11 views

Xamarin Azure AD NoSuchMethodError

Followed 'add Azure AD authentication to Xamarin app' and get the following error. How can I resolve this? Unhandled Exception: Java.Lang.NoSuchMethodError:Timeout exceeded getting exception details ...
0
votes
0answers
13 views

java.util.stack pop method not working in xamarin android project

Hello every one i am trying to use Java.Util.Stack in my activity in a xamarin android project but somehow the stack's Pop() method isn't working as expected and stack.Peek() always shows that item at ...
2
votes
1answer
48 views

How to Get The name of Captured Image with Camera In Xamarin Android

I want to get the name of the captured image with camera.When user click button camera is open fine but i want to get the name of currently captured Image. This is the Button Click event when user ...
0
votes
1answer
53 views

Is there an issue with the latest Kentico Delivery Client and Release build in Android

I am having an issue with the latest DeliveryClient in Xamarin.Android. The following code snippet runs fine in a Debug build. However, I get a runtime error by unchecking the two Packaging ...
0
votes
0answers
30 views

Xamarin Random Exception of Collection Modified

I have created a simple navigation app in which there are multiple screens which contain Pickers, ListViews, buttons, and images using Skia sharp SVG. Everything seems to function right but ...
0
votes
1answer
16 views

Nested Listview in Xamarin.Android - Trying with Listview inside Listview

I'm trying to show a ListView inside a ListView This is to build a nested ListView in Xamarin.Android (Not Xamarin.Form), but the second ListView just show one Item. I created an other layout to ...
0
votes
0answers
22 views

Frame Elevation on Visual=“Material” Xamarin

Tried to apply the new Material Visual to the Frame inside a page of my app and it worked okay, but setting the elevation via renderer is not working. On this documentation page is said that I should ...
-1
votes
1answer
34 views

How to create service doing work at period time in Xamarin.Forms?

I'm building application that is when the application run first time, after that about 1 hours or more, it is automatic connect to server get data for prepair display eventhough the user close the app
0
votes
3answers
84 views
+50

How to write large amount of text to write characteristic

I am writing an Android application with Xamarin.Android, but an answer in native Android would be appreciated as well. In my Android application, I have a BLE Write Characteristic that devices can ...
0
votes
0answers
45 views

How to achieve paint brush effect in SkiaSharp?

I am making a painting app and i want paint brush effect in just like in below images.
0
votes
0answers
20 views
+50

Chrashlytics log shows java file line number instead of cs file

I am working on a Xamarin.Android native application and we write the code in .cs file. We have integrated Crashlytics as well. We are receiving Exception on Crashlytics but the line number is shown ...
0
votes
0answers
17 views

Using Android BiometricPrompt or FingerprintManager with password fallback

I'm trying to create Android app with secure access to keystore with biometrics. I'm using this samples: https://developer.xamarin.com/samples/monodroid/FingerprintGuide/ https://developer.xamarin....
-1
votes
1answer
22 views

Problem in opening design page in xamarin [on hold]

when we click on the design page it says "Something went wrong, Connection is closed".enter image description here
0
votes
1answer
21 views

App crashes when opening a ftp link in browser, with Device.OpenUri(uri), in Xamarin

I'm currently implementing a part of Xamarin app, which needs to open links in browser, after clicking the URL. I need to add support for http, https, ftp and ftps. Our app uses .NET Standard 1.6 (...
0
votes
0answers
22 views

How do I determine the MimeType that was used by GMail to pass a file that was received by my app?

I have an app that's supposed to handle my custom data-type .xyz. I'm currently using the intent filter: [IntentFilter(new[] { Intent.ActionView }, Categories = new[] { Intent.CategoryDefault }, ...
1
vote
1answer
38 views

Xamarin.Forms Android crashes on startup on VS 2019

My XF android application suddenly crashes with attached debugger with log [AssistStructure] Flattened final assist data: 4048 bytes, containing 1 windows, 15 views [etico.carevale] Explicit ...
1
vote
1answer
31 views

How to get selected image name from gallery in xamarin android

How to Get selected image name from gallery in xamarin android .when USer Click on button then image gallery is open and i get image but i don not know how to get the image name. This is the button ...
1
vote
0answers
46 views

How do I remove unused languages in released or signed APK file with Xamarin.Android?

I have an android app in google play store developed in Xamarin.Android. It supports 11 Indian languages but when i release the app it shows 85 localization(languages) which is effecting my app ...
1
vote
1answer
29 views

How to implement an Alert box in xamarin forms android

I implemented a Dependency Service to display alert box in my xamarin forms app.My app crashes when I call the alert box in android. Here is My code Android.App.AlertDialog.Builder _dialog = new ...
0
votes
1answer
25 views

Why my diffutils dont update my position in background

I'm using DiffUtils to update my Recyclerview. Visually works but clicking an item returns it to me a position that does not match the item I clicked I used NotifyDataChange that was able to solve ...
0
votes
1answer
26 views

Building xamarin.forms Android solution results in BadImageFormatException of Monoandroid10

Been developing an application which, as for now, runs only on iOS and everything runs great here. Now I want to run the Android Project, but I keep getting this error: /Library/Frameworks/Mono....
0
votes
4answers
38 views

Custom Picker Renderer is not rendering on first click

I am creating a custom picker renderer. Below is CustomPickerRenderer.cs [assembly: ExportRenderer(typeof(CustomPicker), typeof(CustomPickerRenderer))] namespace POC.Droid.CustomRenders { public ...
0
votes
0answers
38 views

Database is locked: SQLite exception thrown on my android and ios xamarin app

The database was very stable until I did all the package and bundle signing and deploy the app to the app center for distributed testing, then I started getting all kind of errors from the SQLite ...
0
votes
0answers
22 views

QR scanning with Xamarin.GooglePlayServices.Vision not working

I am trying to implement QR code scanner in my app which already had the feature for some other module. The project was on git, I cloned the project and tried to scan a QR code. And noticed that ...
0
votes
0answers
19 views

How can I create Xamarin.Forms Hidden Application or service and use it without launching it?

I want to have a centralised service app in Xamarin for database sharing between two other Xamarin apps. So, they both can work independent of each other and depends only on the centralised database. ...
1
vote
1answer
21 views

Xamarin Android - How to get rid of inexplicable Margin/Padding around a WebView?

I have a LinearLayout which contains a WebView inside of it. This WebView loads a static HTML file. I want the WebView's size (width and height) to match that of the LinearLayout, but for some ...
0
votes
1answer
13 views

FragmentManager is already executing transactions when returning to view

I have a view that has a tablayout that activates a viewpager, when viewing the page it works fine, but if I click on an item on that view and then go back to the past screen I get: Java.Lang....
0
votes
1answer
29 views

Creating Bottom Navigation Bar for Android and iOS using Xamarin Forms

Is it possible to create bottom navigation bar for Android and iOS using Xamarin Forms without using Custom renderer. I heard that the latest Xamarin Forms support bottom Navigation bar feature, but ...
0
votes
0answers
30 views

NuGet Packages Missing And Unable to Restore After Checking Out Test Project

I recently added an NUnit 3 Unit Test project for Xamarin.Android into my app's solution in Visual Studio 2019. I was able to configure it and get it running (successfully with some tests, even!), ...
0
votes
0answers
24 views

Xamarin Android caller-screen display name

I want to sync some contact-informations from our backend to the phone with an app. We are not allowed to save these contacts on the phone (due to privacy). We can save the data inside our app. But ...
0
votes
0answers
15 views

how to fix my problem about go back from full screen webview video page

I have page that show a ListView of videos which are gotten from urls as a WebView cells like that: <ListView HasUnevenRows="True"> <ListView.ItemTemplate> ...
0
votes
0answers
24 views

Xamarin Android - Call API using HttpClient with Certificate

We're trying to communicate with an API of ours which needs a certificate in the request but it doesn't work well. Usually we used an external service or an Azure API Management API just by passing a ...
0
votes
1answer
19 views

Button overlaps activity indicator on Android

I have a Xamarin Android Application with Xamarin Forms. I want to display a ActivityIndicator on the right sight of a button. So far I had this code which used to work: <Grid> ...
0
votes
0answers
50 views

Android app is crashed on click entry field in android oreo 8.1

I am using xamarin prism and we simply navigate to the other page on clicking list item.But when we click on the entry field then app is crashed and these problem occur only in android oreo. 04-16 ...
0
votes
0answers
18 views

Unable to start android device monitor - Xamarin visual studio

I am using Xamarin android on MacOS Mojave with visual studio community. I am trying to run the android device monitor but it throw me an exception. !ENTRY org.eclipse.osgi 4 0 2019-04-15 22:07:44....