Possible to get Android root view?

Hi,

Is there a way to correctly access the root view within CoronaApplication.java?

For example, when I try accessing the root view like this:

View rootView = com.ansca.corona.CoronaEnvironment.getCoronaActivity().getWindow().getDecorView().findViewById(android.R.id.content);

and then access its height:

rootView.getHeight()

it seems to work. So perhaps it’s correct? However, if I call this:

rootView.getWindowVisibleDisplayFrame(rect);

it returns a really huge rectangle with coordinates (-10000,-10000,10000,10000) so it makes me think I’m not accessing the rootView correctly.

Thanks!

-Ben