Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

Revision as of 21:05, 7 December 2013 by lpvalente (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Como obter o tamanho da tela de um celular em Java ME

From Wiki
Jump to: navigation, search
Article Metadata

Criado por maiconherverton em 11 Sep 2009
Última alteração feita por lpvalente em 07 Dec 2013

Este artigo mosta como saber o tamanho da tela do aparelho, usando Java ME.


int largura = canvas.getWidth(); //Captura a largura da tela e armazena em uma variável int
int altura = canvas.getHeight(); //Captura a altura da tela e armazena em uma variável int
This page was last modified on 7 December 2013, at 21:05.
50 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.


Thank you!

We appreciate your feedback.