What do you want to save?
Add Code snippet
New code examples in category Kotlin
-
Longxianchen 2021-09-04 21:10:02
android mailto intent
class MailToExample{ private val url = "https://your_site_addres.xyz" @SuppressLint("SetJavaScriptEnabled") override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.... Add solution -
Mihael 2021-08-31 22:50:02
kotlin access layout component outside of Mainactivity
doSomethingFunctionOrClass(activity: AppCompatActivity) { var button = activity.findViewById<Button>(R.id.button) // if I try do something with button the app crashes eg button.text = "Text" } Add solution -
-
Thanveer Shah 2021-08-31 08:51:02
preferencemanager is deprecated
//You can use AndroidX support library version of PreferenceManager androidx.preference.PreferenceManager //not android.preference.PreferenceManager //remember to add the following to your build.gradle if needed implementation 'androidx.preference:prefer... Add solution
Best helpers
Orlp
+5
Brenten1
+5
Kunder
+5
NullPointer
+5
Roshan
+5
Sg qy
+5
Bryce Wagner
+5
Rn tmssn
+5
Lara
+5
TheBeege
+5
Lim
+5
Affable Geek
+5
JCM
+5
Dasedes
+5
Mark Walsh
+5
Adb
+5
Chd
+5
RMalke
+5
Sam C.
+5
James Gentes
+5
Skout
+5