android - How to handle orientation changes for home screen app widget? -


can me on how handle orientation change app widget? on orientation change widget showing layout empty view , removing listeners.

after research , studying of folks answers , came know mistake have done.

after initial setup of widget , again initializing remote views , trying change few views when user taps on refresh button , iam making view visibility gone , making circular progress loading view visibility visible , not again adding other views , click listeners updating widget.

appwidget manager use last remote views object. whenever orientation changes appwidget manager trying load latest remote view object ignoring pending intent listeners , views.

i resolved creating remote view object required view , listeners.


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -