Я начал использовать ACRA для своих проектов Android, но в документе есть повторяющаяся ошибка, которую я не могу воспроизвести или найти, откуда она берется, это stackTrace:
java.lang.IndexOutOfBoundsException: charAt: -2 < 0
at android.text.SpannableStringBuilder.charAt(SpannableStringBuilder.java:110)
at android.text.TextUtils.getCapsMode(TextUtils.java:1573)
at android.view.inputmethod.BaseInputConnection.getCursorCapsMode(BaseInputConnection.java:273)
at android.widget.TextView.onCreateInputConnection(TextView.java:4492)
at android.view.inputmethod.InputMethodManager.startInputInner(InputMethodManager.java:942)
at android.view.inputmethod.InputMethodManager.checkFocus(InputMethodManager.java:1114)
at android.view.inputmethod.InputMethodManager.isActive(InputMethodManager.java:539)
at android.widget.TextView.onDraw(TextView.java:4020)
at android.view.View.draw(View.java:6535)
at android.view.ViewGroup.drawChild(ViewGroup.java:1531)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258)
at android.view.ViewGroup.drawChild(ViewGroup.java:1529)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258)
at android.view.View.draw(View.java:6538)
at android.view.ViewGroup.drawChild(ViewGroup.java:1531)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258)
at android.view.View.draw(View.java:6641)
at android.widget.FrameLayout.draw(FrameLayout.java:352)
at android.view.ViewGroup.drawChild(ViewGroup.java:1531)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258)
at android.view.View.draw(View.java:6538)
at android.view.ViewGroup.drawChild(ViewGroup.java:1531)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258)
at android.view.View.draw(View.java:6538)
at android.widget.FrameLayout.draw(FrameLayout.java:352)
at android.view.ViewGroup.drawChild(ViewGroup.java:1531)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1258)
at android.view.View.draw(View.java:6538)
at android.widget.FrameLayout.draw(FrameLayout.java:352)
at com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:1830)
at android.view.ViewRoot.draw(ViewRoot.java:1349)
at android.view.ViewRoot.performTraversals(ViewRoot.java:1114)
at android.view.ViewRoot.handleMessage(ViewRoot.java:1633)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:4363)
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:868)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
at dalvik.system.NativeStart.main(Native Method)
Любые идеи, которые вызываюттот?Я даже не знаю, что Активность создавало это.У меня 33 сообщения об ошибках, и, вероятно, половина из них.
Правка: макеты
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical"
android:layout_height="fill_parent" android:layout_width="fill_parent"
style="@style/background">
...
<include android:id="@+id/notifications" android:layout_width="fill_parent" android:layout_height="wrap_content" layout="@layout/notifications"/>
</FrameLayout>
и макет уведомлений:
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:id="@+id/frameLayout" android:layout_gravity="bottom">
<SlidingDrawer android:id="@+id/slideNotifications" android:orientation="vertical"
android:handle="@+id/handle" android:content="@+id/content"
android:layout_height="wrap_content" android:layout_width="fill_parent">
<RelativeLayout android:id="@id/handle"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:background="@drawable/slide_handler">
...
</RelativeLayout>
<LinearLayout android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@id/content"
android:orientation="vertical"
android:background="@color/bgWeb">
...
</LinearLayout>
</SlidingDrawer>
</FrameLayout>