Code example for Point

    // See android.hardware.Camera.ACTION_NEW_VIDEO. 
    public static final String ACTION_NEW_VIDEO = "android.hardware.action.NEW_VIDEO";
    // Screen size holder 
    private static Point mScreenSize = new Point();
    private static DateFormat mJpegDateFormat = new SimpleDateFormat("yyyyMMdd_HHmmss");
     * Returns the orientation of the display 
     * In our case, since we're locked in Landscape, it should always 
     * be 90 
     * @param activity 
     * @return Orientation angle of the display 
    public static int getDisplayRotation(Activity activity) {
        int rotation = activity.getWindowManager().getDefaultDisplay()
Connect your IDE to all the code out there  Get Codota for Java