   Compiling with diferent SDK?
  Hey guys. I resently got several SDK from diferent companys like: Samsung, Sony Ericsson and Motorola. The thing is, i have being packaging the app with the J2ME SDK that Sun has on its website. When i try the app i have no issue what so ever in a nokia handset, but in a Motorola, some buttons (like number 8 for example) dont work.Can the SDK that i'm using be the problem?THanks   
  Whenever I am working with a phone, where the number keys don't work, I use this program i wrote, which simply in the keyPressed() function that simply sets the value that is drawn in the render() function.  It is important to note that while there is a "standard" (tho I use this term loosely) it isn't followed by everyone so you will find many great things out along the way.A quick example is something like this:int iKey = 0;void keyPressed( int key ) {iKey = key;}void Paint( Graphics g ){g.setClip( 0, 0, 100, 100 );g.setColor( 0);g.fillRect( 0, 0, 100, 100 );g.setColor( 0xffffff );g.drawString( ""+iKey );}I haven't compiled this...but it is there to give you an Idea.   ;  Hey mate. THanks for your help. I have been trying to put your code, but i have to say... maybe i'm not the right guy. THe programmer of our team just quit and i'm trying to fix this by my own. I'm not exactly the best programer. :(The code that he implemented was:Quote: protected void keyPressed(int key).    {..switch(key)..{...    case -1:....opcion--;....if (opcion<0).....    opcion = opciones.length-1;....break;...    case -2:....opcion++;....if (opcion>opciones.length-1).....    opcion = 0;....break;...    case -5:....isPlay = false;....break;..}.    }Here seams to be the problem. I cant realy understand what exactly does this code... but when i erase it from the code, i can no longer add any input to the app.Can you help me please?THanks   ;  MATE! I managed the way and found that most cellphones (i think) work with "Canvas.Key_Num#" At least, several of the cell i tested (emulatores) worked without any issue. So, the solution goes not by code, just by input control system. Thanks a lot!I couldnt do it with out you!;Quote:...source snippet removedmaybe its better he/she left ;-)Again...not all phones follow this...but it should be a good start for you.   