Tab Host上的StackOverflow异常

时间:2014-01-08 09:34:10

标签: android android-tabhost android-style-tabhost

我正在使用此代码打开新活动

View view = getLocalActivityManager().startActivity("main_jobs", 
                    new Intent(context,Job_Description.class)
                    .putExtra("line", str_line).putExtra("limit",str_limit)
                    .putExtra("limit",""+0)
                    .putExtra("Alert", false)
                    .putExtra("str_location", str_loc)
                    .putExtra("str_Descrption",str_descjob)
                    .addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP))
                    .getDecorView();
                                          setContentView(view);

但是,当我打开许多子Activity,然后运行时堆栈Ower流异常发生

01-08 14:53:13.091: E/AndroidRuntime(4577): FATAL EXCEPTION: main
01-08 14:53:13.091: E/AndroidRuntime(4577): java.lang.StackOverflowError
01-08 14:53:13.091: E/AndroidRuntime(4577):     at    android.view.View.getDrawableState(View.java:14034)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.widget.TextView.onDraw(TextView.java:4825)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.View.draw(View.java:13458)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.View.draw(View.java:13342)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.ViewGroup.drawChild(ViewGroup.java:2929)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.View.draw(View.java:13461)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.View.draw(View.java:13342)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.ViewGroup.drawChild(ViewGroup.java:2929)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.View.draw(View.java:13461)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.View.draw(View.java:13342)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.ViewGroup.drawChild(ViewGroup.java:2929)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.View.draw(View.java:13340)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.ViewGroup.drawChild(ViewGroup.java:2929)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.View.draw(View.java:13340)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.ViewGroup.drawChild(ViewGroup.java:2929)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.View.draw(View.java:13340)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.ViewGroup.drawChild(ViewGroup.java:2929)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.View.draw(View.java:13340)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.ViewGroup.drawChild(ViewGroup.java:2929)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.View.draw(View.java:13340)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.ViewGroup.drawChild(ViewGroup.java:2929)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at  android.view.View.draw(View.java:13340)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.ViewGroup.drawChild(ViewGroup.java:2929)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.View.draw(View.java:13340)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.ViewGroup.drawChild(ViewGroup.java:2929)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.View.draw(View.java:13340)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.ViewGroup.drawChild(ViewGroup.java:2929)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.View.draw(View.java:13340)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.ViewGroup.drawChild(ViewGroup.java:2929)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.View.draw(View.java:13340)
 01-08 14:53:13.091: E/AndroidRuntime(4577):    at android.view.ViewGroup.drawChild(ViewGroup.java:2929)
 01-08 14:53:13.091: E/AndroidRuntime(4577):    at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799)
 01-08 14:53:13.091: E/AndroidRuntime(4577):    at android.view.View.draw(View.java:13340)
 01-08 14:53:13.091: E/AndroidRuntime(4577):    at android.view.ViewGroup.drawChild(ViewGroup.java:2929)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.View.draw(View.java:13340)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.ViewGroup.drawChild(ViewGroup.java:2929)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.View.draw(View.java:13340)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.ViewGroup.drawChild(ViewGroup.java:2929)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.View.draw(View.java:13340)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.ViewGroup.drawChild(ViewGroup.java:2929)
 01-08 14:53:13.091: E/AndroidRuntime(4577):    at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799)
 01-08 14:53:13.091: E/AndroidRuntime(4577):    at android.view.View.draw(View.java:13340)
 01-08 14:53:13.091: E/AndroidRuntime(4577):    at android.view.ViewGroup.drawChild(ViewGroup.java:2929)
 01-08 14:53:13.091: E/AndroidRuntime(4577):    at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799)
 01-08 14:53:13.091: E/AndroidRuntime(4577):    at android.view.View.draw(View.java:13340)
 01-08 14:53:13.091: E/AndroidRuntime(4577):    at android.view.ViewGroup.drawChild(ViewGroup.java:2929)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.View.draw(View.java:13340)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.ViewGroup.drawChild(ViewGroup.java:2929)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.View.draw(View.java:13340)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.ViewGroup.drawChild(ViewGroup.java:2929)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.View.draw(View.java:13340)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.ViewGroup.drawChild(ViewGroup.java:2929)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.View.draw(View.java:13340)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.ViewGroup.drawChild(ViewGroup.java:2929)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2799)
01-08 14:53:13.091: E/AndroidRuntime(4577):     at android.view

我是Android的新手。然后我对这个错误一无所知。

请帮助我如何修复此错误

提前致谢。

0 个答案:

没有答案