After closing the program and if you start the program immediately after a second after closing, the program opens, but when I want to update the data in one of the fragments
ContentResolver resolver = getActivity().getContentResolver();
getActivity()
returns a null.
01-16 14:45:48.168 6361-6361/com.example.eldos.callreport W/System.err﹕ java.lang.NullPointerException 01-16 14:45:48.168 6361-6361/com.example.eldos.callreport W/System.err﹕ at com.example.eldos.callreport.fragments.Fragment2.computRepForRecycle(Fragment2.java:239)
What can be wrong, something is not deleted during closing or is not created during opening?