id stringlengths 7 11 | source stringclasses 1
value | category stringclasses 11
values | title stringlengths 15 214 | text stringlengths 70 30.5k | url stringlengths 57 160 | tags stringlengths 3 113 | created_at int64 1.22B 1.79B |
|---|---|---|---|---|---|---|---|
se_69920555 | stackoverflow | MOBILE_DEVELOPMENT | Using Kotlin Value classes in Java | Using Kotlin Value classes in Java
We have two projects, and the kotlin one publishes a package that's imported by java.
In kotlin, is a value class like
@JvmInline
value class CountryId(private val id: UUID) {
override fun toString(): String = id.toString()
companion object { fun empty(): CountryId = CountryI... | https://stackoverflow.com/questions/69920555/using-kotlin-value-classes-in-java | java, kotlin, value-class | 1,636,580,432 |
se_79846346 | stackoverflow | MOBILE_DEVELOPMENT | CapabilityClient.getCapability returns empty nodes list on Wear OS 6 / Android 16 setup | CapabilityClient.getCapability returns empty nodes list on Wear OS 6 / Android 16 setup
I have a problem with CapabilityClient visibility. I have both Android and Wear OS apps installed on the phone (Pixel 6 with Android 16) and paired watch (Samsung Galaxy Watch 6 with Wear OS 6). Both apps are running. I've also tes... | https://stackoverflow.com/questions/79846346/capabilityclient-getcapability-returns-empty-nodes-list-on-wear-os-6-android-1 | android, kotlin, wear-os, wearables | 1,765,589,806 |
se_79847917 | stackoverflow | MOBILE_DEVELOPMENT | The Android application gets its name from an external module | The Android application gets its name from an external module
I installed the LiqPay SDK according to the instructions from GitHub:
Download the project as a .zip file, which contains the repo folder with the library and its transitive dependencies.
Add the repo folder to the root directory of the project.
In the p... | https://stackoverflow.com/questions/79847917/the-android-application-gets-its-name-from-an-external-module | android, kotlin, android-manifest | 1,765,822,045 |
se_79847626 | stackoverflow | MOBILE_DEVELOPMENT | Kotlin - Mocking object with Scanner dependency | Kotlin - Mocking object with Scanner dependency
I have just started with Kotlin, so I'm not sure what the best practices are. The object file looks like this at the moment, as I am expecting the user's input:
object FlowCoordinatorUtil {
private val logger = LoggerFactory.getLogger(FlowCoordinatorUtil::class.java)
fu... | https://stackoverflow.com/questions/79847626/kotlin-mocking-object-with-scanner-dependency | kotlin, unit-testing, java.util.scanner, mockk | 1,765,797,890 |
se_67059431 | stackoverflow | MOBILE_DEVELOPMENT | How to Mock Kotlin LifecycleCoroutineScope for Unit Test? | How to Mock Kotlin LifecycleCoroutineScope for Unit Test?
How can I mock the following function act.
class Some {
internal lateinit var coroutineScope: LifecycleCoroutineScope
...
fun act() {
coroutineScope.launch {
...
}
}
}
I am using mockk and kotlinx-coroutines-test f... | https://stackoverflow.com/questions/67059431/how-to-mock-kotlin-lifecyclecoroutinescope-for-unit-test | android, unit-testing, kotlin, kotlin-coroutines, mockk | 1,618,234,659 |
se_79845203 | stackoverflow | MOBILE_DEVELOPMENT | Jetpack Compose: Why does opening the keyboard leave two keyboards worth of space when using .imePadding()? | Jetpack Compose: Why does opening the keyboard leave two keyboards worth of space when using .imePadding()?
I’m building a launcher UI in Jetpack Compose and running into a layout issue.
When the search bar is located at the bottom, opening the keyboard causes a large blank space to appear in the middle of the screen.... | https://stackoverflow.com/questions/79845203/jetpack-compose-why-does-opening-the-keyboard-leave-two-keyboards-worth-of-spac | android, kotlin, android-jetpack-compose | 1,765,568,692 |
se_79841866 | stackoverflow | MOBILE_DEVELOPMENT | Migration files not executed in test | Migration files not executed in test
I have test class which, if configured in this way, works
@DataJpaTest
@AutoConfigureEmbeddedDatabase(
refresh = AutoConfigureEmbeddedDatabase.RefreshMode.BEFORE_EACH_TEST_METHOD,
provider = AutoConfigureEmbeddedDatabase.DatabaseProvider.ZONKY
)
@TestPropertySource(
pro... | https://stackoverflow.com/questions/79841866/migration-files-not-executed-in-test | spring-boot, kotlin, spring-data-jpa, flyway | 1,765,279,468 |
se_72955517 | stackoverflow | MOBILE_DEVELOPMENT | Jetpack Compose semicircle using Canvas | Jetpack Compose semicircle using Canvas
I am trying to create a semicircle speed progress bar in Jetpack Compose. Unless the view is square the semicircle will not look as expected, if I use 1:2 width: height it will be flattened. I want a Composable representing half of the circle where I don't have unusable bottom h... | https://stackoverflow.com/questions/72955517/jetpack-compose-semicircle-using-canvas | android, kotlin, android-jetpack-compose, android-canvas | 1,657,643,251 |
se_79190446 | stackoverflow | MOBILE_DEVELOPMENT | How to load Flutter assets in Android | How to load Flutter assets in Android
I am trying to load some audio files that are part of my Flutter assets into Android, however I can't seem to find the correct approach to do so, and with the recommended way having been deprecated (use of PluginRegistry.Regitry based APIs).
This is my file hierarchy:
project
├─au... | https://stackoverflow.com/questions/79190446/how-to-load-flutter-assets-in-android | android, flutter, kotlin | 1,731,619,043 |
se_79513290 | stackoverflow | MOBILE_DEVELOPMENT | How to Properly Initialize Koin in a KMM Application on the iOS Side? | How to Properly Initialize Koin in a KMM Application on the iOS Side?
I’m working on a Kotlin Multiplatform Mobile (KMM) application and trying to set up dependency injection using Koin. The Android side works fine, but I’m running into issues when initializing Koin on the iOS side.
Here’s what I’ve done:
In iosMain, ... | https://stackoverflow.com/questions/79513290/how-to-properly-initialize-koin-in-a-kmm-application-on-the-ios-side | ios, xcode, kotlin, kotlin-multiplatform, koin | 1,742,162,315 |
se_46943860 | stackoverflow | MOBILE_DEVELOPMENT | Idiomatic way to generate a random alphanumeric string in Kotlin | Idiomatic way to generate a random alphanumeric string in Kotlin
I can generate a random sequence of numbers in a certain range like the following:
fun ClosedRange<Int>.random() = Random().nextInt(endInclusive - start) + start
fun generateRandomNumberList(len: Int, low: Int = 0, high: Int = 255): List<Int> {
(0..l... | https://stackoverflow.com/questions/46943860/idiomatic-way-to-generate-a-random-alphanumeric-string-in-kotlin | kotlin | 1,508,976,464 |
se_47082194 | stackoverflow | MOBILE_DEVELOPMENT | Is it possible to apply a single annotation to multiple use-site targets in Kotlin? | Is it possible to apply a single annotation to multiple use-site targets in Kotlin?
According to the documentation: https://kotlinlang.org/docs/reference/annotations.html
You can apply multiple annotations to a single site-use target, but is there a way to apply the same annotation to multiple site-use targets?
My u... | https://stackoverflow.com/questions/47082194/is-it-possible-to-apply-a-single-annotation-to-multiple-use-site-targets-in-kotl | annotations, kotlin, simple-framework | 1,509,647,041 |
se_64961998 | stackoverflow | MOBILE_DEVELOPMENT | How to re-order endpoints on Swagger UI (OpenAPI)? | How to re-order endpoints on Swagger UI (OpenAPI)?
I have configured Swagger in my Spring boot application, the spring boot application has 2 controllers, casesController and AttachmentController, I want all the endpoints from my attachment controller appear after the case controller endpoints, but swagger is doing th... | https://stackoverflow.com/questions/64961998/how-to-re-order-endpoints-on-swagger-ui-openapi | java, spring-boot, kotlin, swagger, openapi | 1,606,100,169 |
se_79844424 | stackoverflow | MOBILE_DEVELOPMENT | When clicked and held my Compose Card shows straight squared corners even though the Composable itself has a RoundedCornerShape | When clicked and held my Compose Card shows straight squared corners even though the Composable itself has a RoundedCornerShape
Pointy corners appear in this card when clicked and held when the card itself has rounded corners. I know Compose is declarative so I included the RoundedCornerShape before the .clickable pro... | https://stackoverflow.com/questions/79844424/when-clicked-and-held-my-compose-card-shows-straight-squared-corners-even-though | kotlin, android-jetpack-compose | 1,765,492,977 |
se_70819312 | stackoverflow | MOBILE_DEVELOPMENT | Get 'OnDestroy' overrides nothing error when trying to shutdown textToSpeech - Kotlin | Get 'OnDestroy' overrides nothing error when trying to shutdown textToSpeech - Kotlin
I haven't been able to find a solution to my issue, and I am sure I am doing something dumb I just can't figure out. I am working through a tutorial for Text To Speech right now, and I can't get the ovveride fun OnDestroy() t... | https://stackoverflow.com/questions/70819312/get-ondestroy-overrides-nothing-error-when-trying-to-shutdown-texttospeech-k | android, kotlin, overriding, text-to-speech, ondestroy | 1,642,914,770 |
se_78980493 | stackoverflow | MOBILE_DEVELOPMENT | How To All Images And Videos Get Folder Wise In Our App In Android Kotlin? | How To All Images And Videos Get Folder Wise In Our App In Android Kotlin?
All images and video not show in folder wise
i want all images and video show folder wise and working very smooth working in application
application in all images and video show but not show with folder so i want folder with images and video | https://stackoverflow.com/questions/78980493/how-to-all-images-and-videos-get-folder-wise-in-our-app-in-android-kotlin | android, kotlin, video, gallery, image-gallery | 1,726,197,606 |
se_79844271 | stackoverflow | MOBILE_DEVELOPMENT | Is There an Easier Way to Use Swift Code in Kotlin Multiplatform? Step-by-Step with Cocoapods | Is There an Easier Way to Use Swift Code in Kotlin Multiplatform? Step-by-Step with Cocoapods
Is there any new/easy way to call swift function from kotlin directly in kmp project?
or
Can anyone explain the same using cocoapods step by step? | https://stackoverflow.com/questions/79844271/is-there-an-easier-way-to-use-swift-code-in-kotlin-multiplatform-step-by-step-w | swift, kotlin, kotlin-exposed, kmp, cinterop | 1,765,478,029 |
se_79667432 | stackoverflow | MOBILE_DEVELOPMENT | Unwanted transparent top bar after an updating to Android SDK 35 | Unwanted transparent top bar after an updating to Android SDK 35
Recently I had to update my compileSDK and targetSDK to 35 from 34. After the update the top bar went transparent and I cant get it back to be black with white icons as it was before. Also it overlaps the application. I've tried everyting with themes but... | https://stackoverflow.com/questions/79667432/unwanted-transparent-top-bar-after-an-updating-to-android-sdk-35 | android, kotlin, android-layout, android-15 | 1,750,070,007 |
se_79843360 | stackoverflow | MOBILE_DEVELOPMENT | InvalidAlgorithmParameterException: Unsupported IV length: 16 bytes. Only 12 bytes long IV supported | InvalidAlgorithmParameterException: Unsupported IV length: 16 bytes. Only 12 bytes long IV supported
I'm trying to implement data encryption and decryption using Cipher. This is my code:
class CryptographyManagerImpl : CryptographyManager {
private val KEY_SIZE_BITS: Int = 256
private val GCM_TAG_BITS: Int = 1... | https://stackoverflow.com/questions/79843360/invalidalgorithmparameterexception-unsupported-iv-length-16-bytes-only-12-byt | android, kotlin, encryption, android-biometric-prompt | 1,765,393,669 |
se_79843172 | stackoverflow | MOBILE_DEVELOPMENT | Kotlin Multiplatform KLIB “duplicate kotlin-stdlib-common” error when running jvmTests in Ktor project | Kotlin Multiplatform KLIB “duplicate kotlin-stdlib-common” error when running jvmTests in Ktor project
I’m working with the Ktor codebase (3.4.0-SNAPSHOT) and trying to run JVM tests locally. On a clean checkout, recommended testing (per CONTRIBUTING.md) fails:
./gradlew jvmTests
The build fails during Kotlin Multipl... | https://stackoverflow.com/questions/79843172/kotlin-multiplatform-klib-duplicate-kotlin-stdlib-common-error-when-running-jv | kotlin, open-source, ktor | 1,765,382,643 |
se_73942340 | stackoverflow | MOBILE_DEVELOPMENT | Firebase.auth is a unresolved reference. How can I fix it? | Firebase.auth is a unresolved reference. How can I fix it?
I'll try to follow the Firebase Login tutorial, but these lines break my code because auth is an unresolved reference. How can I fix it?
class LoginActivity : AppCompatActivity() {
private lateinit var auth: FirebaseAuth
override fun onCreate(saved... | https://stackoverflow.com/questions/73942340/firebase-auth-is-a-unresolved-reference-how-can-i-fix-it | android, firebase, kotlin, firebase-authentication | 1,664,847,383 |
se_79779012 | stackoverflow | MOBILE_DEVELOPMENT | SecurityFilterChain bean from the library conflicts with managementSecurityFilterChain bean from ManagementWebSecurityAutoConfiguration | SecurityFilterChain bean from the library conflicts with managementSecurityFilterChain bean from ManagementWebSecurityAutoConfiguration
I have a library that specifies WebSecurity where I'm creating SecurityFilterChain bean. Actually, ManagementWebSecurityAutoConfiguration is annotated with @ConditionalOnDefaultWebSec... | https://stackoverflow.com/questions/79779012/securityfilterchain-bean-from-the-library-conflicts-with-managementsecurityfilte | java, spring, kotlin, spring-security | 1,759,229,618 |
se_47260998 | stackoverflow | MOBILE_DEVELOPMENT | Why do I get the error java.lang.IllegalStateException: instance not initialized? | Why do I get the error java.lang.IllegalStateException: instance not initialized?
I get the error
java.lang.IllegalStateException: instance not initialized
you can test it at https://www.dropbox.com/s/gxeok1fyttsl54u/MyMirror.zip?dl=0
It seems that the code operator fun getValue(thisRef: Any?, property: KPrope... | https://stackoverflow.com/questions/47260998/why-do-i-get-the-error-java-lang-illegalstateexception-instance-not-initialized | android, kotlin | 1,510,565,474 |
se_53891473 | stackoverflow | MOBILE_DEVELOPMENT | How can I write "/*" in a kotlin comment? | How can I write "/*" in a kotlin comment?
How can I write /* in a kotlin comment in a span code?
For example:
/**
* Defines the route `/route/*`
*/
fun defineRoute() {
/* ... */
}
Right now, according to Kotlin, /route/* is the beginning of a nested comment (so the whole file is commented). I'm u... | https://stackoverflow.com/questions/53891473/how-can-i-write-in-a-kotlin-comment | kotlin, nested, comments | 1,545,431,375 |
se_74044246 | stackoverflow | MOBILE_DEVELOPMENT | How to get stringResource if not in a composable function | How to get stringResource if not in a composable function
I have a Jetpack Compose app that uses stringResource everywhere and it works great for localization.
But, I have a few functions that are no Composable Functions and I would like to retrieve the string from the resources. When I try to use stringResource in t... | https://stackoverflow.com/questions/74044246/how-to-get-stringresource-if-not-in-a-composable-function | kotlin, android-jetpack-compose, android-compose-textfield | 1,665,587,689 |
se_45628861 | stackoverflow | MOBILE_DEVELOPMENT | Why does the compiler need the `const` modifier? | Why does the compiler need the `const` modifier?
In Kotlin there are:
val - read-only properties
const val - compile-time constants
From the documentation:
Compile-Time Constants
Properties the value of which is known at compile time can be marked as compile time constants using the const modifier. Such properties ... | https://stackoverflow.com/questions/45628861/why-does-the-compiler-need-the-const-modifier | kotlin | 1,502,434,713 |
se_79841097 | stackoverflow | MOBILE_DEVELOPMENT | com.fasterxml.jackson.module.kotlin.jacksonObjectMapper Removed from Latest Jackson 3.x Versions? | com.fasterxml.jackson.module.kotlin.jacksonObjectMapper Removed from Latest Jackson 3.x Versions?
We have a very old Kotlin class (v1.4) that we were upgrading to the latest Kotlin and in the process upgrading to the latest jackson JARs too in the process.
I see that the groupId has changed for all of them to tools.ja... | https://stackoverflow.com/questions/79841097/com-fasterxml-jackson-module-kotlin-jacksonobjectmapper-removed-from-latest-jack | kotlin, jackson, fasterxml | 1,765,206,433 |
se_37595936 | stackoverflow | MOBILE_DEVELOPMENT | What is the difference between "const" and "val"? | What is the difference between "const" and "val"?
I have recently read about the const keyword, and I'm so confused! I can't find any difference between const and the val keyword, I mean we can use both of them to make an immutable variable, is there anything else that I'm missing? | https://stackoverflow.com/questions/37595936/what-is-the-difference-between-const-and-val | constants, kotlin | 1,464,880,832 |
se_49426456 | stackoverflow | MOBILE_DEVELOPMENT | Kotlin - what's the reasoning behind "const" | Kotlin - what's the reasoning behind "const"
It has been already clarified what's the difference between val and const val here.
But my question is, why we should use const keyword? There is no difference from the generated Java code perspective.
This Kotlin code:
class Application
private val testVal =... | https://stackoverflow.com/questions/49426456/kotlin-whats-the-reasoning-behind-const | kotlin, constants | 1,521,714,980 |
se_33602705 | stackoverflow | MOBILE_DEVELOPMENT | Best way to implement visitor pattern in Kotlin | Best way to implement visitor pattern in Kotlin
Are there any tricks or common approaches for implementing the visitor pattern in Kotlin? Anything that might be non-obvious to beginners, but leads to more concise or organized code.
EDIT for clarification: I have an AST with many (~30) types of nodes in it. Currently ... | https://stackoverflow.com/questions/33602705/best-way-to-implement-visitor-pattern-in-kotlin | design-patterns, kotlin | 1,447,044,366 |
se_45377386 | stackoverflow | MOBILE_DEVELOPMENT | Using Kotlin WHEN clause for <, <=, >=, > comparisons | Using Kotlin WHEN clause for <, <=, >=, > comparisons
I'm trying to use the WHEN clause with a > or < comparison.
This doesn't compile. Is there a way of using the normal set of boolean operators (< <=, >= >) in a comparison to enable this?
val foo = 2
// doesn't compile
when (foo) {
> 0 -> doSometh... | https://stackoverflow.com/questions/45377386/using-kotlin-when-clause-for-comparisons | kotlin | 1,501,256,085 |
se_78336377 | stackoverflow | MOBILE_DEVELOPMENT | Problem in Android that only happens on OnePlus Smartphones | Problem in Android that only happens on OnePlus Smartphones
I have this problem
Fatal Exception: java.lang.IllegalArgumentException: Failed to find configured root that contains /data/local/tmp/external/d14b78a5-ac82-4371-8791-e7433f6e2f706102300023160852134.jpg
at androidx.core.content.FileProvider$SimplePathS... | https://stackoverflow.com/questions/78336377/problem-in-android-that-only-happens-on-oneplus-smartphones | android, kotlin, oneplusone | 1,713,288,564 |
se_79839679 | stackoverflow | MOBILE_DEVELOPMENT | .flowOn(Dispatchers.Main) blocks the main thread | .flowOn(Dispatchers.Main) blocks the main thread
Why does this code block indefinitely?
fun main() = runBlocking {
val myFlow: Flow<String> = flow {
emit("abc")
}.flowOn(Dispatchers.Main)
myFlow.collect {
println(it)
}
}
Everything seems to work when choosing a different dispatcher fo... | https://stackoverflow.com/questions/79839679/flowondispatchers-main-blocks-the-main-thread | kotlin, kotlin-coroutines, kotlin-flow | 1,765,024,162 |
se_76420661 | stackoverflow | MOBILE_DEVELOPMENT | com.google.android.gms.ads, code: 3, message: Received error HTTP response code: 403 | com.google.android.gms.ads, code: 3, message: Received error HTTP response code: 403
I had published my app on Google Play Store, initially ads came for 2-3 days but after that ads stopped coming. I searched then came to know that there is issue of app-ads.txt file, I fixed it, still ads did not come, I generated new ... | https://stackoverflow.com/questions/76420661/com-google-android-gms-ads-code-3-message-received-error-http-response-code | android, kotlin, admob, ads | 1,686,121,214 |
se_78716671 | stackoverflow | MOBILE_DEVELOPMENT | Status Bar incorrectly displays time and other status colors in API 35 Android Emulators | Status Bar incorrectly displays time and other status colors in API 35 Android Emulators
I am currently trying to migrate my app to be compatible with Android 15. And as far as I concerned, in order to test Android 15 API, we need set up API 35 or VanillaIceCream API. Also based on the Android 15 migration, my app is ... | https://stackoverflow.com/questions/78716671/status-bar-incorrectly-displays-time-and-other-status-colors-in-api-35-android-e | android, kotlin, android-jetpack-compose, android-jetpack-compose-material3 | 1,720,336,970 |
se_79825439 | stackoverflow | MOBILE_DEVELOPMENT | Koin VM/navigation on Kotlin Multiplatform - singleton viewmodel becoming unable to launch coroutine after popBackStack | Koin VM/navigation on Kotlin Multiplatform - singleton viewmodel becoming unable to launch coroutine after popBackStack
Maybe I'm doing something wrong but this seems very strange to me took me a while to track down the cause but basically ViewModels are getting corrupted whenusing popBackStack or swipe left, vm's are... | https://stackoverflow.com/questions/79825439/koin-vm-navigation-on-kotlin-multiplatform-singleton-viewmodel-becoming-unable | android, kotlin, koin, kmp | 1,763,637,096 |
se_79839330 | stackoverflow | MOBILE_DEVELOPMENT | How to make Koog AI Agent aware of the previous messages in a Whatsapp API situation | How to make Koog AI Agent aware of the previous messages in a Whatsapp API situation
I am creating an AI agent that chats with different customers via Whatsapp API. How am can I make the agent aware of the previous messages with the client?
I already save the messages in a database, but how can I pass them to the Agen... | https://stackoverflow.com/questions/79839330/how-to-make-koog-ai-agent-aware-of-the-previous-messages-in-a-whatsapp-api-situa | kotlin, artificial-intelligence, koog | 1,764,971,347 |
se_78298876 | stackoverflow | MOBILE_DEVELOPMENT | Implementing a Lazy Vertical Pager with Pagination in Jetpack Compose | Implementing a Lazy Vertical Pager with Pagination in Jetpack Compose
We have implemented most of the features and we tried to use both LazyColumn and VerticalPager, our issue start from here:
using lazyColumn work and its fetching the data dynamically with the pagination in work but it does not give us the desired U... | https://stackoverflow.com/questions/78298876/implementing-a-lazy-vertical-pager-with-pagination-in-jetpack-compose | android, firebase, kotlin, android-jetpack-compose | 1,712,669,950 |
se_79838802 | stackoverflow | MOBILE_DEVELOPMENT | Transparency with Jetpack Compose Cards | Transparency with Jetpack Compose Cards
I'd like to display a Card with a transparency of 0.5. However, that suddenly shows a rectangle in the middle of the card.
Left without transparency, right with 0.1f.
The code is really simple:
@Preview(showBackground = true, backgroundColor = 0xff11ffff)
@Composable
fun test... | https://stackoverflow.com/questions/79838802/transparency-with-jetpack-compose-cards | kotlin, material-ui, android-jetpack-compose | 1,764,932,473 |
se_79838662 | stackoverflow | MOBILE_DEVELOPMENT | Inconsistent "Extension is shadowed by a member" warning across Kotlin versions (2.0.0, 2.1.0, 2.2.0) | Inconsistent "Extension is shadowed by a member" warning across Kotlin versions (2.0.0, 2.1.0, 2.2.0)
Suppose I have the following Java interface and Kotlin extensions:
public interface Foo {
void scale(int x, int y, int z);
void translate(int x, int y, int z);
}
fun Foo.scale(x: Int, y: Int, z: Int... | https://stackoverflow.com/questions/79838662/inconsistent-extension-is-shadowed-by-a-member-warning-across-kotlin-versions | kotlin, kotlin-extension, kotlin-java-interop | 1,764,922,191 |
se_79838712 | stackoverflow | MOBILE_DEVELOPMENT | Resources Not Found Exception in Android WebView crash mainly on Android 16 | Resources Not Found Exception in Android WebView crash mainly on Android 16
I'm getting frequent crashes when initializing a WebView in my Android app, specifically on Android 16 (API 35). The crash occurs during WebView creation before any URL is loaded.
What I've Tried
Creating WebView dynamically instead of in XML
... | https://stackoverflow.com/questions/79838712/resources-not-found-exception-in-android-webview-crash-mainly-on-android-16 | android, kotlin, android-webview, kotlin-android, android-16 | 1,764,927,318 |
se_71067092 | stackoverflow | MOBILE_DEVELOPMENT | For Android Lock Task Mode is activityManager.lockTaskModeState always "LOCK_TASK_MODE_NONE" | For Android Lock Task Mode is activityManager.lockTaskModeState always "LOCK_TASK_MODE_NONE"
I'm following the developer guide for Lock Task Mode. It's clear for the most part, but I think needs a bit of work in some areas.
It seems to provide instructions on the presumption that you're starting another acti... | https://stackoverflow.com/questions/71067092/for-android-lock-task-mode-is-activitymanager-locktaskmodestate-always-lock-tas | android, kotlin, kiosk-mode, activity-manager | 1,644,504,054 |
se_79838107 | stackoverflow | MOBILE_DEVELOPMENT | MutableSharedFlow.emit() hangs forever | MutableSharedFlow.emit() hangs forever
In our project we are observing an issue with consuming the data from MutableSharedFlow. Under certain conditions we are cancelling the scope in which we produce and collect data. Then we launch data emission and consuming on the new scope, but on the same global instance of Muta... | https://stackoverflow.com/questions/79838107/mutablesharedflow-emit-hangs-forever | kotlin, kotlin-coroutines | 1,764,863,396 |
se_78658625 | stackoverflow | MOBILE_DEVELOPMENT | Text with stroke or borders in jetpack compose | Text with stroke or borders in jetpack compose
I've been trying to get text with actual borders working on Jetpack Compose.
I tried using the shadow style in the Text composable but it doesn't work nor look very good
Text(
text = "lorem ipsum",
style = TextStyle(shadow = Shadow(color = borderColor, blurRadiu... | https://stackoverflow.com/questions/78658625/text-with-stroke-or-borders-in-jetpack-compose | android, kotlin, android-jetpack-compose | 1,719,144,096 |
se_79664148 | stackoverflow | MOBILE_DEVELOPMENT | Android Health Connect giving very weird responses | Android Health Connect giving very weird responses
I started down the rabbit hole of Android Health Connect, and everything was going great until it started giving me some weird results. I am currently using the latest release candidate version 1.1.0-rc02 and am able to connect, and query results just fine.
The issue ... | https://stackoverflow.com/questions/79664148/android-health-connect-giving-very-weird-responses | android, kotlin, aggregate, healthconnect | 1,749,765,824 |
se_79785976 | stackoverflow | MOBILE_DEVELOPMENT | App disappeared from "Recently used" after being set, then unset, as the default Home/Launcher App (Android) | App disappeared from "Recently used" after being set, then unset, as the default Home/Launcher App (Android)
My android application is intended to operate as both a regular app and a home/launcher app.
When used as a regular app, everything works fine (it appears in the "Recently used" list when pressing the... | https://stackoverflow.com/questions/79785976/app-disappeared-from-recently-used-after-being-set-then-unset-as-the-default | android, kotlin, android-manifest, android-launcher, kiosk | 1,759,974,978 |
se_73233826 | stackoverflow | MOBILE_DEVELOPMENT | What does relaxed = true do in mockK? | What does relaxed = true do in mockK?
I read document, but I don't still get it.
The differences between this
private val myClass: MyClass = mockk(relaxed = true)
and this.
private val myClass: MyClass = mockk()
What I understood is if relaxed is true, then all the member fields or methods will return default values... | https://stackoverflow.com/questions/73233826/what-does-relaxed-true-do-in-mockk | android, kotlin, junit, mockk | 1,659,606,787 |
se_65768099 | stackoverflow | MOBILE_DEVELOPMENT | how to resolve FATAL EXCEPTION: DefaultDispatcher-worker-4 | how to resolve FATAL EXCEPTION: DefaultDispatcher-worker-4
I have written a new usecase to communicate to api which uses Flow, I am guessing I am not handing the threading properly in the Usecase between Main thread and IO thread,
This is the error I get
-01-18 02:20:40.555 26602-26870/com.xxx.xx.staging E/AndroidRunt... | https://stackoverflow.com/questions/65768099/how-to-resolve-fatal-exception-defaultdispatcher-worker-4 | android, kotlin, kotlin-coroutines, use-case, android-threading | 1,610,937,060 |
se_79831814 | stackoverflow | MOBILE_DEVELOPMENT | "Type argument is not within its bounds: must be subtype of 'Any'" in Kotlin application after upgrade to Spring Boot 4.0.0 | "Type argument is not within its bounds: must be subtype of 'Any'" in Kotlin application after upgrade to Spring Boot 4.0.0
After upgrading my Kotlin application from Spring Boot 3.5.8 to Spring Boot 4.0.0,
I get a lot of compiler errors
Type argument is not within its bounds: must be subtype of 'An... | https://stackoverflow.com/questions/79831814/type-argument-is-not-within-its-bounds-must-be-subtype-of-any-in-kotlin-app | spring-boot, kotlin, upgrade, nullable | 1,764,255,182 |
se_48223513 | stackoverflow | MOBILE_DEVELOPMENT | MockK "io.mockk.MockKException: no answer found for:" error | MockK "io.mockk.MockKException: no answer found for:" error
Hi i am trying to mock the response i get from a Single observable that gets returned from retrofit using a delegator that my presenter class calls and i am getting the following error:
io.mockk.MockKException: no answer found for: LoginPresenter(#... | https://stackoverflow.com/questions/48223513/mockk-io-mockk-mockkexception-no-answer-found-for-error | unit-testing, kotlin, kotlin-android-extensions, mockk | 1,515,750,458 |
se_75593521 | stackoverflow | MOBILE_DEVELOPMENT | How to pass any Enum as a function argument in Kotlin | How to pass any Enum as a function argument in Kotlin
This code is similar to an answer posted in 2018 to a question about how you can pass any Enum as an argument to a function. It works as presented but I would like it eg to print Weekday.DAYOFF.MyString . Can someone tell me how to do that please. Substituting mySt... | https://stackoverflow.com/questions/75593521/how-to-pass-any-enum-as-a-function-argument-in-kotlin | kotlin, enums | 1,677,595,265 |
se_79836830 | stackoverflow | MOBILE_DEVELOPMENT | How to use Callbacks in Android Kotlin | How to use Callbacks in Android Kotlin
Callbacks in Adapter :- If i having an adapter and there i having a button onto which i want to click and pass that value to the activity inorder to navigate or toast something on the screen. | https://stackoverflow.com/questions/79836830/how-to-use-callbacks-in-android-kotlin | java, android, kotlin | 1,764,762,213 |
se_79836797 | stackoverflow | MOBILE_DEVELOPMENT | How to load and render MBTiles (offline map) in MapLibre Android (Kotlin)? | How to load and render MBTiles (offline map) in MapLibre Android (Kotlin)?
I'm trying to use MapLibre Android SDK to display an offline map stored as an MBTiles file.
However, I can't find a clear, up-to-date example showing how to load an MBTiles file as a raster or vector source in Kotlin.
What I have:
Android app ... | https://stackoverflow.com/questions/79836797/how-to-load-and-render-mbtiles-offline-map-in-maplibre-android-kotlin | android, kotlin | 1,764,760,108 |
se_79836589 | stackoverflow | MOBILE_DEVELOPMENT | Cannot import Place.Field.NAME, LAT_LNG, ADDRESS in Google Places SDK 5.x | Cannot import Place.Field.NAME, LAT_LNG, ADDRESS in Google Places SDK 5.x
I am using the new Google Places SDK in my Android app.
places = "5.1.1"
places = { module = "com.google.android.libraries.places:places", version.ref = "places" }
val fields: List<Place.Field> = listOf(
Place.Field.ID,
... | https://stackoverflow.com/questions/79836589/cannot-import-place-field-name-lat-lng-address-in-google-places-sdk-5-x | java, android, kotlin, android-studio, android-studio-3.0 | 1,764,744,234 |
se_76718814 | stackoverflow | MOBILE_DEVELOPMENT | Enum 'entries' in Kotlin 1.9 cannot be resolved | Enum 'entries' in Kotlin 1.9 cannot be resolved
I updated Kotlin to the latest 1.9, where the Enum 'entries' should be stable.
However, when I try to use it it says Unresolved reference: entries
in my gradle.kts :
plugins {
kotlin("jvm") version "1.9.0"
}
Is there something I should add to the gradle? | https://stackoverflow.com/questions/76718814/enum-entries-in-kotlin-1-9-cannot-be-resolved | kotlin | 1,689,751,027 |
se_79835824 | stackoverflow | MOBILE_DEVELOPMENT | Android Admob not showing interstitial ad with test app ID in kotlin | Android Admob not showing interstitial ad with test app ID in kotlin
This is my SettingActivity file in which i m trying to display the ad via an ad buttton but everytime i try to run it will show in logcat that interstitial ad is not loaded, what could be the probable issue and how can I resolve it
import android.co... | https://stackoverflow.com/questions/79835824/android-admob-not-showing-interstitial-ad-with-test-app-id-in-kotlin | android, kotlin, admob, interstitial | 1,764,676,102 |
se_79770447 | stackoverflow | MOBILE_DEVELOPMENT | How can I load a map of objects from YAML using Micronaut's ConfigurationProperties? | How can I load a map of objects from YAML using Micronaut's ConfigurationProperties?
I'm using the Micronaut framework, and using ConfigurationProperties to load application config into an injectable bean. This has worked well so far, but I'm now stuck on loading nested objects into a Map.
This is the config secti... | https://stackoverflow.com/questions/79770447/how-can-i-load-a-map-of-objects-from-yaml-using-micronauts-configurationpropert | kotlin, dependency-injection, configuration, yaml, micronaut | 1,758,388,561 |
se_67360263 | stackoverflow | MOBILE_DEVELOPMENT | Unable to parse TLS packet header android studio | Unable to parse TLS packet header android studio
I want to connect my local server and get some data with Retrofit but I gave the error "Unable to parse TLS packet header" and I couldn't solve this problem please give me a solution
onFailure: Unable to parse TLS packet header
ServiceBuilder.kt
object ServiceBuilder ... | https://stackoverflow.com/questions/67360263/unable-to-parse-tls-packet-header-android-studio | kotlin, retrofit, okhttp | 1,619,982,842 |
se_79820983 | stackoverflow | MOBILE_DEVELOPMENT | Nested populating of objects using flows | Nested populating of objects using flows
I have an activityUiState (of type ActivityUiState) object which has a list of sub-activities (of type ActivityUiState as well) and a list of voice notes. I'm trying to populate the activityUiState with the list of sub-activities and voice notes using flows. Each of the sub-act... | https://stackoverflow.com/questions/79820983/nested-populating-of-objects-using-flows | android, kotlin, kotlin-flow | 1,763,227,068 |
se_49352837 | stackoverflow | MOBILE_DEVELOPMENT | Spring Boot 2 Gradle plugin without executable jar | Spring Boot 2 Gradle plugin without executable jar
How do I configure Spring Boot Gradle plugin 2 to disable the Boot distribution in Gradle Script Kotlin.
The distribution i want is a assembly bundle zip with all dependencies (and the jar) in the lib folder.
I have enabled the Jar task and disabled the bootJar tas... | https://stackoverflow.com/questions/49352837/spring-boot-2-gradle-plugin-without-executable-jar | spring-boot, gradle, kotlin, spring-boot-gradle-plugin | 1,521,407,440 |
se_79834434 | stackoverflow | MOBILE_DEVELOPMENT | How to Efficiently Test V2Ray/Xray Configs in Android App Using libv2ray? | How to Efficiently Test V2Ray/Xray Configs in Android App Using libv2ray?
I'm developing an Android VPN app that fetches and tests V2Ray/Xray proxy configurations. I need to find working servers quickly, but my current implementation using libv2ray.measureOutboundDelay() is too slow and sometimes crashes.
Current Impl... | https://stackoverflow.com/questions/79834434/how-to-efficiently-test-v2ray-xray-configs-in-android-app-using-libv2ray | android, kotlin, proxy, v2ray | 1,764,574,287 |
se_36037995 | stackoverflow | MOBILE_DEVELOPMENT | Try monad for kotlin | Try monad for kotlin
Java 8 didn't provide Try monad. Which is useful for exception handling in functional style.
Is there any ready implementation in kotlin? or shall i implement one? | https://stackoverflow.com/questions/36037995/try-monad-for-kotlin | java, functional-programming, monads, kotlin | 1,458,137,085 |
se_79833861 | stackoverflow | MOBILE_DEVELOPMENT | Manifest Merge Error when using Blueline Kotlin lIbrary | Manifest Merge Error when using Blueline Kotlin lIbrary
I'm currently learning on how to use thermal printer, and found a library named Blueline. But when i implement it, app can't compile due to Manifest merger failed with multiple errors, see logs
This is my manifest :
<?xml version="1.0" encoding="utf-8"?>
<manifes... | https://stackoverflow.com/questions/79833861/manifest-merge-error-when-using-blueline-kotlin-library | android, kotlin, android-jetpack-compose | 1,764,503,601 |
se_72525328 | stackoverflow | MOBILE_DEVELOPMENT | delegate method or fields in Kotlin | delegate method or fields in Kotlin
In Java, IntelliJ and any other IDE will let you automatically create delegate methods to any properties of a class... this helps a lot to speed up the coding process. Is there any way to do something similar in Kotlin?
why?
I had many fields of a class moved to an inner object. Now... | https://stackoverflow.com/questions/72525328/delegate-method-or-fields-in-kotlin | java, kotlin, delegation | 1,654,569,120 |
se_79833398 | stackoverflow | MOBILE_DEVELOPMENT | removeLastOrNull() for MutableStateFlow List | removeLastOrNull() for MutableStateFlow List
Some articles say when I use MutableStateFlow and collections like MutableList, I should assign the new reference of collections like React.
I am wondering how to get a value from removeLastOrNull() and update the list.
data class Pair(val first: Int, val second: Int)
var ... | https://stackoverflow.com/questions/79833398/removelastornull-for-mutablestateflow-list | kotlin, kotlin-flow | 1,764,436,174 |
se_67947578 | stackoverflow | MOBILE_DEVELOPMENT | Understanding a lambda construct that contains dot followed by brackets | Understanding a lambda construct that contains dot followed by brackets
This is the function declaration for rememberCoilPainter:
@Composable
fun rememberCoilPainter(
request: Any?,
imageLoader: ImageLoader = CoilPainterDefaults.defaultImageLoader(),
shouldRefetchOnSizeChange: ShouldRefetchOnSizeChange = S... | https://stackoverflow.com/questions/67947578/understanding-a-lambda-construct-that-contains-dot-followed-by-brackets | kotlin | 1,623,491,072 |
se_79832862 | stackoverflow | MOBILE_DEVELOPMENT | Parsing Streaming response from OpenAI using Retrofit and Gson/Moshi | Parsing Streaming response from OpenAI using Retrofit and Gson/Moshi
I'm trying to parse the response from OpenAI transcription API with streaming enabled.
The request is:
curl https://api.openai.com/v1/audio/transcriptions \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "Content-Type: multipart/form-data" \
-... | https://stackoverflow.com/questions/79832862/parsing-streaming-response-from-openai-using-retrofit-and-gson-moshi | android, kotlin, gson, retrofit, moshi | 1,764,357,879 |
se_79833059 | stackoverflow | MOBILE_DEVELOPMENT | Flutter build issues | Flutter build issues
I have a old laptop and I started my journey in flutter .The problem is with flutter build .every time I run flutter build command firstly it takes much time I also tried to change my local. Properties and Gradle settings and even Gradle and AGP versions and even Gradle distribution but nothing ... | https://stackoverflow.com/questions/79833059/flutter-build-issues | flutter, kotlin | 1,764,393,510 |
se_79833062 | stackoverflow | MOBILE_DEVELOPMENT | Device Admin APK checksum mismatch when provisioning via QR on a fresh Android device | Device Admin APK checksum mismatch when provisioning via QR on a fresh Android device
I'm trying to provision an Android Device Admin app on a completely fresh device using a QR code. Previously, I encountered an error about missing components, but now the app fails with a checksum mismatch error.
Setup:
-I build a re... | https://stackoverflow.com/questions/79833062/device-admin-apk-checksum-mismatch-when-provisioning-via-qr-on-a-fresh-android-d | android, kotlin, device-owner | 1,764,393,781 |
se_79793628 | stackoverflow | MOBILE_DEVELOPMENT | Differences between long-running Flow processing with transform() and flatMapLatest() | Differences between long-running Flow processing with transform() and flatMapLatest()
I have a data stream coming from the server. The server does not provide any information about when the next piece of data will arrive. I have a Flow in my repository that emits data as it arrives. For example, in my test setup, the ... | https://stackoverflow.com/questions/79793628/differences-between-long-running-flow-processing-with-transform-and-flatmaplat | android, kotlin, viewmodel, kotlin-coroutines, kotlin-flow | 1,760,773,128 |
se_79786744 | stackoverflow | MOBILE_DEVELOPMENT | In a gradle project that contains both Kotlin and Scala code, what's the easiest way to make Kotlin compilation to depend on Scala bytecode? | In a gradle project that contains both Kotlin and Scala code, what's the easiest way to make Kotlin compilation to depend on Scala bytecode?
In gradle, both Kotlin and Scala compiler plugins have limitations: they can both compile Java code in mixed-order, but they cannot compile each other. The only option is to:... | https://stackoverflow.com/questions/79786744/in-a-gradle-project-that-contains-both-kotlin-and-scala-code-whats-the-easiest | scala, kotlin, gradle, gradle-task | 1,760,035,057 |
se_79831472 | stackoverflow | MOBILE_DEVELOPMENT | Does View.getHeight/getWidth include padding? | Does View.getHeight/getWidth include padding?
I was under the impression that the value returned by View.getWidth() includes padding in it. I don't think I'm hallucinating things - a common line of code that Android developers write is something like myView.run { width - (paddingLeft + paddingRight) }, whose goal is t... | https://stackoverflow.com/questions/79831472/does-view-getheight-getwidth-include-padding | android, kotlin, android-layout, android-view | 1,764,230,247 |
se_78601767 | stackoverflow | MOBILE_DEVELOPMENT | It fetched the last second call duration instead of last call duration and in some devices its working fine | It fetched the last second call duration instead of last call duration and in some devices its working fine
@SuppressLint("Range")
private suspend fun lastCallDetail(): String {
val delayDuration = if (Build.VERSION.SDK_INT > Build.VERSION_CODES.TIRAMISU) 3000L else 2000L
delay(delayDuration)
var callDurat... | https://stackoverflow.com/questions/78601767/it-fetched-the-last-second-call-duration-instead-of-last-call-duration-and-in-so | android, kotlin, android-studio | 1,718,015,352 |
se_79832070 | stackoverflow | MOBILE_DEVELOPMENT | In Kotlin, Is there a way to hold weak reference to a function? | In Kotlin, Is there a way to hold weak reference to a function?
I realized that Kotlin is missing a built-in event mechanism similar to what we have in C#.
So I tried to implement my own and ran into a problem that can easily lead to memory leaks.
My original idea was to store a weak reference to the target function a... | https://stackoverflow.com/questions/79832070/in-kotlin-is-there-a-way-to-hold-weak-reference-to-a-function | kotlin, memory-management, memory-leaks, weak-references | 1,764,276,481 |
se_79831753 | stackoverflow | MOBILE_DEVELOPMENT | Error: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: | Error: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException:
I'm using an old version of Android Studio, 3.1.6.
This error appears when the gradle project sync failed. I also have a new version of android studio installed, I dont know if this ... | https://stackoverflow.com/questions/79831753/error-sun-security-validator-validatorexception-pkix-path-building-failed-sun | java, android, kotlin, gradle | 1,764,250,573 |
se_79607113 | stackoverflow | MOBILE_DEVELOPMENT | Compose isn't recomposing with the new lambda instance | Compose isn't recomposing with the new lambda instance
Why isn't Bar recomposing with the new lambda instance?
In this example code, I am creating a new instance of onBarClick every time the state changes. Since it's a new instance, the Bar should recompose as well — but it's not.
I've disabled strong skipping usi... | https://stackoverflow.com/questions/79607113/compose-isnt-recomposing-with-the-new-lambda-instance | android, kotlin, android-jetpack-compose, kotlin-multiplatform | 1,746,455,092 |
se_72519435 | stackoverflow | MOBILE_DEVELOPMENT | kafka Schema not found with schema registry | kafka Schema not found with schema registry
i'm studying kafka with schema registry.
i create schema with topic users-value to schema registry directly.
and than i use avro plugin(davidmc24) to convert.
servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed... | https://stackoverflow.com/questions/72519435/kafka-schema-not-found-with-schema-registry | kotlin, apache-kafka, avro, confluent-schema-registry | 1,654,526,953 |
se_51746673 | stackoverflow | MOBILE_DEVELOPMENT | Kotlin coroutine async with delay | Kotlin coroutine async with delay
I'm trying to understand the coroutine concept in Kotlin/Android. I want to use coroutines to execute an async coroutine after a certain delay, rather than using Timertask or a Handler with a post delayed.
I have the following code:
launch(UI) {
val result = async(CommonPool) {
... | https://stackoverflow.com/questions/51746673/kotlin-coroutine-async-with-delay | android, kotlin, coroutine, kotlin-coroutines | 1,533,731,043 |
se_70729578 | stackoverflow | MOBILE_DEVELOPMENT | How to pass parameter to BottomSheet of Jetpack Compose? | How to pass parameter to BottomSheet of Jetpack Compose?
I am trying to display a modal BottomSheet, which requires a parameter. This is how I show BottomSheet: bottomSheetState.animateTo(ModalBottomSheetValue.Expanded)
And this is my set-up:
@Composable
fun MainView() {
val navController = rememberNavController()... | https://stackoverflow.com/questions/70729578/how-to-pass-parameter-to-bottomsheet-of-jetpack-compose | android, kotlin, android-jetpack-compose, android-jetpack | 1,642,332,316 |
se_70781895 | stackoverflow | MOBILE_DEVELOPMENT | HorizontalPager content pages with different height | HorizontalPager content pages with different height
Inside a scrollable column I have a horizontal pager with two pages on it. One of them contains a very long list of content, while the other one is much shorter. On the smaller one I have a huge area at the bottom that I can scroll down on with no content, I suspect ... | https://stackoverflow.com/questions/70781895/horizontalpager-content-pages-with-different-height | android, kotlin, android-jetpack-compose | 1,642,661,733 |
se_79810220 | stackoverflow | MOBILE_DEVELOPMENT | UIKitViewController in Compose Multiplatform loses state on device rotation | UIKitViewController in Compose Multiplatform loses state on device rotation
I am building a Kotlin Multiplatform app where I want to use shared UI with Compose for both Android and iOS. However, I need some native views with their own state for certain parts of the app, so I’m trying the UIKitViewController composable... | https://stackoverflow.com/questions/79810220/uikitviewcontroller-in-compose-multiplatform-loses-state-on-device-rotation | swift, kotlin, swiftui, kotlin-multiplatform, compose-multiplatform-ios | 1,762,353,786 |
se_79658004 | stackoverflow | MOBILE_DEVELOPMENT | KSP failed with exit code: PROCESSING_ERROR while setting up Room | KSP failed with exit code: PROCESSING_ERROR while setting up Room
I am making an app in Android Studio and am currently trying to implement Room.
When I try to rebuild/ run the project it puts the following error:
Execution failed for task ':app:kspDebugKotlin'.
> A failure occurred while executing com.google.devtools... | https://stackoverflow.com/questions/79658004/ksp-failed-with-exit-code-processing-error-while-setting-up-room | android, kotlin, gradle, android-room, ksp | 1,749,400,492 |
se_79830906 | stackoverflow | MOBILE_DEVELOPMENT | Is it possible to assign a function reference when overriding a function? | Is it possible to assign a function reference when overriding a function?
I have a scenario where I am implementing an interface that requires a function:
interface I {
fun exec(s: String): Int
}
and the function that I want to use is already defined somewhere else:
fun otherExecLikeFn(s: String): Int = /* ... */
... | https://stackoverflow.com/questions/79830906/is-it-possible-to-assign-a-function-reference-when-overriding-a-function | kotlin | 1,764,172,573 |
se_79826878 | stackoverflow | MOBILE_DEVELOPMENT | Accessiblity not clicking on "Force stop" at all | Accessiblity not clicking on "Force stop" at all
I can verify that onAccessibilityEvent and onServiceConnected functions are triggered, but nothing expected happens.
Here is my AndroidManifest.XML
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmln... | https://stackoverflow.com/questions/79826878/accessiblity-not-clicking-on-force-stop-at-all | android, kotlin, android-intent, accessibilityservice | 1,763,752,418 |
se_66305553 | stackoverflow | MOBILE_DEVELOPMENT | "error: cannot find symbol" when building for Android in flutter | "error: cannot find symbol" when building for Android in flutter
I keep getting this error when trying to build for android in my flutter app. This all happened when i added firebase messaging version 7.0.3. Even after removing it i got this issue persisting.
/Users/bright/Desktop/flutter_apps/rush_user_app/... | https://stackoverflow.com/questions/66305553/error-cannot-find-symbol-when-building-for-android-in-flutter | java, android, flutter, kotlin | 1,613,931,390 |
se_65964835 | stackoverflow | MOBILE_DEVELOPMENT | JUnit parametrized test with parametrized Spring ApplicationContext configuration | JUnit parametrized test with parametrized Spring ApplicationContext configuration
SpringBoot 2.2.11, JUnit 5.
My app has several environments. I have a test that tests some conditions in those environments rather than the application itself.
Therefore I want to reuse the same test method, but run it against different ... | https://stackoverflow.com/questions/65964835/junit-parametrized-test-with-parametrized-spring-applicationcontext-configuratio | spring, kotlin, spring-test, junit-jupiter, parametrized-testing | 1,611,983,243 |
se_79824677 | stackoverflow | MOBILE_DEVELOPMENT | When I load all NodeEntity entities with depth = 2 and store one without depth an inconsistency appears. What have I misunderstood? | When I load all NodeEntity entities with depth = 2 and store one without depth an inconsistency appears. What have I misunderstood?
I defined these simple models
@NodeEntity(label = "Api")
class Api {
@Id
@Property(name = "name")
var name: String = "name"
@Suppress("unused")
@Relationship(type = "... | https://stackoverflow.com/questions/79824677/when-i-load-all-nodeentity-entities-with-depth-2-and-store-one-without-depth-a | kotlin, quarkus, neo4j-ogm | 1,763,567,882 |
se_79830488 | stackoverflow | MOBILE_DEVELOPMENT | Android Auto NavigationTemplate: routing card in top-left corner not showing | Android Auto NavigationTemplate: routing card in top-left corner not showing
I’m implementing an Android Auto navigation app using the Android for Cars App Library in Kotlin.
The app runs on Android Auto and shows the NavigationTemplate with the map, but the routing / maneuver card in the top-left corner never appears... | https://stackoverflow.com/questions/79830488/android-auto-navigationtemplate-routing-card-in-top-left-corner-not-showing | android, kotlin, android-auto | 1,764,147,548 |
se_79825388 | stackoverflow | MOBILE_DEVELOPMENT | Does combine conflate flows? | Does combine conflate flows?
When I use combine() on two flow, it's not supposed to conflate/skip values. But when I collect a combine of 2 flows in a Coroutine, some values are randomly skipped.
Link to the kotlin playground : https://pl.kotl.in/4vsf_or2t
fun main() {
val flow1 = flowOf(
"MyString"
)
... | https://stackoverflow.com/questions/79825388/does-combine-conflate-flows | kotlin, kotlin-coroutines | 1,763,634,475 |
se_79830283 | stackoverflow | MOBILE_DEVELOPMENT | Navigation sound at start sometimes missing | Navigation sound at start sometimes missing
Please check for me if the code is correct, the function call position is reasonable.
Because there is currently a problem that the navigation sound when starting Navigation is sometimes absent.
Expect: The navigation sound must always be played when starting navigation
SDK ... | https://stackoverflow.com/questions/79830283/navigation-sound-at-start-sometimes-missing | android, kotlin, google-maps | 1,764,124,837 |
se_79828186 | stackoverflow | MOBILE_DEVELOPMENT | Implement ScaleGestureDetector and Listener in Android Studio using Kotlin and SceneView | Implement ScaleGestureDetector and Listener in Android Studio using Kotlin and SceneView
I am working on a "simple" Android augmented reality application. I’m very new to Android programming, although I’ve been in software development for decades, particularly Python, and C/C++ with a little Java thrown in about ten y... | https://stackoverflow.com/questions/79828186/implement-scalegesturedetector-and-listener-in-android-studio-using-kotlin-and-s | kotlin, augmented-reality, gesture, sceneview | 1,763,945,087 |
se_53577907 | stackoverflow | MOBILE_DEVELOPMENT | When to use coroutineScope vs supervisorScope? | When to use coroutineScope vs supervisorScope?
Can someone explain what exactly is the difference between these two?
When do you use one over the other? | https://stackoverflow.com/questions/53577907/when-to-use-coroutinescope-vs-supervisorscope | kotlin, kotlin-coroutines | 1,543,731,324 |
se_69666501 | stackoverflow | MOBILE_DEVELOPMENT | List all classes in a package on Android | List all classes in a package on Android
I'm attempting to retrieve a list of classes in a given package name on Android. I have a working method which looks like this:
fun getClasses(context: Context, packageName: String): List<Class<*>> {
val dexFile = DexFile(context.applicationInfo.sourceDir)
return dexFil... | https://stackoverflow.com/questions/69666501/list-all-classes-in-a-package-on-android | android, kotlin | 1,634,838,052 |
se_62369883 | stackoverflow | MOBILE_DEVELOPMENT | Class 'AuthenticationProviderUserPassword' does not implement abstract member public abstract fun authenticate | Class 'AuthenticationProviderUserPassword' does not implement abstract member public abstract fun authenticate
I am stuck in user authentication with micronaut application
authenticate function not accepting httpRequest param
I'm getting an error
Class 'AuthenticationProviderUserPassword' is not abstract an... | https://stackoverflow.com/questions/62369883/class-authenticationprovideruserpassword-does-not-implement-abstract-member-pu | authentication, kotlin, micronaut | 1,592,121,551 |
se_79195451 | stackoverflow | MOBILE_DEVELOPMENT | How to remove the extra padding around the thumb of a Slider? | How to remove the extra padding around the thumb of a Slider?
I recently updated material libraries and as I see now there is extra horizontal space around thumb, but could not find any info about how to remove it. Has anyone found a way to solve this issue?
CompositionLocalProvider(LocalRippleConfiguration provides n... | https://stackoverflow.com/questions/79195451/how-to-remove-the-extra-padding-around-the-thumb-of-a-slider | kotlin, android-jetpack-compose, slider, material3 | 1,731,770,643 |
se_75525585 | stackoverflow | MOBILE_DEVELOPMENT | Compose preview with coil image from url | Compose preview with coil image from url
In my Android app I use Jetpack Compose for the UI.
In a screen I'm rendering an image, using a lottie file that is downloaded from a url.
The lottie image file is rendered like this:
@Composable
private fun Image(assetUrl: String) {
val composition by rememberLottieComposi... | https://stackoverflow.com/questions/75525585/compose-preview-with-coil-image-from-url | android, kotlin, android-jetpack-compose, android-jetpack, composable | 1,677,011,213 |
se_79648282 | stackoverflow | MOBILE_DEVELOPMENT | Accessing Location In Background In Android | Accessing Location In Background In Android
I am creating an application which is inspired by another app in which the application collect my location even if the application is closed I am able to achieve the similar behaviour by creating a broadcast receiver which collect my location but In my application when I col... | https://stackoverflow.com/questions/79648282/accessing-location-in-background-in-android | android, kotlin, location, android-manifest, settings | 1,748,846,433 |
se_76096418 | stackoverflow | MOBILE_DEVELOPMENT | Is it possible to get a response from the server using Chrome Custom Tabs in an application? | Is it possible to get a response from the server using Chrome Custom Tabs in an application?
I'm making a request to the server using Chrome Custom Tabs, I get a response from the server, which is displayed in Chrome Custom Tabs, is there any way to get a response from the server or what is shown in Chrome Custom Tabs... | https://stackoverflow.com/questions/76096418/is-it-possible-to-get-a-response-from-the-server-using-chrome-custom-tabs-in-an | android, kotlin, chrome-custom-tabs | 1,682,373,886 |
se_79774912 | stackoverflow | MOBILE_DEVELOPMENT | (De-)Serializing with Nested Closed Polymorphism | (De-)Serializing with Nested Closed Polymorphism
In this thread, (de-)serializing a nested polymorphic object is described for open (runtime) polymorphism. How can the same be achieved for closed (static) polymorphism? That is, how can a serializable sealed class have a sealed subclass, which in turn has subclasses? E... | https://stackoverflow.com/questions/79774912/de-serializing-with-nested-closed-polymorphism | kotlin, serialization, deserialization, kotlinx.serialization | 1,758,808,000 |
se_79828104 | stackoverflow | MOBILE_DEVELOPMENT | How to disable the “minimize” button in AndroidX CustomTabs? | How to disable the “minimize” button in AndroidX CustomTabs?
I’m using androidx.browser.customtabs with a CustomTabsIntent to open a webpage inside my Android app.
Chrome shows a minimize button (a small arrow/down icon) in the Custom Tab UI, allowing the user to collapse the tab into a page in page item.
I want to di... | https://stackoverflow.com/questions/79828104/how-to-disable-the-minimize-button-in-androidx-customtabs | java, android, kotlin, google-chrome, androidx | 1,763,930,545 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.