This may be considered to be a repeat of this post, but that never did receive a proper answer, so maybe the question needs a bit more context to attract an answer.
Basically I have managed to set up a monitoring Service
that watches for home screen rotation, and when that happens my AppWidgets
are refreshed in response.
Whilst this works fine as far as it goes, a big pitfall with the method is that it actually only detects screen rotation and not specifically home screen rotation.
So, typically a device would support rotation of the screen within normal apps (i.e. rotation of an Activity
). The problem is that rotation of the screen in those circumstances falsely triggers my monitoring Service
.
My widgets then think that they need to fetch and show new content for the rotated view, but if the home screen itself does not support home screen rotation, then that work is not only wasted but also contributes to a bad UI.
So is there a way to check whether the launcher supports home screen rotation? Or alternatively, a way in which rotation of the home screen specifically can be detected, and not just rotation of the screen (e.g. in an app)?
I could just create an option to enable this rotation feature or not, with the default being off, but really I'd like the default to be that the feature is enabled... otherwise users with rotating home screens will consider that my widgets don't respond well to rotation, without taking the time to look into the options to enable the feature for their device.