Confirm how to get a mobile device resolution

I know this has been asked many times, yet the answers are inconclusive.

Can someone confirm for me how to get the resolution for a mobile device.

The best answer seemed to be use:

Screen.currentresolution.width and Screen.currentresolution.height

Thank you in advance.

Its so simple:


Anyone, please!