Use a view that fills the parent. Then use view.getWidth() and .getHeight like in the lunar lander example.
private int mCanvasWidth = findViewById(R.id.lunar).getWidth(); On May 27, 11:22 pm, Albert <[email protected]> wrote: > Hi everybody, > > Does anybody know how to get the screen dimension? Is there any > difference between the emulator and the real mobile on the screen > dimension? Thanks in advance. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

