How to show a process in android
<p>My problem is that, i have a function sync() in my class MyDB which extends SQLiteDatabase
on a click of a button, i call this function 
as</p>

<pre><code>    db.open();
    db.sync();
    db.close();
</code></pre>

<p>its working fine, but it takes some time and while that time the activity stucks.
I need to show a working process on a dialogue instead of this stucking. I need not to show the 'progress' of this syncing, I am concerned only that when activity stucks, there must be a process in the form of rotating circle or something like that. How can i do that ?</p>
