getParentFragment returning null
getParentFragment() was introduced in API level 17 (Android 4.2). Android 4.2 introduced the idea of nested fragments (fragments containing other fragments). Calling this results in null if the fragment has a parent which is an Activity. Have a look at this. If you are using support library then you can use getParent(), may be you … Read more