Xamarin.android Questions
Ad
Warning CS0618: 'FirebaseInstanceIdService' is obsolete: 'This class is obsoleted in this android platform
I get the following warnings if i use the code provided in the tutorial: warning cs0618: 'firebaseinstanceidservice' is
Prevent sms show after sms sending
I'm developing a business application. when user register in app, app will send his coordinates by using active internet connection. but if
Xamarin NPE on Confirmation Activity on Wear
I'm developing a wear application and wanted to show a confirmation message to the user after a click. i know that for wear dedicated
How to make an app auto-connect to a saved vpn?
Whenever my app is running, the phone has to be connected to a specific vpn. i have to reduce user interaction as much as possible, so i want the
JNIEnv FindClass() can't find package/Class that is part of a Xamarin Android Binding Library
I'm trying to call a kotlin function from c++ via the jni. the kotlin function is in a class that is part of an android binding library,
Showing PDF-File with MVVM Cross on Android and IOS
I want to open a pdf on the phone via the file-path but i cant figure out how i could do this properly without using 3rd party packages.
Error CS0115 '...OnBindViewHolder(Object, int)': no suitable method found to override
I'm binding this library:
Resolve many proguard warning
I saw a lot of warnings when connected, more than 5 thousand, i found information that i should solve problems in a similar way
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
Controlling a Spinner inside a ListView
I have a problem. i have created a listview with a custom adapter. now i have 5 rows inside the listview and each row has a spinner. but how can i
Ad
SetContentView gives "LinkAssemblies task failed unexpectedly" build error
I'm building an app that searches songs on genius and gets their lyrics to be shown to users. i want to create another activity that uses a
Xamarin.Android.D8.Target - "java.exe" exited with code 1 on creating proguard configuration file
I'm creating a xamarin.android application. on enabling proguard or r8 shrinker getting -> xamarin.android.d8.target - "java.exe" exited
Add View To View Without XML
I have this class that extends view (it's in c# because i use xamarin) public class scanneroverlay : view { public
Why does a Global object lead to non working code?
I have a pretty basic android application. most of it is still from the template. i use an own class library for a xmpp client. now what is
How to ask permission on splash screen and quit if denied?
I'm trying to make my xamarin.android app ask for permission on the splash screen which is the first activity to be launched. i'm using
AudioRecord.StartRecording() is Throwing Java.Lang.IllegalException saying that Uninitialized AudioRecorder
I am trying to read audio as 16 bit integers in my android app. i have written this app using xamarin.android . i am using audiorecord low level
Unhandled Exception: Java.Lang.RuntimeException: Internal error in Firestore (0.6.6-dev). occurred
I have a xamarin.android app that i'm trying to connect to firestore. i'm creating a firestore instance firebasefirestore
Implementing the Google In-App using Play core API in Native Android and Xamarin
Recently while browsing hotstar android app and i got a pop up in it that said i need to update the application to the latest. so, i clicked on
VS For Mac error generating android build - NDK
I installed visual studio for mac and around to build the application for android it gave me this error. i installed ndk and now this error
Android Oreo(8.0) on back displays splash screen
I have observed this strange behavior with android 8.0 devices. on app lunch shows splash screen as expected and moves to next
Login page form
I am new to xamarin android and i have one question. since there is one activity_main.axml i decided to make login form out of it. now when login
Ad
How to add info icon on textinputlayout when floating label is raised
How to add info icon when floating label is raised just beside hint. like this
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:
Errors when changing Android version (Target Framework) in Xamarin Forms
I have a c# xamarin forms solution in visual studio 2019 that was created from the xamarin forms template. when the android version
How to change text of edit text in Text changed event in Xamarin Android
I have a problem changing the text of "edittext" in "xamarin android" ,i wish to put a "/" after 2 character's so that ,i can obtain text like
Xamarin.Forms Android Push Notification Doesn't Appear
I am using azure hub notification. i am developing my app in xamarin.forms. for android i can get notification when i test it hits
Get current location start point to uri to start navi
I finally found out on how to add more locations to my route in uri: example: intent intent = new
How to determine android device resolution is small, medium, or large
I am working on a xamarin.forms app and i need to identify the android screen/resolution is whether small, medium or large to adjust some content
Xamarin Android TextToSpeech.Speak doesn't say anything if run from any of the lifecycle methods
I'm using an instance of texttospeech to convert some text, using the speak() method, like so: texttospeech = new
FirebaseOptions.getProjectId() cannot be null Xamarin Android
I have implemented the below code in two projects, one works and the other does not work ,below is the code. i have checked other posts which says
FusedLocationProviderClient RemoveLocationUpdatesAsync Task does not complete
I am implementing a xamarin android location tracker and added following code to stop location updates. public task
AppCenter Xamarin.Android builds and installs successfully on devices but doesn't run
I'm developing a xamarin.forms app (early stages) and have just set up appcenter to build and distribute it. appcenter takes the xamarin.android
Ad
Xamarin Forms - Android Splashscreen are shown also in main application
I have added a splashscreen to my application adding <item
Delete a ListView item through DisplayActionSheet
I'm creating an listview app on visual studio 2017 xamarin.forms which shows me a list of my debts. i have added a displayactionsheet from
How to detect touch move over a large number of views?
My requirement : i need to animate a 7*16 led display by passing frames through the android app over bluetoothle. i have created
How do I allow scrolling in Xamarin.Android (Xamarin.Forms) when the softkeyboard overlays part of the content?
I have a xamarin.forms activity. i have wrapped scrollview around my content via: <scrollview horizontaloptions="center"
set a custom font for a button text in Xamarin Android
I have a button and i want to set a custom font to the text but i have trouble doing that. the code is the following : in
Problem positionning buttons under a google map fragment in a bottom navigation layout
I have an app that has bottom navigation with three tabs. on one of the screen of the app i have a google map fragment. i wish to show three
Most platform version agnostic way to get a particular file path?
The mediaplugin library creates files in
Add progressbar using glide
I have a image gallery where the images are loaded from url and takes some time to load the image. so i would like to progressbar. i tries to add
how to fix my listview with two or three SetOnClickListener
I am beginner in xamarin android and am looking for a way to make my code work as will , my code contain three textview title ,main and
Problem with LayoutInDisplayCutoutMode in Xamarin
I have a weird issue with setting an attribute for cutout mode in xamarin.android. i want to add support in my app for cutout mode, hence i
How to fix atp0000 error, I receive when build a project?
I'm using axml designer to build ui. i separate screen on 4 parts of relativelayout. one i want to locate between another 2 and when add
Ad
Base64 image not displayed in android imageview
I am trying to show the base64 image in image view but it doesn't display. i am decoding and setiing image bitmap of the imageview. i am
TextView's text is not changing
Progressdialog is depracted thats why i create a layout and put a progressbar and a textview and put this layout into a dialog. until now,
Xamarin Android bottom navigation not displaying on all screens
I have implemented bottom navigation in xamarin android. i need to show different screens when clicking each icon in bottom navigation bar. i is
Difference between Mono Android and Xamarin.android
I always struggle to understand what is mono android and how it is was different from xamarin.android.
FCM foreground notification Java.Lang.IllegalArgumentException error
I am able to receive the message but only display in the log. i wanted to display as a notification at the top of the screen. here is my
Convert Mat to MemoryStream OpenCV for Android
With opencvsharp, it is very easy to convert a mat object to memorystream. private stream getstream(mat mat, string ext) {
How to block button double click when navigating to other page
I am navigating to other page after button onclick(). i want to avoid situation with double click. now when i click button more than
Xamarin firebase different google-services.json for different build configurations
In a xamarin.android project, we have 2 build configuration (basic and pro) also different package name. on firebase we have registered
How should I create the main activity on android with xamarin forms in order to support PiP mode?
I’m have an app developed with xamarin forms and my users want to be able to use it with pip modes of android. i have tried integrate it but
The name 'AccountPicker' does not exists in the current context - Xamarin.Android
I'm trying to learn how to use accountpicker functionality in my xamarin. android application and can't
Ad
Is there an equivalent for shouldSelectViewController in android for BottomNavigationView?
I have a bottomnavigationview in my android activity, which consists of 4 menuitem. when i tap on the downloads menu i check if there are any
How many Supported architectures should I choose while creating apk file
I have android app, size of my android apk file is 25mb. so while creating apk file i want to know how many supported architectures
Getting invalid opcode ba error while building Android project in Xamarin
I'm trying to build a xamarin forms application while building/deploying the application i'm getting this error
Xamarin.Android - Keep the app working in background after closing it with a local notification
Currently, i have a mobile application written in xamarin.android. because there are constant http requests going on in the app, what i'd like to
WebView issue with ar_IL in Android 7+?
Fellow developers, i'm creating an app and android vitals is showing an odd bug: issue: at (wrapper dynamic-method)
Google APIs vs Google Play vs Intel x86 vs Android TV vs Wear OS Intel x86 system image differences
I have recently started exploring xamarin.android with visual studio 2017. on android skd manager window i can see different android versions and
how can I get the id of the last inserted event
First of all i am using sqlite-net-pcl on xamarin.android my question is this, i need to create an event that is recursive, and i need to
Xamarin axml, xml Intellisense not working
I started using visual studio 2017 enterprise edition with version 15.7.4. and xamarin version 4.10.0 and need to work on xamarin native android
Have the WebView still play the video while in background
I wish to play my video, coming from youtube, in the background. to stream any youtube video, i simply do: webview =
Resource showing red lines across the project but no errors while executing
I have xamarin.android project in visual studio 2017 ide. resource showing red lines everywhere by saying
Creating a notification at a specific time
I have a calendar app that i'm working on, and i need to alert the user to an upcoming event. so i want to know what's the best practice
Ad
Xamarin.Forms Dependency Service non-static fields/properties
I'm using dependency service to get the platform specific implementation of an interface. let's say i have the following interface:
How to implement Firebase Messaging to Xamarin.Android application?
I am making my android application using xamarin.android. i want to implement push notifications, i am trying to do it with firebase following
Why doesn't Xamarin allow certain file names on Android?
I noticed that if you have an image file (png or svg and possibly non-image files too) and wanted to rename it to default.png,
Xamarin Forms (Android) StartForegroundService not work (App crash)
The xamarin forms should be started with startforegroundservice service on android 8.0 versions as it is known
Google Pay(Tez) Integration into my payment gateway ? (Android)
Note : i am aware it is not yet available for ios, also i am not looking for xamarin.forms(obviously). been trying to
Why cannot I attach a file in Android N+?
I'm developing an app that is exporting some html tables as attachments. i have noticed that my code doesn't work if i try to attach the html
C# Xamarin.Android images are displayed in the file manager and not in the gallery
I made an application to save photos on the phone. public void downloadimage(string linkbitmap, string title) {
Display a progress bar during Activity's OnCreate()?
Edit 1: this is the code that i have right now, trying to offload the heavy work on a separate thread.
How to display a View in Full Size on screen in Xamarin Android?
I am unable to set the view size matching the display size, below is the code, it is a transparent view
Receive Firebase push notification
In my android app i need to handle receiving of firebase push notification messages, so that i can manipulate their ids (so that all notifications
ProgressDialog not stopping if I click twice on menu/button
I am using progressdialog to show loading whenever user clicks on any menu, and it works fine. but when the user clicks twice on
Ad
How to receive Broadcast messages from local broadcast manager?
I am working in android with xamarin. i have a broadcast receiver that catches the button on a headset like so: public class
error MSB4018 - "LinkAssemblies" task failed unexpectedly when release build
After eight hours of trying to debug and solve this issue, i've come to the point of contacting you. i searched the web to find a solution but
How to use Xamarin.Firebase.Auth in a non-activity class and get notified?
I want to encapsulate firebaseauth into the class authservice. i'm able to login as well.. but i cannot get the event
Problem changing the UI of a specific cell inside a gridview that is inside a view pager
So, i have this problem with the ui, i made a calendar, wich basicaly consists on a gridview inside a viewpager, and i want to show to
How to properly size radiobuttons in radiogroup?
Edit: as a test i've been using fixed sizes for the radio buttons and backgrounds:
Access function from .Android level in shared level
How would i go about accessing a function from a class who sits in the ".android" level in my shared project level?
Xamarin: How do I apply the following android theme to my activity at runtime?
I have the following activity which specifies the theme as an attribute [activity(label = "permissionsactivity", theme =
Getting a RecyclerView to reload items
I am currently working on an app, that finds all mp3s on a users phone and then puts them into a list. this works very fine and is very quick,
Firebase database(Send analytics data using Firebase REST API) into Firebase Dashboard Analytic data
We are integrating firebase with our android(xamarin android) and windows(wpf) flavor of same application. we chosen firebase just to
xamarin.android - support different screen size with dimens files
I created dimens files for 320dp, 360dp and 480dp screen sizes in values folder.
OnLongPress is not working with our touch events
I am developing a game in which i want to perform certain operations when user single touch the screen, and some other operations when user long
Ad
Xamarin Android: How do i pass variables to a buttons event method in ExpandableListView?
I have an expandablelistview with buttons in it's child-view. i want to bind event handler with button's click. this is what i want to
System.UnauthorizedAccessException: Access to the path denied- Xamarin
I have pdf file to read but getting exception system.unauthorizedaccessexception: access to the path
Xamarin.Forms: Android breakpoints not hit
I recently upgraded to visual studio 2022, and since then, i can't hit breakpoints any longer during android shared project debugging, even if
Unable to build xamarin project to real device
I am working on a xamarin project (visual studio 2017). it's working fine in the emulator when run in debug and release mode but i am unable to
Xamarin Forms Custom TabbedRenderer removes TabLayout on Android
When i use a custom renderer for tabbedpages in xamarin forms, the tablayout is completely removed, and thus only the first tab is accessible.
WhenActivated not called in ViewModel
I'm using reactiveui 8.7.2 to create android/ios xamarin.native app with shared viewmodels. i want to use whenactivated in fragments
Unable to load font for use with ImageSharp in Xamarin Android app
I have a xamarin forms app where i've included a font file called roboto-regular.ttf in the assets folder of the
Overlay Toolbar over MvxExpandableListView
The toolbar in my axml file is made visible/invisible by toggling the button. the data is displayed in mvxexpandablelistview. once the list view
FCM - Only 'display' push notification when app is in background
Currently, i have push notifications being sent and received in my xamarin app. when i send a push notification the sneak peak dialogue is
AppCompat Resources In Xamarin
I'm trying to access resources usually found under android.support.v7.appcompat.r in android in xamarin.android by
Android.Gms.Drive Download File Assistance
I am creating an app on android (potentially expanding to ios, but focussing on android first) that, as a feature uploads the users saved data for
Ad
Pull to refresh (SwipeRefreshLayout) android xamarin c#
I need to add the pull to refresh in home page screen. in the beginning, the axml is:
MvvmCross Xamarin Android Linking Issue with SerilogLogProvider
Running into linker issue again with mvvmcross in xamarin android. recently upgraded to mvvmcross 6.1.2 and started using serilog. when compile in
Ad
Blog Categories
Ad