How to get Screen metrics outside an Activity?
<p>I have a Generic Pool that i am making here:</p>

<pre><code>public class FruitPool extends GenericPool&lt;Sprite&gt; {
// ===========================================================
// Constants          
// ===========================================================

// ===========================================================          
// Fields         
// =========================================================== 
private final TextureRegion mTextureRegion;
private Scene mScene;
// ===========================================================          
// Constructors          
// =========================================================== 
public FruitPool(final TextureRegion pFruitTextureRegion, Scene mScene2) {
    this.mTextureRegion = pFruitTextureRegion;
    this.mScene = mScene2;
}
// ===========================================================          
// Getter &amp; Setter          
// =========================================================== 

// ===========================================================          
// Methods for/from SuperClass/Interfaces          
// ===========================================================  
@Override
protected Sprite onAllocatePoolItem() {
     Random rand = new Random();

        //I want to get the Screens Display metrics here...
    Sprite fruit = new Sprite(0, 0, this.mTextureRegion);

    mScene.attachChild(fruit);

    return fruit;

}
</code></pre>

<p>I am trying to get the screens display metrics like this..</p>

<pre><code>    final Display display = getWindowManager().getDefaultDisplay();
    CAMERA_WIDTH = display.getWidth();
    CAMERA_HEIGHT = display.getHeight();
</code></pre>

<p>The only problem is, is that i cant figure out how to do this outside of an Activity..</p>

<p>Is this even possible? Or will i have to use SharedPreference or something?</p>
