Just draw a string on your graphic. Ex:
protected void paint(final Graphics g)
{
g.setColor(0, 0, 0);
g.fillRect(0, 0, this.getWidth(), this.getHeight());
final String debug =
new StringBuffer("w:")
.append(this.videoControl.getDisplayWidth())
.append(",h:")
.append(this.videoControl.getDisplayHeight())
.toString();
g.setColor(0, 255, 0);
g.drawString(debug, 0, g.getFont().getHeight() * i, Graphics.TOP |
Graphics.LEFT);
}
-----Original Message-----
From: keitai-l-bounce@appelsiini.net
[mailto:keitai-l-bounce@appelsiini.net]On Behalf Of César Fernández
Sent: Wednesday, February 25, 2004 5:53 PM
To: keitai-l@appelsiini.net
Subject: (keitai-l) Re: working on the emulator but not in the phone
thanks very much, but how do i print the stack trace to the screen? have
you a little piece of code where i can see how to do it??
Jason Pollard wrote:
>Try wrapping everything in a try/catch, then print the stack trace to the
>screen if possible.
>
>--Jason
>
>--- César_Fernández <cfernandez@insidelabs.com> wrote:
>
>
>>Hello all, I have a problem: I have written an application and It is
>>working on the emulator, but when I download it from the server to the
>>phone, it says Application Error. I know it is not a problem of the
>>download process or so, because a little part of the beginning of the
>>application executes correctly.
[ excessive quoting removed by moderator ]
This mail was sent to address tempo@seed.net.tw
Need archives? How to unsubscribe? http://www.appelsiini.net/keitai-l/
Received on Wed Feb 25 18:23:44 2004