About 1,540,000 results
Open links in new tab
  1. kotlin - Opening Android Settings programmatically - Stack Overflow

    Jun 25, 2020 · Now you can use Intent intent = new Intent (android.provider.Settings.ACTION_SECURITY_SETTINGS); startActivity (intent); There are whole bunch of constants for every main settings category that you can choose from. Just write Settings. and Android Studio will show you all categories in autocomplete.

  2. android - Where to declare variables and functions used in all ...

    Nov 26, 2020 · I'm developping my first Android app in Kotlin with several activities. Some of the functions and variables should be accessible from all the activities. I've defined a data class Event and created an instance eventarray:

  3. Android – Implement Preference Setting Screen with Kotlin

    Apr 21, 2025 · For creating this settings screen android provides a feature to make a settings preferences screen. In this article, we will take a look at implementing the preferences setting screen in Android using Kotlin.

  4. How do I retrieve the preferences from my settings activity in Kotlin?

    Mar 14, 2020 · I created a (functional) settings activity with multiple EditTextPreferences and a ListPreference. Right now I want to retrieve the selected item from the ListPreference in another activity. This is my ListPreference:

  5. Modernizing Application Settings in Kotlin Multiplatform with …

    May 27, 2024 · Its compatibility with Kotlin Multiplatform ensures you can manage settings consistently across different platforms. With DataStore’s migration support, transitioning from SharedPreferences can be done smoothly*, preserving existing data and minimizing user impact.

  6. Kotlin on Android: Managing Preferences and Settings

    Jul 18, 2018 · In this course, you’ll learn how to leverage SharedPreferences and the Preferences framework to build excellent settings screens that conform to Androids design guidelines. At the core of modern mobile applications is a thorough understanding of SharedPreferences and Settings Screens.

  7. This Android application developed in Kotlin is a simple ... - GitHub

    This Android application developed in Kotlin is a simple demonstration of how to implement a user interface that includes buttons to interact with settings and data persistence. Users can customize certain aspects of the application and see how this data is stored and retrieved in the application.

  8. Build a Settings Screen via Code - Kotlin and Android …

    Build a Settings Screen via Code. I mentioned that a code-built Settings screen was possible back in Add the Preferences Resource File , and this feels like a perfect time to create one. Before we do anything, though, we need to get the Preferences dependency in here:

  9. How to add an Element to Set in Kotlin? - Tutorial Kart

    To add an element to a Set in Kotlin, call add () function on this Mutable Set and pass the element to add to add () function. add () function is available for MutableSet, but not for Set. MutableSet.add () function adds the given element to this Set and returns a boolean value.

  10. Creating Reusable Utilities with Extension Functions in Kotlin

    Dec 5, 2024 · This article will guide you through creating reusable utilities using extension functions in Kotlin and illustrate their applications with practical code examples. Extension functions allow you to add methods to existing classes in Kotlin, offering a clean and readable way to incorporate additional functionality.

  11. Some results have been removed
Refresh