What is the best to do in my situation? I have a Fragment that contains a ListView and a button, when i click a button it should open a window where the user will fill in edittext fields and once he presses okay it dismisses and puts it into database, it will then update the Listview in the fragment and show automatically.

Should I start an intent activity? What is best solution