Better device detection, sees if mobile header is preset and calls back to Java code