synchronize method with progress dialog
<p>I have loadData() which used to load my Neuroph network.</p>

<p>I want to run it with a progress dialog but if part of loadData() execute i increase my progress dialog.</p>

<p>I need tutorial for it.</p>

<p>I know Thread with Handler, AsyncTask. but cannot do that with these two methods.</p>
