Detecting the current graphics resoultion

You must Login before you can answer or comment on any questions.

  • Titanium 1.1.0
  • Android 1.6
  • HVGA/QVGA

Is there a way to detect the current graphics resolution? As in, HVGA is 320x480 where as QVGA is 240x320. I've been beating my head trying to figure out why a button isn't showing up where I think it should only to find out that QVGA is a smaller resolution than HVGA. Couple that with the fact that I was using QVGA as an oddity and never switched back to HVGA, and it has been a frustrating day.

I read a post that mentioned something about screen.x/screen.y, but I don't find anything like that in the API docs or KitchenSink (though I haven't fired up grep to look for likely patterns yet). If someone has an example or link that would be awesome.

Vadtec

1 Answer

Your Answer

Think you can help? Login to answer this question!