I answer myself, as luck as I am, just after writing the e-mail I used the phoneLog app in landscape mode (just cheer luck it was like that!), and it does exactly what I want my app to do. It doesn't turns the screen, but realizes when the screen has been turned changing the way it shows the app.
And I believe this app is written in python, the same I'm going to use... so I'll check the code whenever I can! |-- Jorge Ávalos --| On Sat, Aug 22, 2009 at 19:20, Jorge Avalos Salguero <[email protected]>wrote: > Hi everyone! > > As said in some old message the OMNewRotate is not the best way to turn the > screen anymore... So we should have something to turn it, I have read pretty > good ideas on the Aux button discussion. Like a script to turn the screen > depending on the accel info when the user press the aux button for some time > (for example). > > I think that's simple and useful. > > But now, the questions I came to make. I'm planning on making an app that I > think is needed for SHR, but I'm starting with this so I might come and ask > for help from time to time. I haven't even started, I'm for now looking some > other's code to learn what I might need when I have free time. But I came up > with this doubt and wanted to ask. > > Is there a way of asking the OS in which position is the screen? and is > there any signal made by the OS so I can listen to it when the screen > rotates? 'Cause that would be useful for adapting the apps to the position > of the screen. Specifically, I would like to know if it's in landscape mode > or not, to adapt the UI of the app the best way possible (would be useful > even to adapt the keyboard... which right now is the same size no matter how > the screen is). At first I thought of checking myself the accels, but if > someone has an automated program to do it (as OMNewRotate), and it turns the > screen, and I also do it, it wouldn't be in the right position (you can > check it having OMNewRotate and LedClock apps installed together). That's > why I think this should be given by the OS. > > Thanks for reading! > > |-- Jorge Ávalos --| >
_______________________________________________ Shr-User mailing list [email protected] http://lists.shr-project.org/mailman/listinfo/shr-user
