khushvindersharma / kpblogs

2 stars 3 forks source link

Issue: using this fragment. #2

Open akshaykumar0291 opened 6 years ago

akshaykumar0291 commented 6 years ago

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();

akshaykumar0291 commented 6 years ago

Thankx, got the solution. Please mention in your blog that need to define the .Application in manifest file.