Category "android"

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

Android Chrome keypress event "Enter" not triggered when using multiple input elements

When the user clicks on the 'Enter' button in Android (right bottom button) I'm unable to catch the event. I tried 'keyup', 'keydown', 'keypress' and the native

Log method name and line number in Timber

Is possible log the current line number and method name using the Timber library? Expected LogCat result: ismaeldivita.myapp I/[L:22] [M:onResume] [

Android error getSlotFromBufferLocked: unknown buffer: 0xa9fb8d90

i am working on an android app which uses material-intro dependencies for intro slides, but when the slide complete and try to switch from the Slide(Materialint

Osmdroid: How to force a map to refresh?

I am displaying a large number of overlays on a map; the process takes 5-10 seconds. Rather than using a progress bar I want the overlays to appear gradually on