What do you want to save?
Add Code snippet
New code examples in category Kotlin
-
A-312 2022-01-27 06:23:02
2d array in kotlin
val array = Array(row) { IntArray(column) } Add solution -
Awgiedawgie 2022-01-23 09:50:44
kotlin arrow function
//when expressions where it separates "matching/condition" part from "result/execution" block val greet = when(args[0]) { "Apple", "Orange" -> "fruit" is Number -> "How many?" else... Add solution -
Phoenix Logan 2022-01-23 09:50:20
how to limit decimal in double kotlin
val number:Double = 0.0449999 val number3digits:Double = String.format("%.3f", number).toDouble() val number2digits:Double = String.format("%.2f", number3digits).toDouble() val solution:Double = String.format("%.1f", number2d... Add solution -
Phoenix Logan 2022-01-23 06:46:47
android send email intent with chooser
class MailToExample{ private val url = "https://your_site_addres.xyz" @SuppressLint("SetJavaScriptEnabled") override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.... Add solution -
Phoenix Logan 2022-01-22 23:05:42
jetpack compose get context
val context = LocalContext.current Add solution
Best helpers
Ranking is empty