Is there correct way to get screen resolution?
According to documentation there is getPreferenceValues luna service which should return appropriate values by keys "screenSize.width" and "screenSize.height".
But it's return "walpaper" property
There is warkournd:
But for that purpose need to call captureScreen and parse resolution.