This can be considered a repetition of this message , but he did not get the right answer, so perhaps the question needs a little more context to attract the answer.
Basically, I was able to configure the Monitoring Service , which monitors the rotation on the main screen, and when this happens, my AppWidgets updated in response.
Although this works as well as possible, the big mistake with this method is that it actually only detects the screen , not just the main screen . p>
Thus, typically, the device will support screen rotation in normal applications (i.e., Activity rotation). The problem is that rotating the screen under these circumstances falsely triggers my monitoring of the Service .
My widgets then think that they need to display and show new content for the rotated view, but if the home screen itself does not support rotation on the main screen, then this work is not only wasted, but also contributes to a poor interface.
So, is there a way to check if the launcher supports rotation on the main screen? Or, alternatively, a method for detecting rotation of the main screen , not just screen rotation (for example, in the application)?
I could just create a parameter to enable this rotation function or not, with the default turned off, but in fact I would like the function to turn on by default ... otherwise users with rotating home screens will consider my widgets They donโt respond well to rotation without wasting time looking for options to enable the function for their device.
android homescreen android-launcher
drmrbrewer
source share