EditText et_ability1=(EditText)findViewById(R.id.edit_ability1); String str_ability1=et_ability1.getText().toString();
EditText et_value1=(EditText)findViewById(R.id.edit_value1); String str_value1=et_value1.getText().toString();
it3.putExtra("it3_ability1", str_ability1); it3.putExtra("it3_value1", str_value1);
startActivity(it3); finish();
ÇöÀç ÀÌ·±½ÄÀ¸·Î ÅؽºÆ®¸¦¹Þ½À´Ï´Ù. ºó °ø¹éÀ¸·Î ÀÔ·ÂÇÏ¸é °Á¦Á¾·á°¡ µÇ´Âµ¥ ±×°É ¸·°í Å佺Ʈ¸Þ½ÃÁö·Î °ªÀ» ÀÔ·ÂÇ϶ó°í ¶ç¿ï·Á°í ÇÕ´Ï´Ù.
try catch ¹®À» ¾²¶ó°í Çϴµ¥ catchÀÇ º¯¼ö¸¦¹»·Î Áà¾ß Çϳª¿ä?
EditText et_ability1=(EditText)findViewById(R.id.edit_ability1); try{ String str_ability1=et_ability1.getText().toString();
}catch(??){ Å佺Ʈ¸Þ½ÃÁö ±¸¹® } ÀÌ·±½ÄÀ¸·Î ÇØÁÖ·Á°í ÇÕ´Ï´Ù. ijġºÎºÐ¿¡ ¹» ³Ö¾îÁà¾ß Çϳª¿ä?
±×¸®°í ÀÌ°Å´ë½Å if ¹®À¸·Î ½áµµ µÇÁö ¾Ê³ª¿ä?
EditText et_ability1=(EditText)findViewById(R.id.edit_ability1); if(str_ability1 != null) { String str_ability1=et_ability1.getText().toString(); } else{ Å佺Ʈ¸Þ½ÃÁö ±¸¹® } ÀÌ·±½ÄÀ¸·Î¿ä |