Problem solved. It was because the view hierarchy was too deep.

On Tue, May 5, 2009 at 11:45 AM, Android Users <[email protected]>wrote:

> Hi,
>
> I have an application that has 2 AutoComplete TextViews on a single screen.
> I have just upgraded the application from 1.0 to 1.5 and I am facing 2
> issues here:
> 1. I get soft keypad for only one of the text view. Wat could be the
> problem with the other one?
> 2. For the text view that i get soft keypad,on entering data into the text
> view using soft key pad, i get the below exception
>
> *05-05 11:01:17.465: ERROR/AndroidRuntime(274): Uncaught handler: thread
> main exiting due to uncaught exception
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274): java.lang.StackOverflowError
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> android.text.SpannableStringBuilder.getSpans(SpannableStringBuilder.java:783)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> android.text.Styled.each(Styled.java:43)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> android.text.Styled.foreach(Styled.java:249)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> android.text.Styled.drawText(Styled.java:302)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> android.text.Layout.drawText(Layout.java:1346)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> android.text.Layout.draw(Layout.java:339)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> android.widget.TextView.onDraw(TextView.java:3924)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> android.view.View.draw(View.java:5838)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> android.view.ViewGroup.drawChild(ViewGroup.java:1536)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> android.view.ViewGroup.drawChild(ViewGroup.java:1534)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> android.view.ViewGroup.drawChild(ViewGroup.java:1534)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> android.view.View.draw(View.java:5841)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> android.view.ViewGroup.drawChild(ViewGroup.java:1536)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> android.view.View.draw(View.java:5841)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> android.widget.FrameLayout.draw(FrameLayout.java:352)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> android.view.ViewGroup.drawChild(ViewGroup.java:1536)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> android.view.ViewGroup.drawChild(ViewGroup.java:1534)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> android.view.View.draw(View.java:5841)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> android.widget.FrameLayout.draw(FrameLayout.java:352)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> android.view.ViewGroup.drawChild(ViewGroup.java:1536)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> android.view.ViewGroup.drawChild(ViewGroup.java:1534)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> android.view.ViewGroup.drawChild(ViewGroup.java:1534)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> android.view.ViewGroup.drawChild(ViewGroup.java:1534)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> android.view.ViewGroup.drawChild(ViewGroup.java:1534)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> android.view.View.draw(View.java:5841)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> android.widget.FrameLayout.draw(FrameLayout.java:352)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> android.view.ViewGroup.drawChild(ViewGroup.java:1536)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> android.view.ViewGroup.drawChild(ViewGroup.java:1534)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> android.view.ViewGroup.dispatchDraw(ViewGroup.java:1278)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> android.view.View.draw(View.java:5841)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> android.widget.FrameLayout.draw(FrameLayout.java:352)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:1898)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> android.view.ViewRoot.draw(ViewRoot.java:1217)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> android.view.ViewRoot.performTraversals(ViewRoot.java:1030)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> android.view.ViewRoot.handleMessage(ViewRoot.java:1482)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> android.os.Handler.dispatchMessage(Handler.java:99)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> android.os.Looper.loop(Looper.java:123)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> android.app.ActivityThread.main(ActivityThread.java:3948)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> java.lang.reflect.Method.invokeNative(Native Method)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> java.lang.reflect.Method.invoke(Method.java:521)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
> 05-05 11:01:17.645: ERROR/AndroidRuntime(274):     at
> dalvik.system.NativeStart.main(Native Method)
>
>
> *Thanks in advance.
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to