Nick
10/05/2025, 1:45 PMTower Guidev2
10/06/2025, 10:00 AMNurlibay
10/07/2025, 8:31 AMprivate fun applyAppLocale(languageCode: String) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
// Android 13+: Use LocaleManager for per-app persistence
val localeManager = context.getSystemService(LocaleManager::class.java)
localeManager.applicationLocales = LocaleList.forLanguageTags(languageCode)
} else {
// Pre-Android 13: Use AppCompatDelegate
val locales = LocaleListCompat.forLanguageTags(languageCode)
AppCompatDelegate.setApplicationLocales(locales)
}
// Immediate update for resources (affects View-based UI)
val config = Configuration(context.resources.configuration)
config.setLocale(Locale(languageCode))
@Suppress("DEPRECATION")
context.resources.updateConfiguration(config, context.resources.displayMetrics)
}Dan Rusu
10/10/2025, 4:24 PMigor.wojda
10/13/2025, 10:52 AMzimjon
10/18/2025, 12:43 PMJhsagiv
10/19/2025, 8:31 PMArchit69 Appdeveloper
10/21/2025, 2:02 PMKarlMcCree
10/22/2025, 10:32 AMPablo
10/22/2025, 2:29 PMappCategory="game" in manifest and the activity forced to "landscape", the OS rotates the screen, displaying the game in portrait but simulating a fake landscape mode, with two black spaces on top and bottom of the game screen. But the main issue is that is destroying and recreating my activity. That breaks completly the game. How is supposed we should sholve this? Some games are old games developed a lot of years ago, even in java, and are not prepared to survive activity recreation. Supposedly appCategory="game" should help us keeping our games alive in Android 16, but that onDestroy and onCreate doesn't help.Georg Prohaska
10/24/2025, 10:41 AMagp = "8.13.0"
kotlin = "2.2.20"
[plugins]
androidApplication = { id = "com.android.application", version.ref = "agp" }
kotlinMultiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
plugins {
alias(libs.plugins.kotlinMultiplatform)
alias(libs.plugins.androidApplication)
...
}
kotlin {
sourceSets.all {
languageSettings {
optIn("kotlin.uuid.ExperimentalUuidApi")
}
}
androidTarget {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_21)
}
}
...
}
And in the settings it looks like this:Sudarshan
11/03/2025, 4:25 AMremoveFirst() and removeLast() extension functions. Can anyone help me understand why they are problematic? If you'd like, you can directly reply to the author on his post on X.Luka Štorek
11/03/2025, 7:52 AMVlad Ghilicica
11/03/2025, 4:02 PMMarc Ivan Lim
11/10/2025, 6:09 AMmalik bilal
11/14/2025, 10:58 AM-keep rules for my @Entity models, DAO interfaces, and sometimes even fields.
My concern is:
If I keep these classes, their names and structure are no longer obfuscated in release builds. Doesn’t this expose the database schema to reverse-engineering? How do people handle this securely?
Any guidance or best practices would be really helpful!Gautam Shorewala
11/18/2025, 6:58 AMIrsath Kareem
11/21/2025, 4:26 AMiex
11/21/2025, 7:13 AMEkaterina Volodko [JB]
11/24/2025, 2:19 PMSlackbot
11/27/2025, 11:05 AMDhanur
12/02/2025, 4:34 PMPushkar
12/02/2025, 8:56 PMreactormonk
12/03/2025, 1:58 PMcompileOnly(files("../hidden-apis/android-30-custom/android.jar")), but that doesn't seem to be pulling it in correctly. I've got some code which compiles fine with kotlin 2.0, but not anymore with 2.2. They always showed up as missing references in the IDE, but gradle was fine with them.Kathrin Petrova
12/03/2025, 4:00 PMSlackbot
12/07/2025, 5:12 PMEslam Hussein
12/08/2025, 12:48 PMPagingSource?Slackbot
12/11/2025, 11:58 AMDev Anand
12/12/2025, 6:27 AMM.WAQAS
12/16/2025, 6:35 AM