I want to open a dialog fragment from A fragment, and pass data to A fragment when the dialog fragment ends. To do this, I defined an interface in the dialog fragment and implemented it in the A fragment. The result was that the listener was null. This is because onAttach() used context and context meant activity. The activity did
Tag: android-dialogfragment
Start DialogFragment from Activity
I’m learning Android programming with IntelliJ right now and got a little problem. I’ve got an Activity which looks like this: And this is how my DialogFragment looks like I’ve tried nearly everything, creating a new instance and start the method, using FragmentManager, which i wasn’t able to use. What should I do? Answer for approved namings use About instead