Hmm, I not not well equipped to go into more details. :)

Let's see who else replies. I am very interested in this issue.

Thanks,
Kumar Bibek.

http://tech-droid.blogspot.com

On Dec 7, 11:42 pm, Al <[email protected]> wrote:
> The thing is, I'm not calling subSequence, TextView is, so I have no
> control over what range it's called with.
>
> Dexter&#39;s Brain wrote:
> > I think the problem is like this.
>
> > In the portrait orientation, if there is a spannable object, it might
> > be keeping indexes for displaying some styling.
>
> > So, say, you have bold style for chars from 4 to 39.
>
> > No when the orientation changes, this range now changes to 39 to 4.
> > And now if you are doing a substring anywhere and other such
> > operation, you will get this error.
>
> > So, I guess, if you can check the start and the end values, and always
> > make sure that the start is smaller than the end, by swapping the
> > values, you can avoid this.
>
> > I am not very sure about this issue. But you can try this.
>
> > Thanks,
> > Kumar Bibek
>
> >http://tech-droid.blogspot.com
>
> > On Dec 7, 10:08 pm, Al <[email protected]> wrote:
> > > Users of Droid/Milestone are reporting a crash in my app, which is
> > > reproducable for them. The crash happens when they use the app in
> > > landscape with the virtual keyboard. I've managed to get stack traces
> > > (http://pastebin.ca/1705719), and it shows the crash happening because
> > > TextView is calling SpannableStringBuilder#subSequence with a bad
> > > range.
>
> > > I've been unable to reproduce the problem on a 2.0(.1) emulator (I
> > > don't have a droid device), but they can reproduce it every time. I
> > > wrote a small dummy app (apk:http://min.ie/2tF, src:http://min.ie/2tG)
> > > to see if it happens again, and it did, with the same stack trace.
>
> > > Any ideas on how to work around this?
>
>

-- 
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