January 2018
Intermediate to advanced
434 pages
14h 1m
English
Let's take look at the given steps to understand how to read data from the database:
class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) MainActivityUI().setContentView(this) val btn_send = find<Button>(R.id.btn_send) btn_send.onClick { database.use { insert("Requests", "name" to name.text.toString(), "message" to message.text.toString()) } toast("success") name.text.clear() message.text.clear() } val btn_read ...
Read now
Unlock full access