How can I open a new Activity inside of a fragment when using a button?
I tried this
override fun onViewCreated(view: View, savedInstanceState: Bundle?
I believe it would be something like
activity?.let { callingActivity -> startActivity(Intent(callingActivity, Main::class.java)) }
You must use the calling activities context
context