java - Retaining the data in the view during activity switch? -
in android app user can enter text in editview , click on button takes him other activity can select contact ... , press button brings him first activity... now problem need pass selected contact first activity , display (which have done using bundle) unable retain entered text in editview... should (but text should retained out passing through the bundle , getting back) thanks :) the text in view component automagically saved os, after soft kill (user changed phone orientation), not after hard kill, user hit button while parent activity in focus. so, unless doing non-standard, such calling onsaveinstancestate without calling super.onsaveinstancestate, data in view state should persist. one solution save text in view component non view instance property before launch child activity, , read value when focus returns parent activity in method onactivityresult. jal edit: android docs activity page has been extensively updated. view state not saved if widget not hav...