2011.12.10(ÀÏ) \\172.16.4.254\android°øÀ¯ À̱¤È£ 010-2867-4232 hoya4232@gmail.com -java°¡ ¼³Ä¡ µÅ¾ú´Âµ¥µµ eclipse °¡ ½ÇÇà ¾ÈµÉ¶§ eclipse.ini¸¦ ¿­¾î¼­ --launche.defaultActionÀ§¿¡´Ù -vm C:\Program Files\Java\jdk...\bin\javaw.exe»ðÀÔ aabbcc r g b *--¾Èµå·ÎÀ̵å ÄÁÆ®·ÑÀÇ Á¾·ù---* TextView - ±ÛÀÚ Ãâ·Â¿ë Button- »ç¿ëÀÚ ÅÍÄ¡ÀÔ·ÂÀ» ¹Þ±â À§ÇÑ ÄÁÆ®·Ñ EditText- »ç¿ëÀÚÀÇ ÀÔ·ÂÀ» •±±â À§ÇÑ ÄÁÆ®·Ñ ImageView-±×¸²À» Ãâ·ÂÇÏ´Â ÄÜÆ®·Ñ CheckBox-´Ù¼öÀÇ Ç׸ñÀ» ¼±ÅÃÇϱâ À§ÇÑ ÄÁÆ®·Ñ Radio-´Ù¼þÀÇ Ç׸ñÁß¿¡¼­ ÇϳªÀÇ °ªÀ» ¼±ÅÃÇϱâ À§ÇÑ ÄÁÆ®·Ñ [Ư¼öÄÁÆ®·Ñ] ListView-¸ñ·ÏÀ» º¸¿©ÁÖ´Â ÄÁÆ®·Ñ(¸ñ·ÏÁßÀÇ ÇÑ°¡Áö Ç׸ñÀ» ¼±ÅÃÀ» ÇÒ ¼ö ÀÖ´Ù) Spinner-µå·Ó´Ù¿î ÄÁÆ®·Ñ WebView-À¥ÆäÀÌÁö¸¦ º¸¿©ÁÖ´Â ÄÁÆ®·Ñ VideoView-µ¿¿µ»ó Àç»ý ÄÁÆ®·Ñ MapView- ±¸±Û¸ÊÀ» Ãâ·ÂÇÏ´Â ÄÁÆ®·Ñ(±¸±Û°èÁ¤:gmailÀ» ¸¸µé¾î¾ß ÇÑ´Ù) SurfaceView-°í»ç¾çÀÇ ±×·¡ÇÈÀ» Ãâ·ÂÇϱâ À§ÇÑ ÄÁÆ®·Ñ(GPU»ç¿ë) C:\Users\soldesk25\Desktop\android\20Àϱ³À°\4ÀÏÂ÷ *----- ¼Ò½º´Â layout:maun.xml¿¡ ÀÖ´Ù android.util.log.e(String tag, String msg); android.util.log.d(String tag, String msg); android.util.log.i(String tag, String msg); android.util.log.w(String tag, String msg); android.util.log.v(String tag, String msg); *---ÁöµµÀ§°Å¸®°è»ê---* http://blog.acronym.co.kr/259 select (6371 * acos( cos( radians(nowLat) ) * cos( radians( setLat ) ) * cos( radians( setLng ) - radians(nowLng) ) + sin( radians(nowLat) ) * sin( radians( setLat ) ) ) ) as distance; 02. 03.> select ROUND(6371 * acos( cos( radians(37.486273) ) * cos( radians( 35.177286 ) ) * cos( radians( 126.900247 ) - radians(126.900247) ) + sin( radians(37.486273) ) * sin( radians( 35.177286 ) ) ), 2) as distance; *---À§Ä¡·Î ºÎµ¿»ê°Ë»ö---* http://www.asiae.co.kr/news/view.htm?idxno=2011121509545515589 *--2011.12.16(Åä) 1.Áö³­ÁÖ ÇнÀ¿¹Á¤ 1)res->r.java *¿µ¾÷¼Ò¹®ÀÚ·Î ½ÃÀÛÇÏ´Â type(´ë¹®ÀÚ»ç¿ëºÒ°¡) 2)layout xmlÆÄÀÏÀÌ À߸ø µÇ¸é r.javaÆÄÀÏ ¼ø½Ä°£¿¡ »ç¶ó Áø´Ù /res/layout/main.xml 3)¼Ò½ºÆÄÀÏÀÌ main.xmlÆÄÀÏÀ» Àоú´Ù SetContentsView(~) (±¸±Û¿¡¼­ "¾Èµå·ÎÀ̵å ÅؽºÆ®ºä" Ä¡¸é ¾öû ¸¹ÀÌ ³ª¿Â´Ù) 3)ÄÜÆ®·Ñ a)üũ¹Ú½º,¶óµð¿À¹öÆ° b)±¸±Û ¸Ê ¿¬µ¿ c)À¥ºä- À¥ºê¶ó¿ìÁ® 4)¸®½ºÆ®ºä docs.phonegap.com hoyanet.pr.kr hybridApp/PhoneGap http://code.google.com/intl/ko-KR/ ÀÚ¼¼È÷ ¾Ë¾Æº¸±â maps Api key Signup http://code.google.com/intl/ko-KR/android/add-ons/google-apis/maps-api-signup.html Á¦¾îÆÇ ¸ðµçÁ¦¾îÆÄ ½Ã½ºÅÛ °í±Þ ½Ã½ºÅÛ¿¡¼­ ȯ°æº¯¼ö android,java,eclips path¸¦ Àâ°í cmd¿¡ °¡¼­ .android·Î °£´ÙÀ½ c:\users\soldesk25\.android>keytool -v -list -keystore debug.keystore MD5: 6B:DA:C3:EB:85:14:DE:75:EE:16:E5:73:B3:41:98:86 SHA1: 9D:65:74:F9:9F:25:EF:46:9C:FA:C5:AD:58:86:79:30:0D:5D:21:A6 ¼­¸í ¾Ë°í¸®Áò À̸§: SHA1withRSA ¹öÀü: 3 *----------------------* *---2011.12.18 ÀÏ---* 1. listView Á¦¸ñ Á¦¸ñ³»¿ë . . . . ¸Þ´º 1) ¹è¿­ ->Å©±â ÇÑÁ¤ µÇ¾î ÀÖ´Ù 2) stack -> °¹¼öÁ¦ÇÑÀÌ ¾ø´Ù 1) stack, 2) vector 3)arraylist 3°¡Áö Á¾·ù°¡ ÀÖ´Ù.(Ŭ·¡½ºÁ¾·ù) ¾ÈÁ¤¼º(°í) ¾ÈÁ¤¼º (Àú) ¼Óµµ (Àú) ¼Óµµ (°í) 3) ArrayList-->µ¥ÀÌŸÁ¾·ù »ó°ü¾ø´Ù List new ArrayList(); -->Á¦³Ê¸®½º(¼±¾ð½Ã ƯÁ¤ µ¥ÀÌŸÇü½ÄÀ» Á¤Çϴ°Í) --->¿©·¯°¡Áö µ¥ÀÌŸ Çü½ÄÀº ·Î ÇÏ¸é µÈ´Ù. À妽º°ª 0:list.add("°¡"); 1:list.add("³ª"); 2:list.add("´Ù");-->°´Ã¼¸¦ ´ãÀ»¼ö ÀÖ´Ù. String str=list.get(1) -->"³ª" °¡ ³ª¿Â´Ù list.clear-> ´ÙÁö¿î´Ù ArrayList --> ArrayAdapter -->listview ArrayAdapter»ó¼ÓÇؼ­ Ŭ·¡½º¸¦ ¸¸µé¾î »ç¿ëÇÑ´Ù class DataAdapter ArrayAdapter { getView(){ 1)list_item.xmlÀ»¿¬´Ù 2)arraylist¿¡ ÀÖ´Â ÀڷḦ ²¨³»¼­ (1)¿¡´Ù ä¿ö ³Ö´Â´Ù 3)(1)À» ¸®ÅÏ ÇÑ´Ù } } 1.main.xml À» Á¤ÀÇ 2.list_item.xmlÀ» Á¤ÀÇ 3.list view¸¦ Á¤ÀÇ 4. arraylist ÇÒ´ç 5.class adapter extends (6)ArrayAdapter 7.listview·Î º¸³½´Ù *---- 1)¼Ò½ºÆÄÀÏ 1°³ +xml 1°³ (¸®½ºÆ®¸¦ ¾µ°æ¿ì+1) 2)¼Ò½ºÆÄÀÏÀ» manifest¿¡ µî·Ï 3)ÇÊ¿äÇÑ°æ¿ì mainifest Æ۹̼ÇÃß°¡ 4)xmlÆÄÀÏ¿¡ uiµðÀÚÀÎ 5)¼Ò½º¿¡-->¹ØÁغñ 6)À̺¥Æ® -->? intent 1)toast msg 2)Á¾·á 3)È­¸éÀ̵¿ 4)ÀüÈ­°É±â *------------------* Intent 1)¸í½ÃÀû: from to (ƯÁ¤ app È­¸é¿¡¶ç¿ì´Â¹æ¹ý) 2)¾Ï¹¬Àû: 󸮹æ¹ý, °ª(½Ã½ºÅÛ ³»Àå app) ¸í½ÃÀû,¾Ï¹¬Àû °áÁ¤Àº intent(a,b) :a¿Í b¿¡ ¹«¾ùÀÌ µé¾î °¡´À³Ä¿¡ µû¶ó °áÁ¤ hoyanet.pe.kr/515