Trying To Add Window Crashing The Application
<p>I am making an application.In application i am having tabs on bottom. First tab showing two button. ON click of button i want to open barcode scanner. And one more thing First time i was not creating ActivityGroups It was running fine for me. But after creating ActivityGroup class on click of buton application is crashing and giving me following error.</p>

<pre><code>   ERROR/AndroidRuntime(1774): android.view.WindowManager$BadTokenException: Unable  to   add window -- token android.app.LocalActivityManager$LocalActivityRecord@44f557d8 is  not valid; is your activity running?
</code></pre>
