Category "kotlin"

Android Notification MediaStyle Ignores Ongoing Flag

I am attempting to employ a MediaStyle notification in an audio Android application as discussed in the audio app documentation as well as in the media style do

Rest Api SSL on tomcat server

Setup: I have setup a front-end(Next.js) and backend kotlin-api. I use Cloudflare with SSL turned full on. I have setup SSL using certbot on both of these. This

I cannot concatenate a variable + string + variable this line of code gives me a error "None of the following functions can called with the argument s

I'm a newcomer in this, and I'm learning kotlin in android studio, and I'm stacked in this error, "None of the following functions can be called with the argume

I'm getting an error while generating a signed apk bundle

I have made a simple app in android studio. It builds and runs fine when I test it on an android device, but when I tried to generate a signed apk for the app,

Sum map values in kotlin

I have a map that structure like this: "Alex": [Work(workPlace="workPlace", years=1), Work(workPlace="workPlace", years=4), Work(workPlace="wor

Which openssl keypair gen command produces a password-less private key that I can read in Java 17?

Burned better part of a day on this. Google says use PKCS#8 format for the private key, so I issued command (alpine openssl 1.1.1o) $ openssl genpkey -out my.p

Build complex PDF in kotlin [closed]

I want to create "complex" (footer, header, cells and pictures) pdf for my android application (kotlin). I've seen some people already asked f

download url is getting as com.google.android.gms.tasks.zzu@441942b : Firebase Storage

i have checked available resources and yet either i get error or at best i get com.google.android.gms.tasks.zzu@5f9a842 as the uri Following this latest google

How to implement a custom view in a RecyclerView using a BindingAdapter

Can anyone help me to use a custom view (AAChartCore-Kotlin, ChartView) in a RecyclerView (displaying some speedcubing sessions' data) using a binding adapter?

Android Kotlin findViewById must not be null

We have created a custom alert dialog that was used in a Java project by converting it to Kotlin The error posted below java.lang.IllegalStateException: findVi

How to use Parcel.readTypedList() along with @Parcelize from kotlin-android-extensions?

I'm running into a problem with implementing Parcelable-based state persistence in a View. Namely, as I need to implement the methods of BaseSavedState like thi

405 Method not allowed despite exposing all methods when using RepositoryRestConfiguration.disableDefaultExposure()

I don't want to expose my repositories by default and it looks like RepositoryRestConfiguration.disableDefaultExposure() does exactly what I want; however I get

How to make ViewPager2 less sensitive?

I'm using ViewPager2 in my App, it has three pages and each page show different contents, the issue is that it's too sensible that the ViewPager will change the

Determine Android device performance programmatically

I want to run different lines of code for android devices with different performance. For example something like this: if (isHighPerformanceDevice()) { // r

Is it possible to work with Apple Keychain from Kotlin in KMM?

Basically the whole question is in the title: "Is it possible to work with Apple Keychain from Kotlin in KMM?" I found there is available platform.Security for

How to build cordova project with Kotlin

I have a cordova project folder www already in progress. Build this and you will have an Android project. This will create a MainActivity.java file. I don't

How to deserialise a field and tell the difference between the value being null or absent?

When I am deserialising into my class, for some fields, I would like to be able to tell the difference between the value being absent, or null. For example, {"i

Read value from local.properties via Kotlin DSL

I want to retreive key from local.properties file that looks like : sdk.dir=C\:\\Users\\i30mb1\\AppData\\Local\\Android\\Sdk key="xxx" and save this value in m

Exposed drop-down menu for jetpack compose

I was wondering if there is a solution for Exposed drop-down menu for jetpack compose? I couldn't find a proper solution for this component inside jetpack compo

Android kotlin Object Any type mismatch

How to assign kotlin map to java library map. This gives type mismatch error for Object and Any. I need to assign java map variable in a 3rd party java library