Error Showing Support.v7.appcompatdialogfragment Using Show() Method
I am using v7 support AppCompatDialogFragment in my app import android.support.v7.app.AppCompatDialogFragment; public class LoginDialogFragment extends AppCompatDialogFragment {
Solution 1:
You can't use the native Fragment support with AppCompatDialogFragment. In fact, if you check closer the import of AppCompatDialogFragment, you will find out that it comes from the support library. You have to use getSupportFragmentManager() instead of getFragmentManager(). Like
loginDialogFragment.show(getSupportFragmentManager(), "tag");
everything from AppCompat* is from the support library
Post a Comment for "Error Showing Support.v7.appcompatdialogfragment Using Show() Method"