¾ÛÅøÁî
46.¢½.168.138
46.¢½.168.129
46.¢½.168.161
46.¢½.168.136
46.¢½.168.145
46.¢½.168.162
46.¢½.168.144
46.¢½.168.140
115.¢½.135.198
46.¢½.168.139
 
°Ô½Ã¹° 12°Ç
 
Activity À̵¿½Ã ƯÁ¤°ª ³Ñ°ÜÁÖ±â
±Û¾´ÀÌ : Å«°õ                   ³¯Â¥ : 2010-10-15 (±Ý) 10:34 Á¶È¸ : 3238

Á¦°¡ °øºÎÇϸ鼭 ´À³¤ºÎºÐ Áß¿¡ ÇϳªÀε¥
Activity À̵¿ÇÒ¶§ À̵¿Àü ActivityÀÇ °ªÀ» À̵¿ÇÒ Activity¿¡ ¾î¶»°Ô Àü´ÞÇÒ±î ÇÏ´Â °í¹ÎÀ»
¸¹ÀÌ Çß¾ú½À´Ï´Ù. staticÀ» ¾²¸é ÆíÇϱâ´Â ÇÏ°ÚÁö¸¸... ±×·¡¼­ ÀÌ·±¹æ¹ýÀ» ¾Ë°Ô µÅ¾ú°í
¾û¼ºÇÑ ÄÚµå ÀÌÁö¸¸ ÇÙ½ÉÀûÀÎ? ±×·¸½À´Ï´Ù.

// ¿øÇÏ´Â °ªÀ» ´øÁö´Â ºÎºÐ
  public boolean onKeyDown(int keyCode, KeyEvent event) {
          int putInt = 2;
          String pass_Str = "°øºÎÇսôÙ";
          if (keyCode == KeyEvent.KEYCODE_BACK && event.getRepeatCount() == 0) {
                               event.startTracking();
          Intent AdIntent = new Intent(ÀÛ¾÷ÁßŬ·¡½º.this, À̵¿ÇÒŬ·¡½º.class);
          AdIntent.putExtra("userPointListOnBack", putInt); 
          AdIntent.putExtra("userPointListOnBackString", pass_Str ); 
          startActivity(AdIntent);
//             finish();
             return true;
         }
         return super.onKeyDown(keyCode, event);
     } 
--------------------------------------------------------------------
onKeyDownÀº ½º¸¶Æ®Æù µÚ·Î°¡±â ¹öÅÏÀ» À§ÇÑ À̺¥Æ®ÀÔ´Ï´Ù.

º¸Åë Activity À̵¿ÇϵíÀÌ ¼±¾ðÀ» Çϸç putExtra¸¦ ÀÌ¿ëÇØ
int ÇüÀº (´øÁö´Â À̸§, ´øÁö´Â °ª)
String ÇüÀº (´øÁö´Â À̸§, ´øÁö´Â °ª) ÀÔ´Ï´Ù.
--------------------------------------------------------------------

// ¿øÇÏ´Â Activity ¿¡¼­ ´øÁø °ªÀ» ¹Þ´Â ºÎºÐ
     Intent intent = getIntent();
     int userPointListOnBack_int = intent.getIntExtra("userPointListOnBack", 0);
     String OnBack_String = intent.getStringExtra("userPointListOnBackString");

--------------------------------------------------------------------
¹ÞÀ» ½Ã´Â Intent¸¦ Çϳª ¼±¾ð getIntent();·Î ¹ÞÀ¸¸ç

int ÇüÀº (´øÁøÀ̸§ Áß ³»°¡ ¹Þ°í ½ÍÀº À̸§, °ªÀÌ ¾øÀ»¶§ ÇÒ ÃʱⰪ)
 - °ªÀÌ ÀÖÀ»°æ¿ì ¹Þ°í½ÍÀº À̸§ÀÇ °ªÀÌ µé¾î°¡¸ç °ªÀÌ ¾øÀ»½Ã ¼³Á¤ÇÑ ÃʱⰪ µé¾î°¨.

String ÇüÀº (´øÁøÀ̸§ Áß ³»°¡ ¹Þ°í ½ÍÀº À̸§) ÀÔ´Ï´Ù.
--------------------------------------------------------------------






 
¾È¾¾ 2010-10-15 (±Ý) 10:47
¤¾.. Àü ¿À´Ã ÀÌ°Åã´À¶ó°í ¤Ì¤Ì ÁÁÀºÀÚ·á °¨»çÇÕ´Ï´Ù
 
ÀÌ°æ¿ë 2010-10-15 (±Ý) 13:05
¿ÀÈ£ ÀÌ·± ¹æ¹ýÀÌ ÀÖ¾ú±º¿ä ^^
 
Á¤Çö¿ì 2011-04-12 (È­) 13:51

¿¢Æ¼ºê ³Ñ¾î°¥¶§ ÀÌ»óÇß¾ú´Âµ¥..  putExtra¸¦ ÀÌÇØÇß¾î¿ä~

 
À̹ÎÁØ 2012-10-17 (¼ö) 12:01
¿ì¿Í,,, Á¤¸» ÁÁÀº ÀÚ·áÀÔ´Ï´Ù. Á¦ÀÏ ±Ã±ÝÇß´ø ºÎºÐÀÌ ¾×ƼºñƼ °£ÀÇ µ¥ÀÌÅÍ ¿¬µ¿À̾ú´Âµ¥,,,
ÀÌ·¸°Ô ÇØ°áÀÌ µÇ¾ú³×¿ä. ¤¾¤¾¤¾¤¾¤¾¤¾

¾Èµå·ÎÀÌµå ¾ÛÀ» º¸¸é¼­ ´À³¤ Á¡ÀÌ Á¤¸» À¥ °³¹ßÇÏ°í ºñ½ÁÇÏ´Ù´Â ºÎºÐÀä,,,
´öÅÿ¡ ÇØ°áÇÏ´Â ¹æ¹ýÀ» ã´Àµ¥ ¾Ö¸¦ ¸¹ÀÌ ¸Ô³×¿ä ¤Ì¤Ì

´Ù¸¥ ÇÁ·Î±×·¥Ã³·³ Ŭ·¡½º ¼±¾ðÇؼ­ constructor ·Î ³Ñ°ÜÁÖ¸é Âü ÁÁÀ»ÅÙµ¥,,, Çϸ鼭¿ä ¤¾¤¾

¾Æ¹«Æ° ÁÁÀº Á¤º¸ °¨»çÇÕ´Ï´Ù!!
 

°Ô½Ã¹° 12°Ç
¹øÈ£ Á¦¸ñ ±Û¾´ÀÌ ³¯Â¥ Á¶È¸
12  1ÀÎ ¾Ûâ¾÷ ½ºÅ¸Æ®¾÷ ¼ÒÈ£±â¾÷ ÇÊ»ì±â¸¦ º¸¿©ÁÖ¸¶ ¹Î¼¼¿¬ 12-25 3612
11  ¾Èµå·ÎÀ̵å 4 3 Á©¸®ºó On °¶·°½Ã ³Ø¼­½º ±â´É ¹× Èı⠹ÚÃÊ·Õ 12-25 3569
10  ¾Èµå·ÎÀÌµå °³¹ß °­Á ´ÙÀ̾ó·Î±× 4 Custom Dialog ¹èµåº¸ 12-25 3920
9  ¡¡¡¡¡¡ ¼­»óÀº 12-24 2648
8  ¾×Á¤¿¡ ¼Õ°¡¶ôÀ» ´©¸£´Â ½Ã°£¿¡ µû¸¥ ÇÔ¼ö È£Ãâ +5 ±è±â¹ü 11-15 3289
7  - Camera)Ä«¸Þ¶ó ¿ÀǸ¸ ÇÏ´Â ¼Ò½º +1 ±è±â¹ü 11-03 3937
6  [¸µÅ©]ÇÁ·Î±×·¹½º ´ÙÀ̾ó·Î±×(ProgressDialog)»ý¼ºÇϱâ Å«°õ 10-27 3071
5  [¸µÅ©]¾Èµå·ÎÀ̵å(android) ´ÙÀ̾ó·Î±× Á¾·ùº° ±¸Çö ¹æ¹ý Å«°õ 10-27 3649
4  À§Ä¡Á¤º¸ GPS °£´Ü ¼Ò½º +5 Å«°õ 10-26 3952
3  ¾Ë¾ÆµÎ¸é À¯¿ëÇÑ permission +2 Å«°õ 10-26 3077
2  ¾Ë¾ÆµÎ¸é ÁÁÀº ±â´É ÄÚµå ¸ðÀ½ +3 Å«°õ 10-26 3299
1  Activity À̵¿½Ã ƯÁ¤°ª ³Ñ°ÜÁÖ±â +4 Å«°õ 10-15 3239
 
 
 
Copyright ¨Ï wwwold.androidstudy.co.kr. All rights reserved.