I am changing my android mobile app to support both tablets and mobile phone. For this I am changing my activity class into fragment. In my activity class I have an instance
Use appCtx = (UnityMobileApp) getActivity().getApplication(); in your fragment.
appCtx = (UnityMobileApp) getActivity().getApplication();