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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---