Java tutorial
//package com.java2s; //License from project: Open Source License import android.hardware.Camera; public class Main { public static String asString(Camera.Size resolution) { return String.valueOf(resolution.width) + "x" + String.valueOf(resolution.height); } }