Category "android"

Google Maps SDK for Android - Cost

My question is about the charge in the Google Maps API, I have the following code: public void onMapReady(GoogleMap googleMap) { mMap = googleMap; //

Cordova console.log not working

Hello I downloaded and installed node.js as I have done million times also I installed cordova as mentioned in their docs. Furthermore I installed console.plugi

Android testing: Waited for the root of the view hierarchy to have window focus

In Android Ui testing, I want to click on a spinner item in a dialog, but it pop up with this error: va.lang.RuntimeException: Waited for the root of the view

ADB Android Device Unauthorized

Since I reinstalled Eclipse (simply deleted and downloaded it again) I can't debug my applications on Samsung Galaxy i9001 (with CyanogenMod - Android 4.4.2). I

How to access localhost on a chromebook

I'm using Spck editor on a Google Chromebook to do some coding (localhost:7700), but localhost isn't working when trying to preview in browser. I just get an ER

ADB Android Device Unauthorized

Since I reinstalled Eclipse (simply deleted and downloaded it again) I can't debug my applications on Samsung Galaxy i9001 (with CyanogenMod - Android 4.4.2). I

Jetpack Compose Preview not showing

I seem to be having trouble with Preview in compose, the layout panel doesn't appear when I annotate a compose method with @preview. I assume I'm missing a depe

How do I maintain the Immersive Mode in Dialogs?

How do I maintain the new Immersive Mode when my activities display a custom Dialog? I am using the code below to maintain the Immersive Mode in Dialogs, but w

Android hms notification second click don't work as needed

I have notifications from huawei push kit with click_action : {type : 3 }. When app is in background. I recieve 2 or more notification. After click on first no

HttpPost: InputDispatcher: "Channel is unrecoverably broken and will be disposed!" on Nexus 7

On Nexus 7 (4.3), and not on my older device, LG Optimus 3d (Android 2.2), when I do HttpPost, I get this E/InputDispatcher﹕ channel '4273f7b0 ... Main

A very complicated workaround for using a C# dll with an Android app? (xamarin)

I have an proprietary Android app (created with Android Studio) and I need to add some functionality which requires to use a C# DLL. The app is connecting wir

How to use android emulator for testing bluetooth application?

I am developing an application which will send a request to a bluetooth printer for printing. The code is working fine for real devices, but I want to run it on

When using Immersive Mode with dialogs, nav. bar reappears and resizes my layout

I'm using Immersive Mode in my app when it's running on Android 4.4+. (http://developer.android.com/training/system-ui/immersive.html) My activity indeed shows

How to show ellipsis (three dots) at the end of a Text line in Android Jetpack Compose?

Whether I use androidx.compose.foundation.text.BasicText or androidx.compose.material.Text, if there isn't enough space for a text it wraps to the next line, fo

Error when trying to use a PieChart (hellocharts) on an Activity

I'm trying to use the external library "hellocharts" in my project. I have linked the library to my project already, but when the activity that has the chart st

react native vector icons won't show in android device

I used react-native-vector-icons in my react native project and start app with npm start. Icons are displaying normally in iOS, but won't show in android. Thing

Adding Dollar Sign ($) Automatically In Edit Text for Android Studio

I would like to have an edit text that would automatically input a dollar sign before the number. Android Studio Example $500 EDIT: The addition of the $ sho

Auto scroll recyclerview slider

I am new to Android development. I am trying to create an auto scroll recyclerview slider which also supports user events such as next and previous buttons and

Trying to use NavHostFragment and im getting an error: Error inflating class androidx.fragment.app.FragmentContainerView

here is the caused by: " Caused by: android.view.InflateException: Binary XML file line #21 in com.example.dnaire:layout/main: Binary XML file line #21 in com.e

Jetpack Compose Applying PorterDuffMode to Image

Based on the images and PorterDuffModes in this page I downloaded images, initially even though they are png they had light and dark gray rectangles which were