<KOTLIN - How can I pass a parameter from activity...
# stackoverflow
u
KOTLIN - How can I pass a parameter from activity to fragment without displaying it on the fragment I am trying to pass the value of type from activity to fragment, but keep getting null in the log. The code is as follows : Code in the activity written for passing the value to the fragment //for variable transfer to fragment val fragment=FragmentSettings() val fragmentManager : FragmentManager = supportFragmentManager val fragmentTransaction : FragmentTransaction = fragmentManager.beginTransaction() var type = snapshot.child("spinner").getValue(String::class.java).toString()...