sachi
sachi

Reputation: 479

Getting Saved cursor position 2/2 out of range for (restored) text error in android?

Can any body help me what is the problem i am facing. My application works fine, But some time it will show FORCE CLOSE exception.

I find error in logcat as.

10-14 11:01:50.484: ERROR/TextView(987): Saved cursor position 2/2 out of range for (restored) text

Upvotes: 3

Views: 1925

Answers (2)

null
null

Reputation: 9114

I also met same problem. The only solution I know is you have to specify android:configChanges="orientation" inside the <activity> in your application's AndroidManifest.xml.

Reference: Changing orientation clears the TimePicker

Upvotes: 0

Hal
Hal

Reputation: 21

This message is actually generate by code in the TextView class method onRestoreInstanceState(). Somewhere in your code you are saving the state of a TextView then restoring it. Look for some TextView, or an instance of something derived from TextView. That is where you are getting this message.

Upvotes: 2

Related Questions