Hi all,
I have a homescreen widget, when the screen orientation is changed, I want to load a corresponding layout, e.g portrait_layout, landscape_layout. Also, when the screen orientation is changed, my widget data is lost, e.g my textbox all blank. I read Peter Simpson solution by using a timer to catch the rotation. Is there other solution for this, because I dont want to run the widget so frequent as it may drain much battery.
I have a homescreen widget, when the screen orientation is changed, I want to load a corresponding layout, e.g portrait_layout, landscape_layout. Also, when the screen orientation is changed, my widget data is lost, e.g my textbox all blank. I read Peter Simpson solution by using a timer to catch the rotation. Is there other solution for this, because I dont want to run the widget so frequent as it may drain much battery.