Code example for Point

0
    // 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()
                .getRotation();
Contextual code suggestions in your IDE  Get Codota for Java