i entered numbers such 545. but there is nothing but exption happened. 2009/5/23 Jack Ha (T-Mobile USA) <jack...@t-mobile.com>
> > Can you provide the logcat output that shows the stack trace? > > What value did you enter for the et2 field? > > -- > Jack Ha > Open Source Development Center > ・T・ ・ ・Mobile・ stick together > > The views, opinions and statements in this email are those of > the author solely in their individual capacity, and do not > necessarily represent those of T-Mobile USA, Inc. > > > > On May 22, 10:55 pm, "hencechen...@gmail.com" <hencechen...@gmail.com> > wrote: > > here is my code,and it always goes to Exception. > > > > EditText et1=(EditText) > findViewById(R.id.content); > > EditText et2=(EditText) > findViewById(R.id.money); > > String con=et1.getText().toString(); > > try{ > > int > money=Integer.parseInt(et2.getText().toString()); > > data.get(index).add(con, money); > > Dialog dlg=new Dialog(android01.this); > > dlg.setContentView(R.layout.succeed); > > dlg.show(); > > } > > catch(Exception ex){ > > Dialog dlg=new > Dialog(android01.this); > > > dlg.setContentView(R.layout.error); > > dlg.show(); > > } > > > > How can i fix it? > > > > Thank you for your helping. > > Hence > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---