List of usage examples for android.view SurfaceHolder getSurfaceFrame
public Rect getSurfaceFrame();
From source file:Main.java
static boolean validSurface(SurfaceHolder holder) { if (holder.getSurface() != null) { Rect r = holder.getSurfaceFrame(); System.out.println("ExoVlcUtil.validSurface() r = " + r); return (r.width() * r.height()) > 0; }//from w ww.j av a 2 s . c om return false; }