I am not able to figure out why my app crashes when getSupportFragmentManager() is called.I have used similar code in other apps to create alert dialogs without any issues.p
check which type of Fragment you have in your imports whether your'e using android.support.v4.app.Fragment or android.os.Fragment.