Hi,

I've started seeing a lot of weird crashes from users' phones
regarding an IndexOutOfBoundsException around loading String
resources.  One example is reproduced below.  This began with Android
1.5, build 147201.

Any ideas what is going on?

Thanks,
Carter


java.lang.IndexOutOfBoundsException: setSpan (10 ... 16) ends beyond
length 13
        at android.text.SpannableStringInternal.checkRange
(SpannableStringInternal.java:349)
        at android.text.SpannableStringInternal.setSpan
(SpannableStringInternal.java:77)
        at android.text.SpannableString.setSpan(SpannableString.java:46)
        at android.content.res.StringBlock.applyStyles(StringBlock.java:151)
        at android.content.res.StringBlock.get(StringBlock.java:106)
        at android.content.res.AssetManager.getResourceText(AssetManager.java:
142)
        at android.content.res.Resources.getText(Resources.java:151)
        at android.content.Context.getText(Context.java:138)
        at edu.mit.locale.ui.activities.Locale$6.onMenuItemClick(Locale.java:
336)
        at com.android.internal.view.menu.MenuItemImpl.invoke
(MenuItemImpl.java:133)
        at com.android.internal.view.menu.MenuBuilder.performItemAction
(MenuBuilder.java:813)
        at com.android.internal.view.menu.IconMenuView.invokeItem
(IconMenuView.java:519)
        at com.android.internal.view.menu.IconMenuItemView.performClick
(IconMenuItemView.java:122)
        at android.view.View.onTouchEvent(View.java:3828)
        at android.widget.TextView.onTouchEvent(TextView.java:6291)
        at android.view.View.dispatchTouchEvent(View.java:3368)
        at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863)
        at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:863)
        at com.android.internal.policy.impl.PhoneWindow
$DecorView.dispatchTouchEvent(PhoneWindow.java:1691)
        at android.view.ViewRoot.handleMessage(ViewRoot.java:1525)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:123)
        at android.app.ActivityThread.main(ActivityThread.java:3948)
        at java.lang.reflect.Method.invokeNative(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:521)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:782)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
        at dalvik.system.NativeStart.main(Native Method)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to