Today, the project found an interesting error bug, special to record, initially defined as the problem of view loading,
The error message is first touched:
Java.lang.RuntimeException:Unable to start Activity componentinfo
Java.lang.RuntimeException:Unable to start Activity componentinfo
Java.lang.RuntimeException:Unable to start Activity componentinfo
android.view.windowmanager$badtokenexception:unable to add window-token [email protected] was not valid; Is your activity running?
At Android.widget.tabhost$intentcontentstrategy.getcontentview (tabhost.java:768)
Andrdoid with the Tabbar of the iphone is tabhost+activitygroup to solve, inside the form of view stack load activity, in the Activity with Alertdialog dialog box is, report exception: android.view.windowmanager$badtokenexception:unable to add window – Token [email protected] is not valid, is your AC Tivity running?
Change the context:xxxActivity.this inside the Alertdialog to: "Xxxactivity.this. GetParent () "It's done!"
This article is from the "9255036" blog, please be sure to keep this source http://9265036.blog.51cto.com/9255036/1619009
Android daily Knowledge Collection and summary