Android, OpenGLES, CmdLine tool, getting MainDisplay resolution
问题 Environment Windows (x64) Host Android 5.0 USB connected to the Windows machine Samsung Galaxy 5 VisualGDB OpenGL (v1.4) ADB CmdLine tool => Native C++ (No Java) Use-case Implement an ADB commandline tool that extract the main display resolution ( this is part of the tools functionality ) The following code print gibberish data , How can I get the main display resolution using Native C++ code running as an ADB command line tool ? Code snippet HRESULT GetMainDisplayResolution(OUT SIZE& sz) {