Torrada de Kotlin: NONCE-O-AS-ALTUMAIS FUNCIONS-PESO
//In Activity use:
Toast.makeText(this@YOUR_ACTIVITY_NAME, "your message", Toast.LENGTH_LONG).show()
//In Fragments use:
Toast.makeText(requireActivity(), "your message", Toast.LENGTH_LONG).show()
Your problem will be solved...
Ave Romani