I am trying to determine the height to the status bar in Android, . I have found answers, but all seem to rely on the Activity object ( e.g., activity.getWindow() ). However, I am developing an input method, which does not have an associated activity object.
Any ideas how I can do this in an IME?