@Override protected void onDestroy() { if (mIsCompleteInit) { if (mThumbView != null) { mThumbView.thumbClose(); mThumbView = null; } if (mReaderView != null) { mReaderView.PDFClose(); } if (mDoc != null) { if (mDoc.IsOpened()) { mDoc.Close(); } } } Global.RemoveTmp(); super.onDestroy(); }