1 message in com.googlegroups.android-beginnersRe: [android-beginners] Display numbe...
FromSent OnAttachments
Megha Joshi26 Feb 2008 14:22 
Subject:Re: [android-beginners] Display numbers in the textbox
From:Megha Joshi (mjo@google.com)
Date:02/26/2008 02:22:21 PM
List:com.googlegroups.android-beginners

Hi,

From the description of what you are trying to do, I think you would use a TextView and its setText() method. Is there any reason for using graphics methods here? If yes perhaps, you could include the code of how your graphics object is declared and used to help us debug this further.

Thanks, Megha

On Mon, Feb 25, 2008 at 11:00 PM, Analdin Judy <j.@i-waves.com> wrote:

Hi all,

I want to display numbers in the text box when i pressing corresponding key,

I use the below code ,But i got the error message .

*if* *(**keycode* == KeyEvent.*KEYCODE_0* )

{

areacode=areacode+"0";

_graphics.drawString(areacode, xpos, ypos, Graphics.*TOP*|Graphics.*LEFT*);

xpos=xpos+10;

}

What is the code we have to use?

Thanks

judy