title: How to delete progressBar in android?
body: <p>I already know  <code>progressBar.setVisibility(View.GONE)</code> can hide the progress bar. </p>
  
  <p>But is it same as the <code>ProgressDialog.dismiss()</code>?</p>
  
  <p>I can only use progressBar due to <a href="https://stackoverflow.com/questions/35573639/asynctask-block-unityui-thread-issue">AsyncTask block Unity(UI) thread issue</a>.</p>
  
  <p>What I want to achieve is to delete it permanently not just hide it for some time. </p>