Category "android"

Apache Commons Net FTP does not throw any exception on wrong credentials

I just managed to upload some files to an FTP server using Apache Commons Net FTP. When I use everything as it should be it works fine, I mean, the file uploadi

Expo / Android Simulator 'Error opening simulator'

I just installed Android Studio, created and ran a virtual device and have run expo, which successfully established the web server. However, when I click on 'Ru

Dimension name clash between two included libraries

I have an app that includes two libraries, both of which define a dimension with the same name (say text_size). At runtime I can see the style from one library

Export Android compiler Warning to text file

I want to write all the compiler warnings in a text file. Once we build it, we can see warnings in Build Output as seen in screenshot. Is the file already avail

How to test async function in Mockk Kotlin

I want to test this function. suspend fun fetchTwoDocs() = coroutineScope { val deferredOne = async { fetchDoc(1) } val deferred

When to use let/run/apply/with/also when an object is null?

I want to run a block of code depending if the variable is null or not, but I still don't know when to use let,run...etc. I want something like this: myVar?.xxx

How do you paste an image into an edit text

I want to copy an image from the browser or your phone and be able to paste it into an edit text. When I try to paste an image into an edit text it says "[App n

Jetpack Compose: What is the best way to support all screen sizes?

I searched on Google multiple ways to support multiple screen sizes on Android with Jetpack compose and I finally found the Google documentation: https://develo

Android signed APK can not make API calls

Our app has started hanging when making API calls despite not being updated in production for months. We can replicate the issue using the Play Store version of

Android Studio memory profiler have some serious memory issues

I am trying to fix some memory leaks in my apps but I am always fighting with memory profiler instability itself instead of being able to focus on my task. Inte

java.lang.IllegalStateException: No request transformation found: XYZ in ktor

Hey I am working in ktor. I am getting weird issue and I am trying to find the issue, but unable to get the proper reference. androidMain AndroidHttpClient.kt p

How to get location fast and only once using fused location provider client in 2021

I am developing a app which has to get the location information (latitude and longitude) of the device only once but as fast as possible. My code is taking too

Android application works with debugger but not in release mode

I have been trying to implement a debouncer for my application, I am trying to reduce requests to the server using this debouncer, eventually, I managed to impl

React Native Flipper Debugging Issue : "NO APPLICATION SELECTED"

I have managed to connect a device ( I see logs and see the tree of React Native elements), but now I have an issue with connecting the app - "NO APPLICATION S

Android <= 11 Splash Screen Background Color and Branding

With the new android 12 splash screen migration the following is required. <style name="Theme.App.Starting" parent="Theme.SplashScreen"> <item name

NoClassDefFoundError: Failed resolution of: Landroidx/tracing/Trace

When I start a basic androidTest my app crashes: @Test fun myTest() { val scenario = ActivityScenario.launch(MainActivity::class.java) // ... } This is

The relationship between kswapd、low memory killer(lmk) and low memory killer daemon(lmkd)?

In my cognition.if lmk does not exist,lmkd will kill process.otherwise,it will call lmk to kill process.I have some question about this way. Is lmk called by ut

Can't show/hide menu items on Kotlin - Android Studio

my application has a menu of 3 options, and what I want is that according to a condition that I define, it shows only 2 options, or it shows 3. I have tried all

How to open file with custom extension on android 11 via action open document

How i can open file with my extension settings. Framework see this file,but i can't open it. when i set mime_type / all ok,but it allow to open all file types,b

Trying to implement Facebook Login using Firebase on Android Studio. Screen is stuck loading facebook login page when i try to sign in

i'm a beginner who is learning how to use Android studio and this is my first time posting on Stack Overflow. I wish to implement Facebook login on my android a