Android Code Snippet Prevent reload Activity_Create on orienration

Hi to all
if we load resource from server into scrollview and show it,and when
device rotate (landscape or portrait),again activity_create start and load resource
but i do not want reload resource again
if you enter below code in manifest and replace "main" with your activity,finally activity_create once start

SetActivityAttribute(main,android:configChanges,"keyboardHidden|orientation|screenSize")

if you use up code in manifest editor and enter activity name,activity_create run once
it's problem is layout not resize
 

omidaghakhani1368

Well-Known Member
Licensed User
Longtime User
thank's Erel but how do save scrollview panel when rotate device?
 
Top