Android draw view on incoming call
<p>I am trying to show a view over incoming phone call , Like true caller. Please let me know how i can implement that.</p>

<p>I am trying to use this code: But it is showing me some error</p>

<pre><code>    WindowManager wm = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);
    Display display = wm.getDefaultDisplay();
    if (SysUtils.isGteAndroid4()) {
        Point size = new Point();
        display.getSize(size);
        return size;
    } else {
        return new Point(display.getWidth(), display.getHeight());
    }
</code></pre>