use ddms to capture screen in case of java version >= 1.7, else use screencap