Skip to main content

Questions tagged [kotlin]

Kotlin is a cross-platform, statically typed, general-purpose high-level programming language with type inference. This tag is often used alongside additional tags for the different targets (JVM, JavaScript, native, etc.) and libraries/frameworks (Android, Spring, etc.) used by Kotlin developers, if the question relates specifically to those topics.

1 vote
0 answers
21 views

App Crash com.google.gms:google-services:4.3.15

I encountered below problem. Problem: App Crash com.google.gms:google-services:4.3.15 FATAL EXCEPTION: main java.lang.RuntimeException: Unable to start activity ComponentInfo{com.xxx.yyy/com.xxx.yyy....
Ed Cao's user avatar
  • 11
0 votes
1 answer
18 views

Does the delay function compensate for the time the system hangs?

When calling delay() in android using kotlin and a system sleep occurs before the timeout, does the delay() time actually get longer? For example, when I call delay(10 minutes) at exactly 10:00, but ...
progquester's user avatar
  • 1,550
0 votes
2 answers
20 views

registerForActivityResult(ActivityResultContracts.RequestMultiplePermissions()) in fragment not working correctly

I use registerForActivityResult to request permissions in a fragment as follows private var mediaLauncher = registerForActivityResult(ActivityResultContracts.RequestMultiplePermissions()) { ...
DucK's user avatar
  • 17
-1 votes
0 answers
21 views

Host a vpn server on android [closed]

is it possible to host a vpn server on android? Basically I want to host a server on the same device that will connect to it(I want to see what requests are being made on the phone and I wanna block ...
Maksim Kreydin's user avatar
-1 votes
0 answers
12 views

Fetch Data Problem All Data is not showing In APP and Install

i am working with flutter app i purchase app. and successfully build apk file and install in my mobile but my all data in website is not fetching in app Actually there is .ENV file in my website ...
Shoaib Sgh's user avatar
0 votes
0 answers
12 views

Getting error " application installation failed " in android studio while using it with kotlin

I have just started with kotlin in android studio, and i am constantly getting encountered by error "The Device already has newer version of this application. In order to proceed, you will have ...
Srujan Deshmukh's user avatar
2 votes
1 answer
21 views

Extracting Zip contents into a flat directory using Kotlin

I'm working on some code to parse and extract the contents of a zip file. I finally figured out how to deal with nested zip archives (see: Extracting a Zip archive containing nested zip files using ...
pbuchheit's user avatar
  • 1,643
0 votes
0 answers
13 views

How to store drawables in a pre-populated room database

I'm working on small app in kotlin for android and i used sql to make a small pre-populated database of books which i then load into a room database. I want to store the images of the books inside the ...
nm16pc's user avatar
  • 25
0 votes
0 answers
7 views

open api generator kotlin gradle dsl - cant generate specific api endpoint

i am using open api generator kotlin dsl build.kts gradle task version 7.0.1 to generate spring 2.7.18 web clients expected: generate 1x MeterApisAPi and 1x model openApiGenerate { globalProperties....
tytx t's user avatar
  • 1
0 votes
0 answers
9 views

Kotlin Multiplatform Library - Best practices for library dependencies

I'm creating a Kotlin Multiplatform library that interacts with a Restful HTTP API service. The library depends on Ktor and Kotlin Serialization. When importing the library, users also have to import ...
Peter Araujo's user avatar
0 votes
0 answers
5 views

Triggering onAdImpression in the AD-Mob in android

What I am doing doing I have the below code where the AD is Displaying I am using google AD-Mob AD is displaying fine What I am trying to understand onAdImpression() is not triggered when the view ...
Devrath's user avatar
  • 42.7k
0 votes
0 answers
8 views

Android Studio error: ENOENT (No such file or directory) for file that exists

I am working on an app that has a "report" object. The idea is to be able to export the report to a .txt file as a JSON to external storage (public), and it should also be able to read .txt ...
Siddhant Samarth's user avatar
0 votes
0 answers
10 views

Android.graphics.color.argb value mismatch

This might be another stupid question but I can't figure out how to resolve this. I am new to kotlin and android. When i print this: println(android.graphics.Color.argb(0.1f, 0f, 0f, 0f)) Output ...
Ankita Jaiswal's user avatar
1 vote
1 answer
33 views

Extracting a Zip archive containing nested zip files using Kotlin

I'm working on an application that needs to extract a zip archive of json documents into a folder. The problem I'm encountering is that sometimes the archive contains nested zip files. My current code ...
pbuchheit's user avatar
  • 1,643
0 votes
0 answers
6 views

how to use ktor or networking in kmp web wasm project

I have downloaded the kmp project from kotlin wizard online everything works fine for mobile applications but when it comes to wasm web it does resolve dependencies here is the error :composeApp:...
Shahvez Ali's user avatar

15 30 50 per page
1
2 3 4 5
6425