Make changes in UI work in background (with ProgressDialog)?
<p>I am working on an app where in one of the activity different views are added into a ViewGroup, this process takes a while starting up so I wanted to run a progress Dialog in foreground while the UI could setUp in background .</p>

<p><strong>What I have Tried</strong></p>

<p>I tried using </p>

<p>1.<strong>AsyncTask</strong> but it gave Exceptions .
2. while using threads and <strong>runnable()</strong> I am getting <strong>InvocationTargetException</strong>.</p>

<p>I wanted to know what could be the best possible approach to this?</p>
