Author Topic: screen rotation in apps  (Read 2342 times)

jamesannan

  • Full Member
  • ***
  • Posts: 119
    • View Profile
screen rotation in apps
« on: July 10, 2004, 03:18:09 am »
Maybe better on the developer board, but...

How does one write a java app that will respond correctly to screen rotation? Obviously some of them do this fine, but many do not and the simple example code I have found on the web all seems to fall into the latter category. I'm a java newbie, trying to learn. I've found lots of useful introductory info on the web, but nothing that appears to cover this point.

Thanks,

James

clivel

  • Jr. Member
  • **
  • Posts: 84
    • View Profile
    • http://www.bundu.com
screen rotation in apps
« Reply #1 on: July 10, 2004, 03:06:15 pm »
Quote
Maybe better on the developer board, but...

How does one write a java app that will respond correctly to screen rotation? Obviously some of them do this fine, but many do not and the simple example code I have found on the web all seems to fall into the latter category. I'm a java newbie, trying to learn. I've found lots of useful introductory info on the web, but nothing that appears to cover this point.

Thanks,

James
If you are using the Qtopia SDK, you can override the QMainWindow::resizeEvent.
This works for C++,  I  don't use Java, so I am not sure if you have access to the underlying Qtopia SDK.
Regards,
Clive

jamesannan

  • Full Member
  • ***
  • Posts: 119
    • View Profile
screen rotation in apps
« Reply #2 on: July 10, 2004, 09:50:46 pm »
Nope, I'm just writing java directly on the zaurus and compiling with kopi. It'll be some time before the rotation is really an issue!

James