Easiest way to implement visual-feedback/busy-indicator in android
<p>I am creating an app <code>MainActivity</code> that can calculate a report from its database to be shown in <code>ReportActivity</code>. All report calculation is done in <code>ReportActivity.onCreate()</code>.</p>

<p>When the user click on MainActivity-s menu "generate report" the menü remains open for 2 secs until  <code>ReportActivity.onCreate()</code> has finished and the report becomes visible.</p>

<p>What is the easiest way to give the user some visual feedback?</p>

<p>I already found <a href="http://stackoverflow.com/questions/3122465/progressdialog-oncreate">ProgressDialog onCreate</a> that shows a progressdialog while doing all calculation in an AsyncTask.</p>

<p>I wonder if there is some easier way to give the user some visual feedbak that the menue was successfully clicked and that the device has not crashed.</p>

<p>in ms windows i would use a waitcursor (hour-glass)</p>

<p>I already tried to open a ProgressDialog() in oncreate of the ReportActivity</p>

<pre><code>    final ProgressDialog progressDialog = ProgressDialog.show(this, "MY Dialog", "Please wait...");
</code></pre>

<p>but it is not shown at all.</p>

<p><strong>Update</strong> final solution:</p>

<p>As the answerss suggested I implemented an AsyncTask for the processing following <a href="http://stackoverflow.com/questions/3028306/download-a-file-with-android-and-showing-the-progress-in-a-progressdialog/3028660">this tutorial</a> 
based on <a href="http://www.codeofaninja.com/2011/10/android-download-file-with-progress-bar.html" rel="nofollow">this codesample</a></p>
