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
Post a Comment