Saturday, 31 August 2013

how can I retain text-selcted status when screen rotation in android

how can I retain text-selcted status when screen rotation in android

How can I retain text-selected find status when screen rotation in android
In my Application, I use Webview to show the website, then I long press
the website content, the "select"@,"copy"@,"share"@,"find" menu show,
then I click the "find" item@the select word can be saw in find text
editor. But when I rotate the screen, all the menu and find text editor is
destroyed, return to the initial status when I open the website at
beginning. My question is after screen rotation ,what can I do to retain
the find status?
PS: I know when the screen rotating, the Activity is destroyed and
recreated, so the status before rotating lost. But I do not know what
object should I save in onSaveIntance() method. Also I do not want to use
the android:configChanges in AndroidManifest.xml file.

No comments:

Post a Comment