java - android event after landscape calculation -


i enabled onconfigchanges event , handling when device turns portrait lanscape. however, after onconfigchanges, when page calculated again , finishes it, event fired? thank you

it says in documentation "some device configurations can change during runtime (such screen orientation, keyboard availability, , language). when such change occurs, android restarts running activity (ondestroy() called, followed oncreate()). restart behavior designed application adapt new configurations automatically reloading application alternative resources match new device configuration." [emphasis mine]

however, if handle changes method gets called onconfigurationchanged(). changes wish make must in method, none of onx methods called. handling config changes you've told not destroy , reload app - thus, page doesn't calculated again. things happen define in onconfigurationchanged() method.

"now, when 1 of these configurations change, myactivity not restart. instead, myactivity receives call onconfigurationchanged()."

source: http://developer.android.com/guide/topics/resources/runtime-changes.html


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -