Questions tagged [xamarin.android]

0

votes
0

answer
16

Views

Xamarin - Google Maps keep “showing” Malls

We are using a stylization with the minimum of items to render (without markers, houses, rivers, etc ...) but somehow we can not disable the rendering of Malls. The rendering in the browser works perfectly (does not display the malls): But when we load the JSON in the Device the malls keep appearing...
Igor
1

votes
1

answer
58

Views

How to fix blink issue Create Checkbox using image in Xamarin Forms?

This is the CheckBox.xaml This is CheckBox.Xaml.cs . using System; using System.Collections.Generic; using Xamarin.Forms; using Xamarin.Forms.Xaml; namespace CheckBoxSample.Controls { /// /// Custom checkbox control /// [XamlCompilation(XamlCompilationOptions.Compile)] public pa...
Akash Limbani
1

votes
2

answer
79

Views

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 table to Gmail, Google Drive or any E-mail provider in Android N+, but it can upload the file to OneDrive, WhatsApp, Skype, etc. Without any issue. This is my...
Federico Navarrete
1

votes
2

answer
22

Views

Google Maps not showing on phone

My Manifest Map showing on emulator in Debug But not showing on phone in Release What could be the reason?
1

votes
3

answer
142

Views

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 write to. It works, but I can't send more than 20 bytes, the rest gets cut off. My code to create and...
Darius
1

votes
0

answer
71

Views

Xamarin UI Test on Local Android device not launching app

I’m struggling to get my UI Testing working on Android locally. I’m using the APK which was archived as a release build with no shared runtimes and using the correct ABI apk in my build. return ConfigureApp.Android .EnableLocalScreenshots() .PreferIdeSettings() .ApkFile(ApkPath) .StartApp(Xamari...
Halceyon
0

votes
0

answer
3

Views

MultiDex: Main Dex Capacity Exceeded with MultiDex Enabled

I'm using a package I've included into my project that requires MultiDex, I've got 156561 references so I'll need multiple .dex files. However it fails, citing that the main dex file is too large Some suggested using keepRuntimeAnnotatedClasses false, but I'm using Xamarin and its not clear on how t...
NPC
1

votes
2

answer
2.2k

Views

Blank screen on Xamarin

I have a Xamarin portable project. The Xaml pages I debug are totally blank and I cannot see any components on the pages on both Android and IOS. How can I fix this? Note: It gets no error messages, the pages are opening and I cannot see anything on them. The problem occured after this error. When I...
mrbengi
1

votes
2

answer
741

Views

Xamarin Forms InputTransparent doesn't work on Android

Here is my xaml. InputTransparent is set to true, but Entry still catches the input.
Vorotnyak_Nazar
-1

votes
0

answer
13

Views

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

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 error in the output logs. 04-23 12:37:17.041 E/com.companynam(25170): Invalid ID 0x00000000. 04-23 12...
Paul Anderson
1

votes
1

answer
1.7k

Views

Auto resize WebView to fit content

I am working on a Xamarin.Forms PCL project that displays posts in the form of a WebView so I add clickable content such as hashtags. The problem I am having is the WebView doesn't adjust to the size of its content. The WebView does not load an actual site I am binding the HTML to each post in a Lis...
Dan
1

votes
4

answer
2.4k

Views

change Spinner text color

I want to change the default text color in Spinner to any other color. But I have not find the solution yet. All I got a solution through TextView like How to change spinner text size and text color? Is there any other way, direct way for Spinner? Note: Please provide solution for Xamarin. Thank yo...
musigh
1

votes
1

answer
155

Views

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 = FindViewById(Resource.Id.test); WebSettings settings = webView.Settings; settings.JavaScriptEnabled = true; webView.SetWebChromeClient(new WebChromeClient()); webView.LoadUrl('https:/...
innomotion media
1

votes
2

answer
90

Views

Using MAJOR.MINOR.PATCH converted to integers for a versionCode in the Android Manifest

I am looking for ways to version my Android App. I would like to not get confused over which version number I use so I am considering this: Version Name: 0.1.2 Version Code: 102 Version Name: 1.1.0 Version Code: 101000 Version name: 2.0.0 Version Code: 200000 etc Does this seem like a reas...
Alan2
1

votes
1

answer
314

Views

APK fails to be installed on any device

I'm new in the Xamarin Development world so I installed Visual Studio 2017 with all the needed cross compiler features. After downloading and updating the SDKs for Android API 23, 24, 25 and 26 and some corresponding emulator images I got the emulators starting up. I created a base Xamarin Android A...
Mischa
1

votes
0

answer
632

Views

Xamarin Android live stream video/audio from device in c#

I am challenged with the task to stream video and audio (camera and mic) from my android API 19 devices directly to a server. Displaying (on the device) is also optional. Following this link I learned that you can use Mediarecorder with a socket instead of an output file. But they describe this meth...
b.holz
1

votes
0

answer
193

Views

Java.Lang.NoClassDefFoundError has been thrown: Failed resolution of: Luk/co/chrisjenx/calligraphy/R$attr;

I'm developing an Android App with Xamarin using Visual Studio 7.3.2 (build 12) for Mac (based on Mono), thus not using the real thing in Windows. Debugging is very, very inconsistent. One of the common errors that gets thrown 1 out of 10 times is: Java.Lang.NoClassDefFoundError has been thrown: Fa...
meder omuraliev
1

votes
2

answer
460

Views

MVVMCross change language on the fly - IOS/Android

I have searched the web and forums regarding these - found these: https://forums.xamarin.com/discussion/103572/any-xamarin-ios-code-to-change-the-language-of-the-app-instantly-without-need-to-restart-the-app http://enginecore.blogspot.in/2013/09/localization-in-xamarin-mvvmcross_18.html http://opend...
Kumar Aditya
1

votes
2

answer
265

Views

Cannot implicitly convert type 'Java.Lang.Object' to 'Android.Runtime.JavaDictionary<string, string>

I am applying Google Places Api on my app and converting the Java to C# code. But when I am getting the nearby places in the list, I got this error: Cannot implicitly convert type 'Java.Lang.Object' to 'Android.Runtime.JavaDictionary'. An explicit conversion exists (are you missing a cast?) private...
Kmmp
1

votes
1

answer
698

Views

RecyclerView crashes when scroll and reload happens at the same time

In my app I am using a RecyclerView, that is supposed to continue loading images when the user scrolls down. But this brought me to an issue I couldn't resolve. Basically, I saying loadPhotos.LoadMoreItems(3); which means, load 3 photos to begin with. As soon as a certain point is reached (via scro...
innomotion media
1

votes
0

answer
94

Views

RecyclerView: Load Another Image When First Image Has Finished Loading

I have a recyclerviewer that reloads photo when the user scrolls. But since I have 3 photos in a row, I run into a problem: I need to initially load 12 photos at once, to make sure the recyclerview is scrollable. And then continue to load 12 photos at once each time a scroll happens. This doesnt rea...
innomotion media
1

votes
0

answer
128

Views

Android App communicating with the BBC Micro:Bit

Im trying to write an Android app that connects to and communicates with a BBC Micro:bit board. I'm writing the application using Xamarin (C#) and i've got a few things working already (Scanning for BLE devices and connecting to the Micro:Bit). The hurdle i'm facing at the moment is getting access t...
user2549874
1

votes
2

answer
41

Views

Android notification misbehavior

i have a xamarin android push notification, but when i recieve the notification in some devices it remains open (the rectangle doesnt auto-dismiss) and in other devices (ej Samsumg Galaxy A5) the notification opens itself (triggers the activity on its intent without touching it), in other devices th...
Sergio Ramirez
1

votes
1

answer
98

Views

Stream.Read doesn't return anything if nothing has been sent

I'm trying to receive data via bluetooth in Xamarin.Android. If I have data to receive, my method work fine. But if nothing has been sent, nothing is returned from Stream.Read method (_inputStream.Read(buffer, 0, buffer.Length)). Any idea what am I doing wrong? private Stream _inputStream; public s...
perozzo
1

votes
0

answer
287

Views

Xamarin Forms : Embeded Images not loading in Windows or iOS, but work in Android

So, I started working on my very first Xamarin Forms app and I've run into a weird issue. I've followed all the dead threads, tutorials and even the official one about embedding the images. What I have currently : I have a PCL Xamarin.Forms app. In the PCL resources, I have added the .png and have m...
Xonshiz
1

votes
2

answer
951

Views

The “LinkAssemblies” task failed unexpectedly | Xamarin Release Build

I am working on an app in Visual Studio using Xamarin. I want to build in release mode in order to compile an APK so that I can have a friend install the app to test what I have done so far. Upon building in release mode I get the following error: Severity Code Description Project File Line...
Tristan
1

votes
1

answer
175

Views

Xamarin Maps displays but doesn't update

I'm attempting to make a google map using Xamarin forms, the pins displays correctly and zooms in onto the user. It displays the inital map when the page starts, but when moving or zooming the map doesn't change and becomes grids if you zoom in enough. I can see my pin on the grid and everything, bu...
JsonDork
1

votes
1

answer
1k

Views

Carousel View and List View binding not working with Xamarin Forms

I have one big problem with Xamarin Forms - I have to create a carousel view/page with different list in the different pages. This is the code I've written My main content page is DailyCarouselPage public class DailyCarouselPage : ContentPage { public CarouselViewControl carousel; public DailyCarous...
Andrea Boscaro
1

votes
0

answer
160

Views

Android Application minimize issue

I have developed an Xamarin forms application. In Android devices, Lenovo K6(v7.0) and Nexus 6 (v7.1.1), when the app is minimized and opened by clicking the app icon the opening page of the application is reset to default instead of showing the part in the page where the user has minimized the appl...
cheran
1

votes
0

answer
300

Views

google-services.json does not exist xamarin

I'm writing a cross-platform application in Xamarin. I have a problem with push notification (at the moment with google-services.json), This is massage with error enter image description here These are packages that needed to be installed enter image description here I modifyed .csproj file in Tex...
V.Taylor
1

votes
0

answer
2k

Views

Unexpected java.lang.IllegalArgumentException: Duplicate key in ArrayMap in Xamarin

I am getting this mystery exception in my C# Xamarin code: // startTime contains DateTime.Now set earlier in code //_progressNotification and _..Manager were set once earlier and are never null //The various Duration variables are doubles with values >=0 (totalDuration is never zero) // The follow...
Askerman
1

votes
1

answer
255

Views

Acr.UserDialogs in MVVMCross: problems with the notification

I have Xamarin Android project and use MVVMCross. I need to show the notification. It should be the text and the image. I created the .axml file with it and I need to show it after the click of the button. I did research here and found Acr.UserDialogs. I installed it: PM> Install-Package Acr.UserDia...
NaSt
1

votes
0

answer
119

Views

How to play the music in the Bluetooth speaker programmatically?

I want to play the audio of my app to Bluetooth enabled speaker in Xamarin. I tried with this code. It is not working. It throws an error like invalid cast exception for MBluetoothAdapter.GetProfileProxy. Can anyone please suggest how to do it in Xamarin.Android? private IBluetoothProfileServiceList...
ramya br
1

votes
1

answer
88

Views

Xamarin Forms - Get Named Size Does Not Work well with Android

Device.GetNamedSize works as expected with iOS but Android sizes are not scaling appropriately at all. Has anyone else experienced this? I have resorted to implementing these controls natively which drives me insane. Thanks for your time everyone.
Brian Mahecha
0

votes
0

answer
4

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(exactly) as in the Youtube tutorial but unfortunately, the data did not show up on the edit text...
Yonce
1

votes
1

answer
193

Views

Firebase LinkWithCredentialAsync Not Actually Firing Auth State Listener

In the registration of my Xamarin Android app, I sign the user in anonymously in order to hit the database. After all of the inputs are validated, I use LinkWithCredentialAsync to create / combine the actual user account with the anonymous one. For some reason Firebase is not notifying my listener a...
Tristan
1

votes
1

answer
462

Views

Set custom result code in activity

Usually with Android, you set an integer result code when setting the result of an activity as shown here: void setResult(int resultCode) Xamarin, instead, requires an enum defined as Android.App.Result. This enum has these values: Ok, Canceled, FirstUser The Problem You cannot set custom result cod...
Sam Liddle
1

votes
0

answer
113

Views

Add zoom on CocosSharp layer

I'm testing CocosSharp on Visual Studio 2017, I want to perform a zoom on a CCLayer by testing a List of CCTouch elements. This list is sended by a CCEventListenerTouchAllAtOnce.OnTouchesBegan event. Here is my code that doesn't work : private void HandleTouchBegan(List touches, CCEvent touchEvent)...
Alexus
1

votes
1

answer
129

Views

Xamarin HMACSHA512 VERY slow on Android

I'm running the following code and for 10,000 iterations I get almost 5 seconds on Android (Samsung J5). On Windows (I5) for 100,000 iterations I get 200ms. I can't test on Windows Mobile because the Xamarin project now targets .net standard which isn't compatible with Windows Mobile. But the actual...
ispiro
1

votes
1

answer
289

Views

How to underline TextView in xml (Xamarin.Android)?

I have to underline the TextViews of the following table: The only thing I found in internet is: http://www.apnatutorials.com/android/how-to-underline-text-in-android.php?categoryId=2 (Approach 4) But the value of the text in that case is hardcoded. In my case there are 9 rows which can change its n...
Profile3ForStack

View additional questions