Category "android"

Android Studio can't connect to JFrog Artifactory

We've been successfully running a JFrog Artifactory OSS instance for a few years to host our Android libraries. Recently the web server certificate expired so w

Failure [INSTALL_FAILED_USER_RESTRICTED: Invalid apk] in android

I am using Android Studio 3.0.1. When i am trying to run app INSTALL_FAILED_USER_RESTRICTED: Invalid apk error occurs. I also disable Instant Run.

The page property cannot be read when multiple PageViews are attached to the same PageController.Failed assertion: line 184 pos 7:

Iam trying to restart the quiz app but when iam press the restart i have this error message (The page property cannot be read when multiple PageViews are attach

How to remove unneeded permissions on Ionic 5 capacitor Android app?

I am setting up my first Ionic React app. I created an app with Ionic 5 and used the In-app Purchase 2 plugin. I wanted to test this, so I uploaded the signed

What happens when we call finish() in onCreate() method?

What happens when we call the finish()method for the activity inside onCreate()? Will the app get time to display the Activity, but then rapidly close, or won't

How can I convert a Long value to date time and convert current time to Long kotlin?

The Code A can convert a long value to date value, just like 2018.01.10 I hope to get Date + Time value , such as 2018.01.10 23:11, how can I do with Kotlin?

Start Background service when app is in background

How can I start an alarm using background services when we receive notification ? When my application is active then background service start easily, but when a

Fragment navigation and menu. How to remove latest fragment? Check description

I was incapable of finding an answer for the following context: Let's say we have a menu and a nav graph instanced in the main activity. We have 3 fragment: Hom

AccessibilityService not geting key event on softkey back,home button

My AccessibilityService work fine for physical back,home. but if user have device with soft navigation key (like nexus 4 ) it will not return key event here is

File picker type image returns null flutter

I have a problem with file picker type image. when I specify the type of the file as image file the function returns null , but when I specify an other type ,it

How to set global variables in gradle.kts?

My app uses several gradle.kts scripts. I want to set one variable which would be global for everyone. object Versions{ val kotlin_version = "1.3.60-eap-25"

White background shows during 1 sec when keyboard closes on Android

When I tap to close the virtual keyboard, white background is shown on that place for 1 second. I use Activity(WindowSoftInputMode = SoftInput.AdjustResize) to

Execution failed for task ':google_api_headers:compileDebugKotlin'

After updating to Dart 3.0 I have this error when I launch the app on Android simulator. For iOS physical device its building ok. Unfortunately can't try with A

How to inject data class in android with dagger where data class parameter have no default value?

My data class like: data class Animal(var id:Int = 2) { } My Provides method in module class like: @Provides @Singleton fun provide():

Android coreLibraryDesugaringEnabled, connected test crash with NoSuchMethodError

I added coreLibraryDesugaringEnabled to our app, and it works fine for normal app runs. compileOptions { coreLibraryDesugaringEnabled true } and core

Jetpack Compose, centering text without font padding?

I'm struggling with vertically centering text in Jetpack Compose version alpha-11. It appears that my font has a significant amount of padding and I'm unable to

Picasso 2.5.2 does not load a local image

I am using Picasso 2.5.2 to use it with OkHttp 2.5.0 The code in onCreate() is like below: File mypath = new File(getFilesDir().getAbsolutePath()+"/"+ date +

Applovin Test Ads are not showing in android application in java

i am integrating applovin ads in my app but test ads are not showing in my app even i added the line in which we add GAID but applovin test ads are not showing.

Python kivy android app problem with the Black screen

I have question about application about one situation. when I turn on the application, the logo of the application that I uploaded in buildozer is loaded, then

Kotlin Multiplatform Project Unit Test Issue

Today I just updated my Android Studio to Android Studio 3.5.2 Build #AI-191.8026.42.35.5977832, built on October 31, 2019 JRE: 1.8.0_202-release-1483-b49-5587