0

Help with Kotlin

Hello, so I made this app is really basic It is about converting k/h to M/s and M/S to K/h My question is what do I have wrong, it says unfortunately your app stop working THis is the main activity https://code.sololearn.com/WUngHn2WqcwJ/?ref=app https://code.sololearn.com/cQzFY8BjHpIV/?ref=app

1st Sep 2020, 7:54 PM
Katherine Grisales Zuluaga
Katherine Grisales Zuluaga - avatar
2 Respostas
+ 1
Thread.sleep(1000) is affecting your code b/c every code must go after super.onCreate(savedInstanceState) setContentView(R.layout.activity_main)
16th Sep 2020, 6:12 AM
Ananiya Jemberu
Ananiya Jemberu - avatar
0
Does it stops working if u change orientation or on some specific input... Well this may be happening because of some error in code which emulator couldn't solve... See terminal while running you app
3rd Sep 2020, 7:26 AM
Nihar Buliya
Nihar Buliya - avatar