I implement a TabActivity exactly like this -
http://blog.henriklarsentoft.com/2010/07/android-tabactivity-nested-activities/
Now the problem is, I have some Spinner in an activity. When i click to expand the Spinner - the following exception occur -
android.view.WindowManager$BadTokenException: Unable to add window -- token android.app.LocalActivityManager$LocalActivityRecord@43b957c0 is not valid; is your activity running?
Anybody have solution?
The error might be due to the context of your adapter, try giving getParent() as the context of the adapter instead of this.
this link will help you.