Skip to content Skip to sidebar Skip to footer

Problem With Widgets And Orientation In Home Application

I am creating a home application and I finally got it to host widgets. The only problem is that when I change the orientation of the phone the widgets disappear and I have to add

Solution 1:

Setting the background of an Activity

See my answer there. Just do not write anything in the onConfigurationChanged() method.

This is caused because the orintation changes restarts your activity.

Post a Comment for "Problem With Widgets And Orientation In Home Application"