¾È³çÇϼ¼¿ä. 7±â ¹ÚÂù¿ìÀÔ´Ï´Ù,
¼¹ö¿Í ¼ÒÄÏÅë½ÅÀ» Çϸé¼
ÁÖ±âÀûÀ¸·Î keepAlive¸Þ½ÃÁö¸¦ ³¯·ÁÁִ°ǵ¥¿ä
Áֱ⸦ (short) 10 * 60 À¸·Î Çϸé,
10ºÐ¿¡ 1¹ø¾¿ keepAlive ¸Þ½ÃÁö¸¦ ³¯¸³´Ï´Ù.
ºÐ¸í ÀÌ°Ô Á¤»óÀε¥.....
Æò¼Ò¿£ Á¤»óÀûÀ¸·Î µ¿ÀÛÇÏ´Ù°¡µµ,
°¡²û¾¿ ÀÌ°Ô second°¡ ¾Æ´Ñ 1/1000 second·Î ÀÛµ¿ÇÒ ¶§°¡ ÀÖ½À´Ï´Ù....;;
¿¹¿Ü󸮹®¿¡ Àç±ÍÈ£Ã⠰ɾî³ù´ÂÁö È®ÀÎÇغÃÀ¸³ª ±×°Íµµ ¾Æ´Ï±º¿ä.
Ȥ½Ã¸ô¶ó¼ ·Î±×Ĺ ½Ã°£±îÁö ºÁµµ
ÁøÂ¥ Á¤È®ÇÏ°Ô ms·Î µ¿ÀÛÇØ ¹ö¸®³×¿ä...
¸Ó¸®¾ÆÇÁ³×¿ä... ·Î±×Ĺ¿¡´Â ŵ¾ó¶óÀÌºê ¸Þ½ÃÁö ¸î¹ø ³¯¸®´Ù°¡
¼ÒÄÏ ¿¡·¯¶ó´Â ·Î±×¸¸ ÁÖ·ç·è ³ª¿À°í...
ÀÌ°Å ¹ö±×Àΰ¡¿ä?
¼Ò½º ÀϺΠ¿Ã¸±Å×´Ï Á¶±Ý¸¸ ºÁÁÖ¼Å¿ä ¤Ð¤Ð¤Ð
Intent i = new Intent();
i.setClass(getApplicationContext(), ArgosService.class);
i.setAction(PING_ACTION) // ¼¹ö·Î ÇÎÀ» º¸³»¾ß ÇÑ´Ù´Â »ç½ÇÀ» ¾Ë¸².
PendingIntent pi = PendingIntent.getService(getApplicationContext(), 0, i, 0);
AlarmManager alarmMgr = (AlarmManager)getSystemService(ALARM_SERVICE);
alarmMgr.setRepeating(AlarmManager.RTC_WAKEUP,
System.currentTimeMillis() + keepAliveSeconds,
keepAliveSeconds, pi);
* ÀÌŬ¸³½º¿¡¼ ºÙ¿©³Ö¾ú´Âµ¥ ±ÛÀÚ»öÀÌ ¾û¸ÁÁøâÀ̳׿ä......¤Ð¤Ð¿ÖÀÌ·¯ÁÒ ¸Æ¿¡¼ Å©·ÒÀÔ´Ï´Ù.
* ±ÛÀ» µî·ÏÇϽǶ§ ²À ÇÊ¿äÇÑ °æ¿ì°¡ ¾Æ´Ï¸é °³ÀÎÁ¤º¸¸¦ ³²±âÁö ¸¶¼¼¿ä ^^ (¿¬¶ôó,À̸ÞÀÏÁÖ¼Ò,Áֹεî·Ï¹øÈ£ µî)