On clicking the date button I get an error and date picker is not launched


App crushes when i click the date button its points error to a line in DatePickerFragment that goes
View v = LayoutInflater.from (getActivity ()).inflate (R.layout.dialog_date,null);
I have tried passing the layout id directly in setView and commenting that line out date picker works but main problem is book builds on the fommer in the next part (passing date between pick and crimefragment(


Getting similar groupme error here too. Dont know why is this happening but its letgo quiet annoying. HELP.