Ok. , .
, , / / . , , . :
public static Activity goUp(Activity current){
if(current.getParent()!=null){
current=current.getParent();
goUp(current);
}
return current;
}
ProgressDialog progressDialog = ProgressDialog.show(goUp(MyActivity.this), "Loading...", "Please wait...");