Hi,

     How can I get the height of the screen in pixels ?   I know how
to do it in an Activity by doing the following:

         WindowManager w = getWindowManager();
        Display d = w.getDefaultDisplay();
        int height = d.getHeight();

   But I am writing an input method, using the InputMethodService
interface, which is not an Activity, but a service. And the
getWindowManager() is not accesible.

Thank You

Nitin

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to