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?
Here is the solution I found while trying to get something similar to work.
view.findViewById(R.id.button_second).setOnClickListener { val i = Intent(activity, ClassNameOfActivityIWantToGoTo::class.java) activity?.startActivity(i) }