java.lang.IndexOutOfBoundsException: getChars (7 … 0) has end before start

后端 未结 5 2216
梦毁少年i
梦毁少年i 2020-12-19 20:36

My users are sending unhandled exceptions to me via http://code.google.com/p/android-remote-stacktrace/

I am getting the following but have no idea what it means.

5条回答
  •  鱼传尺愫
    2020-12-19 20:47

    if android couldnt set the selection you do that using cursor position... i resolved the issue by putting this exactly before the crashing line

    editor.setSelection(editor.getText().length(), editor.getText().length());
    

提交回复
热议问题