Skip to content

Instantly share code, notes, and snippets.

@twaddington
Last active October 13, 2015 08:08
Show Gist options
  • Save twaddington/4165513 to your computer and use it in GitHub Desktop.
Save twaddington/4165513 to your computer and use it in GitHub Desktop.

Supported sizes

Camera.Parameters params = mCamera.getParameters();

Log.d(TAG, "Supported sizes:");
List<Camera.Size> sizes = params.getSupportedPictureSizes();
for (Camera.Size s : sizes) {
    Log.d(TAG, String.format("  %s x %s", s.width, s.height));
}

Galaxy Nexus

  • 2592 x 1944
  • 2592 x 1728
  • 2592 x 1458
  • 2048 x 1536
  • 1600 x 1200
  • 1280 x 1024
  • 1152 x 864
  • 1280 x 960
  • 640 x 480
  • 320 x 240

Nexus S (2.3.x)

  • 2560 x 1920
  • 2048 x 1536
  • 1600 x 1200
  • 1280 x 960
  • 640 x 480

HTC Desire Z (HTC G2)

  • 2592 x 1952
  • 2592 x 1456
  • 2592 x 1520
  • 2592 x 1936
  • 2592 x 1728
  • 2592 x 1552
  • 2048 x 1536
  • 2048 x 1360
  • 2048 x 1216
  • 2048 x 1152
  • 2048 x 1200
  • 1600 x 1200
  • 1584 x 1056
  • 1280 x 960
  • 1280 x 848
  • 1280 x 768
  • 1280 x 720
  • 1280 x 752
  • 1024 x 768
  • 640 x 480
  • 640 x 416
  • 640 x 384
  • 640 x 368
  • 512 x 384
  • 400 x 400
  • 272 x 272

Samsung Exhibit 4G

  • 2048 x 1536
  • 2048 x 1232
  • 1600 x 1200
  • 1600 x 960
  • 800 x 480
  • 640 x 480
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment