Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Apache License 

import android.app.Activity;

import android.graphics.Rect;

import android.view.Window;

public class Main {

    public static Rect getAppWrapWidthHeight(Activity activity) {
        Rect appWrapRect = new Rect();
        activity.getWindow().findViewById(Window.ID_ANDROID_CONTENT).getDrawingRect(appWrapRect);
        return appWrapRect;
    }
}