Hi, Can you please tell me, how to do in a fragment.
Environment appEnvironment = ((Application) getApplication()).getEnvironment();
I am getting type casting issue when doing like below
Environment appEnvironment = ((Application) getActivity().getApplication()).getEnvironment();
Hi, Can you please tell me, how to do in a fragment. Environment appEnvironment = ((Application) getApplication()).getEnvironment(); I am getting type casting issue when doing like below Environment appEnvironment = ((Application) getActivity().getApplication()).getEnvironment();