That is correct. The activity is recreated when the orientation changes. However if you are loading any large objects such as bitmaps then you can store them in memory and reuse them.
Activity_Create(FirstTime as Boolean)
dim top as int
for i = 0 to 10
dim k as button
k.initialize("")
scrollview1.Panel.addview(k,0,top,150dip,50dip)
top = top + 51dip
next
End sub
now if activity create reload then scrollview load buttons,isn't?
ok ok but my item (button and imageview) is over 50 count
my project is shop
i load product list from database that is over 50 item
and add it into scrollview panel
now if activity rotated,then again load product from database
ok ok but my item (button and imageview) is over 50 count
my project is shop
i load product list from database that is over 50 item
and add it into scrollview panel
now if activity rotated,then again load product from database
That is correct. The activity is recreated when the orientation changes. However if you are loading any large objects such as bitmaps then you can store them in memory and reuse them.