I found the reason of this issue. I added my FragmentActivities to ActivityGroup and then used them in the TabHost. When I clicked the button which called ProgressDialog I got this exception. I should create it like this
progressDialog = new ProgressDialog(getActivity().getParent());
, not
progressDialog = new ProgressDialog(getActivity());