int w = getWindowManager().getDefaultDisplay().getWidth();
int h = getWindowManager().getDefaultDisplay().getHeight();

Unfortunately, I have no answer to your second question; I don't
understand the question. ;)

Dennis

On 20 Nov., 08:00, SinFrancis <[EMAIL PROTECTED]> wrote:
> I wanna konw the screen width and height when app run  ?
> how can i do?
>
> and if the touchpad move ??  which way can get the moved
> distance ?????
> Thanks?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to