I have problems with my app on Asus Transformer TF101, with keyboard. If i dock it to keyboard (or undock it) during displaying a activity, the activity is recreated. That means: onDestroy is called. onCreate is called. Is it possible to catch the event that user is undocking or docking? I would like to show a warning message, save the data and finish the activity.. Problem background: In my case, it changes the data in edittext fields, then user undocks or docks. I have created a tablelayout with edittexts fields, like editable datagrid. On Asus it messes up, then undocking, the system recreates the activity and all data in datagrid is rewritten automagically. All rows become like the last row. I assume that system does the redraw by ID's, but i have inflated the rows into datagrid, so the edit fields in rows have same ID's.
Cisco Certified Network Associate Exam,640-802 CCNA All Answers ~100/100. Daily update