<?xml version='1.0' encoding='EUC-KR' ?>
<rss version="2.0"
			xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
			xmlns:dc="http://purl.org/dc/elements/1.1/"
			xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" >
	<channel>
		<title><![CDATA[»ç¶û³ª¹«]]></title>
		<link>http://www.sarangnamu.net</link>
		<image></image>
		<description><![CDATA[»ç¶û³ª¹«¶ø´Ï´Ù..]]></description>
		<language>ko</language>
		<copyright>email : aucd29@gmail; MSN : cherubim_kor@hotmail.com; NateOn : aucd29@nate.com</copyright>
		<pubDate>2012-01-31 17:35:54</pubDate>
		<item>
		<category><![CDATA[[]]]></category>
		<title><![CDATA[[Java calculate progress on UnZipping process]]]></title>
		<link>http://www.sarangnamu.net/basic/basic_view.php?no=5221</link>
		<description><![CDATA[[http://stackoverflow.com/questions/7359098/java-calculate-progress-on-unzipping-process<br />
<br />
[code]mProgressDialog.setProgress(values[values.length - 1]);[/code]]]]></description>
		<pubDate>Array</pubDate>
		</item>

		<item>
		<category><![CDATA[[]]]></category>
		<title><![CDATA[[´ÜÀÏ Ã¥ÀÓÀÇ ¿øÄ¢ (single responsibility princinple)]]]></title>
		<link>http://www.sarangnamu.net/basic/basic_view.php?no=5220</link>
		<description><![CDATA[[http://arload.wordpress.com/2012/01/30/single-responsibility-princinple/]]]></description>
		<pubDate>Array</pubDate>
		</item>

		<item>
		<category><![CDATA[[]]]></category>
		<title><![CDATA[[EKEvent]]]></title>
		<link>http://www.sarangnamu.net/basic/basic_view.php?no=5219</link>
		<description><![CDATA[[http://www.kokonu.info/index.php?db=so&id=246249<br />
<br />
[code]<br />
±×·³ ´ç½ÅÀº ÀÌ·± ÄÚµå·Î ÀÌº¥Æ®¸¦ Ãß°¡ÇÒ ¼ö ÀÖ¾î¾ßÇÕ´Ï´Ù :<br />
<br />
// <br />
//  EventTestViewController.m <br />
//  EventTest <br />
// <br />
//  Created by Some Person on 5/07/10. <br />
//  Copyright __MyCompanyName__ 2010. All rights reserved. <br />
// <br />
#import "EventTestViewController.h" <br />
#import <EventKit/EventKit.h> <br />
@implementation EventTestViewController <br />
- (void)viewDidLoad { <br />
    [super viewDidLoad]; <br />
    EKEventStore *eventStore = [[EKEventStore alloc] init]; <br />
    EKEvent *event  = [EKEvent eventWithEventStore:eventStore]; <br />
    event.title     = @"EVENT TITLE"; <br />
    event.startDate = [[NSDate alloc] init]; <br />
    event.endDate   = [[NSDate alloc] initWithTimeInterval:600 sinceDate:event.startDate]; <br />
    [event setCalendar:[eventStore defaultCalendarForNewEvents]]; <br />
    NSError *err; <br />
    [eventStore saveEvent:event span:EKSpanThisEvent error:&err];        <br />
} <br />
 <br />
- (void)didReceiveMemoryWarning { <br />
    // Releases the view if it doesn't have a superview. <br />
    [super didReceiveMemoryWarning]; <br />
    // Release any cached data, images, etc that aren't in use. <br />
} <br />
- (void)viewDidUnload { <br />
    // Release any retained subviews of the main view. <br />
    // e.g. self.myOutlet = nil; <br />
} <br />
 <br />
- (void)dealloc { <br />
    [super dealloc]; <br />
} <br />
@end <br />
[/code]]]]></description>
		<pubDate>Array</pubDate>
		</item>

		<item>
		<category><![CDATA[[]]]></category>
		<title><![CDATA[[UILocalNotification]]]></title>
		<link>http://www.sarangnamu.net/basic/basic_view.php?no=5218</link>
		<description><![CDATA[[alarm manager °°Àº °Í<br />
<br />
http://vulpecula.tistory.com/tag/UILocalNotification<br />
<br />
[code]<br />
<br />
NSCalendar *calendar = [NSCalendar autoupdatingCurrentCalendar];<br />
NSDateComponents *dateComps = [[NSDateComponents alloc] init] autorelease];<br />
<br />
//¾Ë¶÷ÀÌ ¿ï·ÁÁö±æ ¿øÇÏ´Â ³¯Â¥ ÁöÁ¤ <br />
[dateComps setYear:2011];<br />
[dateComps setMonth:11];<br />
[dateComps setDay:11];<br />
[dateComps setHour:16];<br />
[dateComps setMinute:29];<br />
[dateComps setSecond:0];<br />
<br />
NSDate *date = [calendar dateFromComponents:dateComps];<br />
UILocalNotification *localNotif = [[[UILocalNotification alloc]init] autorelease];<br />
<br />
if (localNotif != nil) <br />
{<br />
    //ÅëÁö½Ã°£ <br />
    localNotif.fireDate = date;<br />
    localNotif.timeZone = [NSTimeZone defaultTimeZone];<br />
    <br />
    //Payload<br />
    <br />
    localNotif.alertBody = [NSString stringWithFormat:@"³»ºÎÅëÁö %@",date];<br />
    <br />
    localNotif.alertAction = @"»ó¼¼º¸±â";<br />
    <br />
    localNotif.soundName = UILocalNotificationDefaultSoundName;<br />
    <br />
    localNotif.applicationIconBadgeNumber = 0;<br />
    <br />
    <br />
    <br />
    //Custom Data<br />
    <br />
    NSDictionary *infoDict = [NSDictionary dictionaryWithObject:@"mypage" forKey:@"page"];<br />
    <br />
    localNotif.userInfo = infoDict;<br />
    <br />
    <br />
    <br />
    //Local Notification µî·Ï<br />
    <br />
    [[UIApplication sharedApplication] scheduleLocalNotification:localNotif];<br />
}<br />
[/code]]]]></description>
		<pubDate>Array</pubDate>
		</item>

		<item>
		<category><![CDATA[[]]]></category>
		<title><![CDATA[[android webview webpage  should fit the device screen]]]></title>
		<link>http://www.sarangnamu.net/basic/basic_view.php?no=5214</link>
		<description><![CDATA[[http://stackoverflow.com/questions/3916330/android-webview-webpage-should-fit-the-device-screen<br />
<br />
[code]<br />
WebView browser = (WebView) findViewById(R.id.webview);<br />
browser.getSettings().setLoadWithOverviewMode(true);<br />
browser.getSettings().setUseWideViewPort(true);<br />
[/code]]]]></description>
		<pubDate>Array</pubDate>
		</item>

		<item>
		<category><![CDATA[[]]]></category>
		<title><![CDATA[[eclipse short key]]]></title>
		<link>http://www.sarangnamu.net/basic/basic_view.php?no=5212</link>
		<description><![CDATA[[http://littletrue.egloos.com/3987863<br />
<br />
- Eclipse ÀÚÁÖ ¾²´Â ´ÜÃàÅ° -<br />
<br />
 <br />
<br />
----- ½ÇÇà -----<br />
<br />
Ctrl + F11 : ¹Ù·Î Àü¿¡ ½ÇÇàÇß´ø Å¬·¡½º ½ÇÇà<br />
<br />
 <br />
<br />
----- ¼Ò½º ³×ºñ°ÔÀÌ¼Ç -----<br />
<br />
Ctrl + ¸¶¿ì½ºÄ¿¼­(È¤Àº F3) : Å¬·¡½º³ª ¸Þ¼Òµå È¤Àº ¸â¹ö¸¦ »ó¼¼ÇÏ°Ô °Ë»öÇÏ°íÀÚ ÇÒ¶§<br />
<br />
Alt + Left, Alt + Right : ÀÌÈÄ, ÀÌÀü<br />
<br />
Ctrl + O : ÇØ´ç ¼Ò½ºÀÇ ¸Þ¼Òµå ¸®½ºÆ®¸¦ È®ÀÎÇÏ·Á ÇÒ¶§<br />
<br />
F4 : Å¬·¡½º¸íÀ» ¼±ÅÃÇÏ°í ´©¸£¸é ÇØ´ç Å¬·¡½ºÀÇ Hierarchy ¸¦ º¼ ¼ö ÀÖ´Ù.<br />
<br />
<br />
Alt + <-(->) : ÀÌÀü(´ÙÀ½) ÀÛ¾÷ È­¸é<br />
<br />
 <br />
----- ¹®ÀÚ¿­ Ã£±â -----<br />
<br />
Ctrl + K : Ã£°íÀÚ ÇÏ´Â ¹®ÀÚ¿­À» ºí·°À¸·Î ¼³Á¤ÇÑ ÈÄ Å°¸¦ ´©¸¥´Ù.<br />
<br />
Ctrl + Shift + K : ¿ªÀ¸·Î Ã£°íÀÚ ÇÏ´Â ¹®ÀÚ¿­À» Ã£¾Æ°¨.<br />
<br />
Ctrl + J : ÀÔ·ÂÇÏ¸é¼­ Ã£À» ¼ö ÀÖÀ½.<br />
<br />
Ctrl + Shift + J : ÀÔ·ÂÇÏ¸é¼­ °Å²Ù·Î Ã£¾Æ°¥ ¼ö ÀÖÀ½.<br />
<br />
Ctrl + F : ±âº»ÀûÀ¸·Î Ã£±â<br />
<br />
 <br />
<br />
----- ¼Ò½º ÆíÁý -----<br />
<br />
Ctrl + Space : ÀÔ·Â º¸Á¶ÀåÄ¡(Content Assistance) °­Á¦ È£Ãâ => ÀÔ·ÂÇÏ´Â µµÁß¿£ ¾ðÁ¦¶óµµ °­Á¦ È£Ãâ °¡´ÉÇÏ´Ù.<br />
<br />
F2 : ÄÄÆÄÀÏ ¿¡·¯ÀÇ »¡°£ÁÙ¿¡ Ä¿¼­¸¦ °®Á®´Ù°¡ ÀÌ Å°¸¦ ´©¸£¸é ¿¡·¯ÀÇ ¿øÀÎ¿¡ ´ëÇÑ ÈùÆ®¸¦ Á¦°øÇÑ´Ù.<br />
<br />
Ctrl + L : ¿øÇÏ´Â ¼Ò½º ¶óÀÎÀ¸·Î ÀÌµ¿<br />
<br />
   ·ÎÄÃ È÷½ºÅä¸® ±â´ÉÀ» ÀÌ¿ëÇÏ¸é ÀÌÀü¿¡ ÆíÁýÇß´ø ³»¿ëÀ¸·Î º¯È¯ÀÌ °¡´ÉÇÏ´Ù.<br />
<br />
Ctrl + Shift + Space : ¸Þ¼ÒµåÀÇ °¡·Î¾È¿¡ Ä¿¼­¸¦ ³õ°í ÀÌ Å°¸¦ ´©¸£¸é ÆÄ¶ó¹ÌÅÍ Å¸ÀÔ ÈùÆ®¸¦ º¼ ¼ö ÀÖ´Ù.<br />
<br />
Ctrl + D : ÇÑÁÙ »èÁ¦<br />
<br />
Ctrl + W : ÆÄÀÏ ´Ý±â<br />
<br />
Ctrl + I : µé¿©¾²±â ÀÚµ¿ ¼öÁ¤<br />
<br />
Ctrl + Shift + / : ºí·Ï ÁÖ¼®(/* */)<br />
<br />
Ctrl + Shift + \ : ºí·Ï ÁÖ¼® Á¦°Å<br />
<br />
Ctrl + / : ¿©·¯ÁÙÀÌ ÇÑ²¨¹ø¿¡ ÁÖ¼®Ã³¸®µÊ. ÁÖ¼® ÇØÁ¦ÇÏ·Á¸é ¹Ý´ë·Î ÇÏ¸é µÈ´Ù.<br />
<br />
Alt + Up(Down) : À§(¾Æ·¡)ÁÙ°ú ¹Ù²Ù±â<br />
<br />
Alt + Shift + ¹æÇâÅ° : ºí·Ï ¼±ÅÃÇÏ±â<br />
<br />
Ctrl + Shift + Space : ¸Þ¼ÒµåÀÇ ÆÄ¶ó¸ÞÅÍ ¸ñ·Ï º¸±â<br />
<br />
Ctrl + Shift + O : ÀÚµ¿À¸·Î import ÇÏ±â<br />
<br />
Ctrl + Shift + F4 : ¿­¸° ÆÄÀÏ ¸ðµÎ ´Ý±â<br />
<br />
Ctrl + M : ÀüÃ¼È­¸é Åä±Û<br />
<br />
Ctrl + Alt + Up(Down) : ÇÑÁÙ(ºí·°) º¹»ç<br />
<br />
Ctrl + , or . : ´ÙÀ½ annotation(¿¡·¯, ¿ö´×, ºÏ¸¶Å© °¡´É)À¸·Î Á¡ÇÁ<br />
<br />
Ctrl + 1 : Äü ÇÈ½º<br />
<br />
F3 : ¼±¾ðµÈ º¯¼ö·Î ÀÌµ¿, ¸Þ¼Òµå Á¤ÀÇºÎ·Î ÀÌµ¿<br />
<br />
Ctrl + T : ÇÏÀÌ¾î¶óÅ° &#65533;b¾÷ Ã¢ ¶ç¿ì±â(ÀÎÅÍÆäÀÌ½º ±¸Çö Å¬·¡½º°£ ÀÌµ¿½Ã Æí¸®)<br />
<br />
Ctrl + O : ¸Þ¼Òµå³ª ÇÊµå ÀÌµ¿ÇÏ±â<br />
<br />
Ctrl + F6 : Ã¢°£ ÀüÈ¯, UltraEdit ³ª Editplus ÀÇ Ctrl + Tab °ú °°Àº ±â´É<br />
<br />
 <br />
<br />
----- ÅÛÇÃ¸´ »ç¿ë -----<br />
<br />
sysout ÀÔ·ÂÇÑ ÈÄ Ctrl + Space ÇÏ¸é System.out.println(); À¸·Î ¹Ù²ï´Ù.<br />
<br />
try ÀÔ·ÂÇÑ ÈÄ Ctrl + Space ÇÏ¸é try-catch ¹®ÀÌ ¿Ï¼ºµÈ´Ù.<br />
<br />
for ÀÔ·ÂÇÑ ÈÄ Ctrl + Space ÇÏ¸é ¿©·¯°¡Áö for ¹®À» ¿Ï¼ºÇÒ ¼ö ÀÖ´Ù.<br />
<br />
ÅÛÇÃ¸´À» ¼öÁ¤ÇÏ°Å³ª Ãß°¡ÇÏ·Á¸é È¯°æ¼³Á¤/ÀÚ¹Ù/ÆíÁý±â/ÅÛÇÃ¸´ ¿¡¼­ ÇÒ ¼ö ÀÖ´Ù.<br />
<br />
<br />
 <br />
<br />
----- ¸Þ¼Òµå ½±°Ô »ý¼ºÇÏ±â -----<br />
<br />
Å¬·¡½ºÀÇ ¸â¹ö¸¦ ÀÏ´Ü ¸ÕÀú »ý¼ºÇÑ´Ù.<br />
<br />
override ¸Þ¼Òµå¸¦ ±¸ÇöÇÏ·Á¸é, ¼Ò½º->¸Þ¼Òµå´ëÃ¼/±¸Çö ¿¡¼­ ÇØ´ç ¸Þ¼Òµå¸¦ Ã¼Å©ÇÑ´Ù.<br />
<br />
±âÅ¸ Å¬·¡½ºÀÇ ¸â¹ö°¡ Å¬·¡½ºÀÇ ¿ÀºêÁ§Æ®¶ó¸é, ¼Ò½º->À§ÀÓ¸Þ¼Òµå »ý¼º¿¡¼­ ¸Þ¼Òµå¸¦ ¼±ÅÃÇÑ´Ù.<br />
<br />
 <br />
<br />
----- organize import -----<br />
<br />
ÀÚ¹ÙÆÄÀÏÀ» ¿©·¯°³ ¼±ÅÃÇÑ ÈÄ ¼Ò½º->°¡Á®¿À±â Ã¼°èÈ­ ÇØÁÖ¸é ¸ðµÎ Àû¿ëµÈ´Ù.<br />
<br />
 <br />
<br />
----- ¼Ò½º ÄÚµå Çü½Ä ¹× °øÅë ÁÖ¼® ¼³Á¤ -----<br />
<br />
È¯°æ¼³Á¤ -> ÀÚ¹Ù -> ÄÚµå ½ºÅ¸ÀÏ -> ÄÚµå Æ÷¸äÅÍ -> °¡Á®¿À±â -> ÇÁ·ÎÆÄÀÏ.xml À» ºÒ·¯´Ù°¡ ¾²¸é µÈ´Ù.<br />
<br />
¶ÇÇÑ ´Ù¼öÀÇ ÀÚ¹ÙÆÄÀÏ¿¡ ÇÁ·ÎÆÄÀÏÀ» Àû¿ëÇÏ·Á¸é ÆÐÅ°Áö Å½»ö±â¿¡¼­ ÆÐÅ°Áö¸¦ ¼±ÅÃÇÑ ÈÄ ¼Ò½º -> Çü½ÄÈ­¸¦ ¼±ÅÃÇÏ¸é µÈ´Ù.<br />
<br />
È¯°æ¼³Á¤ -> ÀÚ¹Ù -> ÄÚµå ½ºÅ¸ÀÏ -> ÄÚµå ÅÛÇÃ¸®Æ® -> °¡Á®¿À±â -> ÅÛÇÃ¸®Æ®.xml À» ºÒ·¯´Ù°¡ ¾²¸é µÈ´Ù.<br />
<br />
 <br />
<br />
----- ¿¡µðÅÍ º¯È¯ -----<br />
<br />
¿¡µðÅÍ°¡ ¿©·¯ ÆÄÀÏÀ» ¿­¾î¼­ ÀÛ¾÷ÁßÀÏ¶§ Ctrl + F6 Å°¸¦ ´©¸£¸é ¿©·¯ÆÄÀÏ¸íÀÌ ³ª¿À°í F6Å°¸¦ °è¼Ó ´©¸£¸é ¾Æ·¡·Î<br />
<br />
Ctrl + Shift + F6 Å°¸¦ ´©¸£¸é À§·Î Ä¿¼­°¡ ¿òÁ÷ÀÎ´Ù.<br />
<br />
Ctrl + F7 : ºä°£ ÀüÈ¯<br />
<br />
Ctrl + F8 : ÆÛ½ºÆåÆ¼ºê°£ ÀüÈ¯<br />
<br />
F12 : ¿¡µðÅÍ·Î Æ÷Ä¿½º À§Ä¡<br />
<br />
 <br />
<br />
 <br />
<br />
 <br />
<br />
 <br />
<br />
 <br />
<br />
- ÀÌÅ¬¸³½º ÀÚÁÖ¾²´Â ´ÜÃàÅ° -<br />
<br />
 <br />
<br />
Ctrl + / : ÁÖ¼® Ã³¸® - ÇÑ ¶óÀÎ/ºí·Ï¿¡ ´ëÇØ ÁÖ¼® Ã³¸® (Ãß°¡ ¹× Á¦°Å)<br />
<br />
Ctrl + L : Æ¯Á¤ ¶óÀÎÀ¸·Î ÀÌµ¿<br />
<br />
Ctrl + F6 : Editor Ã¢°£ÀÇ ÀÌµ¿<br />
<br />
Ctrl + F7 : View ÀÌµ¿ ¸Þ´º<br />
<br />
Ctrl + F8 : Prespectives ÀÌµ¿ ¸Þ´º<br />
<br />
Ctrl + D : ÇÑ¶óÀÎ »èÁ¦ - Ä¿¼­°¡ À§Ä¡ÇÑ ¶óÀÎ ÀüÃ¼¸¦ »èÁ¦ ÇÑ´Ù.<br />
<br />
Ctrl + J : Incremental find ÀÌÅ¬¸³½º ÇÏ´Ü »óÅÂ Ç¥½ÃÁÙ¿¡ Incremental find ¶ó°í Ç¥½ÃµÇ¾î ÇÑ ±ÛÀÚÀÚ¾¿ ´©¸¦ ¶§ ¸¶´Ù ÄÚµå³»ÀÇ ÀÏÄ¡ÇÏ´Â ¹®ÀÚ¿­·Î ÀÌµ¿ , ´Ù½Ã Ctrl + J ¸¦ ´©¸£¸é ±× ¹®ÀÚ¿­°ú ÀÏÄ¡ ÇÏ´Â ºÎºÐÀ» À§/¾Æ·¡ ¹æÇâÅ°·Î Å½»öÀÌ °¡´ÉÇÏ´Ù.<br />
<br />
Ctrl + N : »õ·Î¿î ÆÄÀÏ / ÇÁ·ÎÁ§Æ® »ý¼º<br />
<br />
Ctrl + 1 (ºü¸¥±³Á¤) - ¹® ¸Æ¿¡ ¸Â°Ô ¼Ò½º ±³Á¤À» µµ¿Í ÁØ´Ù. º¯¼ö¸¦ ¼±¾ðÇÏÁö ¾Ê°í ½èÀ»°æ¿ì »¡°£»ö ¿¡·¯ Ç¥½ÃµÇ´Âµ¥ ÀÌ ´ÜÃàÅ°¸¦ Àû¿ëÇÏ¸é º¯¼ö¿¡ ¸Â´Â ¼±¾ðÀÌ Ãß°¡ µÇµµ·Ï ¸Þ´º°¡ ³ªÅ¸³­´Ù.<br />
<br />
Ctrl + 0 : Å¬·¡½º ±¸Á¶¸¦ Æ®¸®·Î º¸±â<br />
<br />
Ctrl + Space :  Cotent Assist - ¼Ò½º ±¸¹®¿¡¼­ »ç¿ë °¡´ÉÇÑ ¸Þ¼Òµå, ¸â¹öµéÀÇ ¸®½ºÆ® ¸Þ´º¸¦ º¸¿©ÁØ´Ù.<br />
<br />
Ctrl + PageUp , Ctrl + PageDown : Edit Ã¢ ÁÂ¿ì ÀÌµ¿ - Edit Ã¢ÀÌ ¿©·¯°³ ¶ç¿öÁ® ÀÖÀ»°æ¿ì Edit Ã¢°£ÀÇ ÀÌµ¿ ÇÑ´Ù.<br />
<br />
Ctrl + Shift + Down : Å¬·¡½º ³»¿¡¼­ ´ÙÀ½ ¸â¹ö·Î ÀÌµ¿<br />
<br />
Ctrl + Shift + M : ÇØ´ç °´Ã¼ÀÇ Import ¹®À» ÀÚµ¿ »ý¼º - import Ãß°¡ ÇÒ °´Ã¼¿¡ Ä¿¼­¸¦ À§Ä¡ ½ÃÅ°°í ´ÜÃàÅ°¸¦ ´©¸£¸é ÀÚµ¿ÀûÀ¸·Î import ¹®ÀÌ »ý¼º<br />
<br />
Ctrl + Shift + O : import ¹®À» ÀÚµ¿ »ý¼º - ÀüÃ¼ ¼Ò½º ±¸¹®¿¡¼­ import ¾ÈµÈ Å¬·¡½ºÀÇ import ¹®À» »ý¼ºÇØ ÁØ´Ù.<br />
<br />
Ctrl + Shift + G : ÇØ´ç ¸Þ¼­µå / ÇÊµå¸¦ ¾²ÀÌ´Â °÷À» Ç¥½Ã - View ¿µ¿ª¿¡ Search ÅÇ¿¡ ÇØ´ç ¸Þ¼­µå / ÇÊµå¸¦ »ç¿ëÇÏ´Â Å¬·¡½º¸¦ Ç¥½Ã ÇØÁØ´Ù.<br />
<br />
Alt + Shift + R : Refactoring (ÀÌ¸§º¯°æ) - Refactoing À¸·Î ÀüÃ¼ ¼Ò½º¿¡¼­ ÀÌ¸§º¯°æ¿¡ ÀÇÇÑ ÂüÁ¶ Á¤º¸¸¦ º¯°æÇØ ÁØ´Ù.<br />
<br />
F3 : ¼±¾ð À§Ä¡·Î ÀÌµ¿<br />
<br />
F11 : µð¹ö±ë ½ÃÀÛ<br />
<br />
F8 : µð¹ö±ë °è¼Ó<br />
<br />
F6 : µð¹ö±ë ÇÑÁÙ¾¿ ½ÇÇà(step over)<br />
<br />
F5 : µð¹ö±ë ÇÑÁÙ¾¿ ½ÇÇà ÇÔ¼ö ³»ºÎ·Î µé¾î°¨ (step into)<br />
<br />
F12 : Editor Ã¢À¸·Î ÀÌµ¿ (Debugging µî ÀÚµ¿ÀûÀ¸·Î Æ÷Ä¿½º°¡ ÀÌµ¿ µÆÀ»°æ¿ì Æí¸®)<br />
<br />
Alt + Up , Alt + Down : ÁÙ ¹Ù²Þ - ÇØ´ç ¶óÀÎÀ» À§ / ¾Æ·¡·Î ÀÌµ¿ ½ÃÅ²´Ù.<br />
<br />
Alt + Shift + S : Source Menu - ¼Ò½º¸Þ´º (Import Ãß°¡ , Comment Ãß°¡ , °¢Á¾ Generator ¸Þ´º) °¡ ³ªÅ¸³­´Ù.<br />
<br />
Alt + Shift + Up : ºí·Ï¼³Á¤ - ¼Ò½º ÄÚµå¸¦ ºí·Ï ´ÜÀ§·Î ¼³Á¤ÇØ ÁØ´Ù.<br />
<br />
Alt + Shift + Down : ºí·ÏÇØÁ¦ - ¼Ò½º ÄÚµå¸¦ ºí·Ï ´ÜÀ§·Î ÇØÁ¦ÇÑ´Ù.<br />
<br />
Alt + Shift + J : ÁÖ¼® »ý¼º - ÇØ´ç ¸Þ¼­µå/Å¬·¡½º¿¡ ´ëÇÑ ÁÖ¼®À» ÅÛÇÃ¸´À» »ý¼ºÇØ ÁØ´Ù.<br />
<br />
sysout + (Ctrl + Space) : System.out.println() ¹®Àå »ðÀÔ - ÄÚµå ÅÛÇÃ¸´À» ÀÌ¿ëÇØ¼­ ¼Ò½º ±¸¹®À» Ãß°¡<br />
<br />
(Windows -> Preferences -> JAVA -> Editor -> Templates ¿¡¼­ ÀÚÁÖ ¾²´Â ¼Ò½º ±¸¹®À» Ãß°¡½ÃÅ°¸é <ÅÛÇÃ¸´ ÀÌ¸§> + (Ctrl + Space) ·Î ¼Ò½º ¹®ÀåÀ» ¿Ï¼º ½ÃÅ³ ¼ö ÀÖ´Ù.)<br />
<br />
Alt + Shift + Z : Surround With ¸Þ´º - try / catch ¹®ÀÌ³ª for , do , while µîÀ» ÇØ´ç ºí·Ï¿¡ °¨½ÎÁÖ´Â ¸Þ´º°¡ ³ªÅ¸³­´Ù.<br />
<br />
Ctrl + Shift + F : ÄÚµå Æ÷¸ËÆÃ - ÄÚµå ³»¿ëÀ» ¹®¹ý ÅÛÇÃ¸´¿¡ ¸Â°Ô Æ÷¸ËÆÃ(µé¿©¾²±â) ÇØÁØ´Ù.<br />
<br />
Ctrl + Alt + Down: ÇÑÁÙ º¹»çÈÄ ¾Æ·¡¿¡ º¹»ç ³Ö±â - Copy&Paste ´ëÃ¼ÇÏ´Â ´ÜÃàÅ°. Ä¿¼­°¡ À§Ä¡ÇÑ ¶óÀÎÀ» º¹»çÇØ ¹ØÁÙ¿¡ »ý¼ºÇØ ÁØ´Ù.<br />
<br />
Ctrl + Shift +X : ´ë¹®ÀÚ·Î º¯È¯<br />
<br />
Ctrl + Shift + Y : ¼Ò¹®ÀÚ·Î º¯È¯<br />
<br />
Ctrl + Shift + L : ¸ðµç ´ÜÃàÅ°ÀÇ ³»¿ëÀ» Ç¥½ÃÇØÁØ´Ù.<br />
<br />
Ctrl + Shift + B : ÇöÀç Ä¿¼­ ¶óÀÎ¿¡ Break point ¼³Á¤<br />
<br />
Ctrl + Shift + T : Å¬·¡½º Ã£±â]]]></description>
		<pubDate>Array</pubDate>
		</item>

		<item>
		<category><![CDATA[[]]]></category>
		<title><![CDATA[[Adapter view]]]></title>
		<link>http://www.sarangnamu.net/basic/basic_view.php?no=5211</link>
		<description><![CDATA[[<p><br />
	<a href="http://babtingdev.tistory.com/253">http://babtingdev.tistory.com/253</a></p><br />
<p><br />
	&nbsp;</p><br />
<p style="margin-top: 1em; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 15px; font-family: µ¸¿ò, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); "><br />
	ListView´Â º¹¼ö°³ÀÇ&nbsp;Ç×¸ñµéÀ» ¼öÁ÷À¸·Î Ç¥½ÃÇÏ´Â À§Á¬ÀÌ´Ù. ¼öÁ÷½ºÅ©·ÑÀ» Áö¿øÇÏ¿© Ç×¸ñ¼ö°¡ ¸¹¾Æµµ Ç¥½Ã°¡ °¡´ÉÇÏÁö¸¸ ¼öÆò ½ºÅ©·ÑÀº Áö¿øÇÏÁö ¾Ê´Â´Ù.<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; " /><br />
	<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; " /><br />
	ListView¿¡´Â °£´ÜÇÑ ¹®ÀÚ¿­, ÀÌ¹ÌÁö, ¹®ÀÚ¿­°ú ÀÌ¹ÌÁö¸¦ °°ÀÌ Ç¥½ÃÇÒ ¼öµµ ÀÖ´Ù.<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; " /><br />
	&nbsp;</p><br />
<div class="imageblock center" style="margin-top: 5px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 15px; font-family: µ¸¿ò, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); text-align: center; clear: both; "><br />
	<img alt="" height="354" src="http://cfile5.uf.tistory.com/image/1833420B4C4C5938A17209" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; " width="591" /></div><br />
<p style="margin-top: 1em; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 15px; font-family: µ¸¿ò, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); "><br />
	&nbsp;</p><br />
<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 15px; font-family: µ¸¿ò, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); " /><br />
<p><br />
	<span style="color: rgb(138, 138, 138); font-family: dotum; line-height: 15px; ">À§ Å¬·¡½º ´ÙÀÌ¾î±×·¥¿¡¼­µµ º¼ ¼ö ÀÖµíÀÌ ListView, GridView, Spinner, GalleryµîÀÌ ¸ðµÎ Ç×¸ñ ÁýÇÕÀ» Ç¥½ÃÇÏ´Âµ¥ ÀÌµéÀ» ¹­¾î¼­ AdapterView¶ó°í ºÎ¸¥´Ù.&nbsp;</span><strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 15px; font-family: µ¸¿ò, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); ">AdapterView´Â ViewGroupÀ¸·ÎºÎÅÍ ÆÄ»ýµÇ¹Ç·Î ¿©·¯°³ÀÇ Child View¸¦ °¡Áú ¼ö ÀÖ´Ù.<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; " /><br />
	<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; " /><br />
	À§ À§Á¬(ListView, GridView, Spinner, Gallery)¸¦ adapterView¶ó°í ºÎ¸£´Â ÀÌÀ¯´Â Ç¥½ÃÇÒ Ç×¸ñ µ¥ÀÌÅÍ¸¦ Adapter¶ó´Â °´Ã¼·ÎºÎÅÍ °ø±Þ¹Þ±â ¶§¹®ÀÌ´Ù. Adpater´Â ¿øº»À¸·ÎºÎÅÍ ¾òÀº µ¥ÀÌÅÍ¸¦ °ü¸®ÇÏ¸ç AdapterView´Â Adapter°¡ Àü´ÞÇÑ µ¥ÀÌÅÍ¸¦ È­¸é¿¡ Ç¥½ÃÇÏ±â¸¸ ÇÑ´Ù.</strong></p><br />
<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; " /><br />
<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; " /><br />
<div class="imageblock center" style="margin-top: 5px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; text-align: center; clear: both; "><br />
	<strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-family: µ¸¿ò, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); "><img alt="" height="320" src="http://cfile5.uf.tistory.com/image/130A651C4C4C5AC9B21D29" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; " width="419" /></strong></div><br />
<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; " /><br />
<p><br />
	<span style="color: rgb(138, 138, 138); font-family: dotum; line-height: 15px; ">ÃÖ»óÀ§ Adapter´Â interfaceÀÌ´Ù. Adapter´Â ¾Æ·¡¿Í °°Àº ±â´ÉÀ» ÇÏ´Â ¸Þ¼Òµå¸¦ Á¤ÀÇÇØ ³õ¾Ò´Ù.</span><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 15px; font-family: µ¸¿ò, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); " /><br />
	<span style="color: rgb(138, 138, 138); font-family: dotum; line-height: 15px; ">- AdapterView¿Í µ¥ÀÌÅÍ°£ÀÇ ¿¬°áÀ» Á¦°øÇÏ°í Ç×¸ñÀÇ ÁýÇÕÀ» °ü¸®ÇÏ´Â ±âº»ÀûÀÎ ¸Þ¼Òµå</span><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 15px; font-family: µ¸¿ò, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); " /><br />
	<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 15px; font-family: µ¸¿ò, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); " /><br />
	<span style="color: rgb(138, 138, 138); font-family: dotum; line-height: 15px; ">Adapter·ÎºÎÅÍ ListAdapter¿Í SpinnerAdapter interface°¡ ÆÄ»ýµÇ°Ô µÈ´Ù.</span><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 15px; font-family: µ¸¿ò, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); " /><br />
	<span style="color: rgb(138, 138, 138); font-family: dotum; line-height: 15px; ">- ListAdapter : ListView¿Í ¿¬°á¿¡ ÇÊ¿äÇÑ ¸Þ¼Òµå Á¤ÀÇ</span><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 15px; font-family: µ¸¿ò, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); " /><br />
	<span style="color: rgb(138, 138, 138); font-family: dotum; line-height: 15px; ">- SpinnerAdapter&nbsp;: Spinner¿Í ¿¬°á¿¡ ÇÊ¿äÇÑ ¸Þ¼Òµå Á¤ÀÇ</span><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 15px; font-family: µ¸¿ò, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); " /><br />
	<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 15px; font-family: µ¸¿ò, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); " /><br />
	<span style="color: rgb(138, 138, 138); font-family: dotum; line-height: 15px; ">BaseAdapter Ãß»ó Å¬·¡½º´Â SpinnerAdapter, ListAdapter interfaceÀÇ ¸Þ¼Òµå Áß ±âº»ÀûÀÎ °Íµé¸¸ ±¸ÇöÇØ ³õ¾Ò´Ù.&nbsp;</span><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 15px; font-family: µ¸¿ò, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); " /><br />
	<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 15px; font-family: µ¸¿ò, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); " /><br />
	<span style="color: rgb(138, 138, 138); font-family: dotum; line-height: 15px; ">ÃÖ ÇÏÀ§ 3°³ Å¬·¡½º´Â °¢ Ç×¸ñµéÀÇ ¿øº»ÀÌ ¾îµðÀÎ°¡¿¡ µû¶ó ³ª´µ°Ô µÈ´Ù.&nbsp;</span><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 15px; font-family: µ¸¿ò, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); " /><br />
	<span style="color: rgb(138, 138, 138); font-family: dotum; line-height: 15px; ">- ArrayAdapter&lt;T&gt; : °´Ã¼ ¹è¿­ÀÌ³ª ¸®¼Ò½º¿¡ Á¤ÀÇµÈ ¹è¿­·ÎºÎÅÍ µ¥ÀÌÅÍ¸¦ °¡Á®¿Â´Ù.</span><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 15px; font-family: µ¸¿ò, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); " /><br />
	<span style="color: rgb(138, 138, 138); font-family: dotum; line-height: 15px; ">- CursorAdapter : µ¥ÀÌÅÍº£ÀÌ½º·ÎºÎÅÍ µ¥ÀÌÅÍ¸¦ ±¸ÇÑ´Ù.</span><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 15px; font-family: µ¸¿ò, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); " /><br />
	<span style="color: rgb(138, 138, 138); font-family: dotum; line-height: 15px; ">- SimpleAdapter : XMLÆÄÀÏÀÇ Á¤ÀûÀÎ µ¥ÀÌÅÍ¸¦ ¿øº»À¸·Î »ç¿ëÇÑ´Ù.</span><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 15px; font-family: µ¸¿ò, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); " /><br />
	<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 15px; font-family: µ¸¿ò, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); " /><br />
	<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 15px; font-family: µ¸¿ò, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); " /><br />
	<span style="color: rgb(138, 138, 138); font-family: dotum; line-height: 15px; ">¾Æ·¡´Â ArrayAdapter¸¦ ÀÌ¿ëÇØ¼­ ListView¸¦ ±¸ÇöÇÑ ³»¿ëÀÌ´Ù.</span></p><br />
<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 15px; font-family: µ¸¿ò, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); " /><br />
<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 15px; font-family: µ¸¿ò, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); " /><br />
<table bgcolor="#ffffff" cellpadding="1" cellspacing="1" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 15px; font-family: µ¸¿ò, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); border-collapse: collapse; " width="673"><br />
	<tbody style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; "><br />
		<tr style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; "><br />
			<td style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 2px; padding-right: 2px; padding-bottom: 2px; padding-left: 2px; border-style: initial; border-color: initial; line-height: 1.3; background-color: rgb(238, 238, 238); border-bottom-color: rgb(71, 71, 71); border-bottom-style: solid; border-left-color: rgb(71, 71, 71); border-left-style: solid; border-top-color: rgb(71, 71, 71); border-top-style: solid; border-right-color: rgb(71, 71, 71); border-right-style: solid; " width="100%"><br />
				&nbsp;<strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; ">listtext.xml</strong></td><br />
		</tr><br />
		<tr style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; "><br />
			<td style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 2px; padding-right: 2px; padding-bottom: 2px; padding-left: 2px; border-style: initial; border-color: initial; line-height: 1.3; background-color: rgb(238, 238, 238); border-bottom-color: rgb(71, 71, 71); border-bottom-style: solid; border-left-color: rgb(71, 71, 71); border-left-style: solid; border-top-color: rgb(71, 71, 71); border-top-style: solid; border-right-color: rgb(71, 71, 71); border-right-style: solid; " width="100%"><br />
				&nbsp;&lt;LinearLayout xmlns:android=&quot;<a href="http://schemas.android.com/apk/res/android" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; color: rgb(138, 138, 138); ">http://schemas.android.com/apk/res/android</a>&quot;<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; " /><br />
				<span id="callbacknestbabtingdevtistorycom253996" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; width: 1px; height: 1px; float: right; "><embed allowscriptaccess="always" enablecontextmenu="false" flashvars="&amp;callbackId=babtingdevtistorycom253996&amp;host=http://babtingdev.tistory.com&amp;embedCodeSrc=http%3A%2F%2Fbabtingdev.tistory.com%2Fplugin%2FCallBack_bootstrapper%3F%26src%3Dhttp%3A%2F%2Fs1.daumcdn.net%2Fcfs.tistory%2Fv%2F0%2Fblog%2Fplugins%2FCallBack%2Fcallback%26id%3D253%26callbackId%3Dbabtingdevtistorycom253996%26destDocId%3Dcallbacknestbabtingdevtistorycom253996%26host%3Dhttp%3A%2F%2Fbabtingdev.tistory.com%26float%3Dleft" height="1" id="bootstrapperbabtingdevtistorycom253996" src="http://babtingdev.tistory.com/plugin/CallBack_bootstrapperSrc?nil_profile=tistory&amp;nil_type=copied_post" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; " swliveconnect="true" type="application/x-shockwave-flash" width="1" wmode="transparent"></embed></span>&nbsp;&nbsp;&nbsp; android:orientation=&quot;vertical&quot;<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; " /><br />
				&nbsp;&nbsp;&nbsp; android:layout_width=&quot;fill_parent&quot;<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; " /><br />
				&nbsp;&nbsp;&nbsp; android:layout_height=&quot;fill_parent&quot;<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; " /><br />
				&nbsp;&nbsp;&nbsp; &gt;<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; " /><br />
				&nbsp;&lt;ListView&nbsp;<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; " /><br />
				&nbsp;&nbsp;android:id=&quot;@+id/list&quot;<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; " /><br />
				&nbsp;&nbsp;android:layout_width=&quot;fill_parent&quot;<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; " /><br />
				&nbsp;&nbsp;android:layout_height=&quot;fill_parent&quot;<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; " /><br />
				&nbsp;/&gt;<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; " /><br />
				&lt;/LinearLayout&gt;</td><br />
		</tr><br />
	</tbody><br />
</table><br />
<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 15px; font-family: µ¸¿ò, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); " /><br />
<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 15px; font-family: µ¸¿ò, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); " /><br />
<table bgcolor="#ffffff" cellpadding="1" cellspacing="1" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 15px; font-family: µ¸¿ò, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); border-collapse: collapse; " width="673"><br />
	<tbody style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; "><br />
		<tr style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; "><br />
			<td style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 2px; padding-right: 2px; padding-bottom: 2px; padding-left: 2px; border-style: initial; border-color: initial; line-height: 1.3; background-color: rgb(238, 238, 238); border-bottom-color: rgb(71, 71, 71); border-bottom-style: solid; border-left-color: rgb(71, 71, 71); border-left-style: solid; border-top-color: rgb(71, 71, 71); border-top-style: solid; border-right-color: rgb(71, 71, 71); border-right-style: solid; " width="100%"><br />
				<strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; ">&nbsp;ListViewTestActivity.java</strong></td><br />
		</tr><br />
		<tr style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; "><br />
			<td style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 2px; padding-right: 2px; padding-bottom: 2px; padding-left: 2px; border-style: initial; border-color: initial; line-height: 1.3; background-color: rgb(238, 238, 238); border-bottom-color: rgb(71, 71, 71); border-bottom-style: solid; border-left-color: rgb(71, 71, 71); border-left-style: solid; border-top-color: rgb(71, 71, 71); border-top-style: solid; border-right-color: rgb(71, 71, 71); border-right-style: solid; " width="100%"><br />
				&nbsp;public class ListViewTestActivity extends Activity {<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; " /><br />
				&nbsp;&nbsp;&nbsp; /** Called when the activity is first created. */<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; " /><br />
				&nbsp;&nbsp;&nbsp; @Override<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; " /><br />
				&nbsp;&nbsp;&nbsp; public void onCreate(Bundle savedInstanceState) {<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; " /><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; super.onCreate(savedInstanceState);<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; " /><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; setContentView(R.layout.listtest);<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; " /><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; " /><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ArrayList&lt;String&gt; arGeneral = new ArrayList&lt;String&gt;();<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; " /><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; arGeneral.add(&quot;±èÀ¯½Å&quot;);<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; " /><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; arGeneral.add(&quot;ÀÌ¼ø½Å&quot;);<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; " /><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; arGeneral.add(&quot;°­°¨Âù&quot;);<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; " /><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; arGeneral.add(&quot;À»Áö¹®´ö&quot;);<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; " /><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; " /><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; "><font color="#e31600" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; ">ArrayAdapter&lt;String&gt; adapter;<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; " /><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;adapter = new ArrayAdapter&lt;String&gt;(this, android.R.layout.simple_list_item_1, arGeneral);<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; " /><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; " /><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ListView list = (ListView)findViewById(R.id.list);<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; " /><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;list.setAdapter(adapter);</font></strong><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; " /><br />
				&nbsp;&nbsp;&nbsp; }<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; " /><br />
				}</td><br />
		</tr><br />
	</tbody><br />
</table><br />
<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 15px; font-family: µ¸¿ò, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); " /><br />
<p><br />
	<span style="color: rgb(138, 138, 138); font-family: dotum; line-height: 15px; ">ArrayAdapterÀÇ »ý¼ºÀÚ´Â ¾Æ·¡¿Í °°´Ù.</span><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 15px; font-family: µ¸¿ò, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); " /><br />
	<span style="color: rgb(138, 138, 138); font-family: dotum; line-height: 15px; ">ArrayAdapter(Context context, int textViewResourced, List&lt;T&gt; objects)</span><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 15px; font-family: µ¸¿ò, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); " /><br />
	<span style="color: rgb(138, 138, 138); font-family: dotum; line-height: 15px; ">ArrayAdapter(Context context, int textViewResourced, T[] objects)</span><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 15px; font-family: µ¸¿ò, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); " /><br />
	<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 15px; font-family: µ¸¿ò, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); " /><br />
	<span style="color: rgb(138, 138, 138); font-family: dotum; line-height: 15px; ">Ã¹¹øÂ° ÀÎ¼ö´Â activity ¸¦ ³Ñ°ÜÁÖ¸é µÇ°í µÎ¹øÂ° ÀÎ¼ö´Â Ç×¸ñÀ» Ç¥½ÃÇÒ ·¹ÀÌ¾Æ¿ôÀÇ ¸®¼Ò½º IDÀÌ´Ù.&nbsp; Á÷Á¢ ·¹ÀÌ¾Æ¿ôÀ» Á¤ÀÇÇÒ ¼ö ÀÖÁö¸¸ ¾Èµå·ÎÀÌµå°¡ Á¦°øÇÏ´Â ·¹ÀÌ¾Æ¿ôÀ» »ç¿ëÇÒ ¼öµµ ÀÖ´Ù. ¾Æ·¡´Â ¾Èµå·ÎÀÌµå°¡ Á¦°øÇÏ´Â ·¹ÀÌ¾Æ¿ôµéÀÌ´Ù.</span></p><br />
<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 15px; font-family: µ¸¿ò, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); " /><br />
<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 15px; font-family: µ¸¿ò, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); " /><br />
<table bgcolor="#ffffff" cellpadding="1" cellspacing="1" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 15px; font-family: µ¸¿ò, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); border-collapse: collapse; " width="673"><br />
	<tbody style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; "><br />
		<tr style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; "><br />
			<td style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 2px; padding-right: 2px; padding-bottom: 2px; padding-left: 2px; border-style: initial; border-color: initial; line-height: 1.3; background-color: rgb(238, 238, 238); border-bottom-color: rgb(142, 142, 142); border-bottom-style: solid; border-left-color: rgb(142, 142, 142); border-left-style: solid; border-top-color: rgb(142, 142, 142); border-top-style: solid; border-right-color: rgb(142, 142, 142); border-right-style: solid; " width="50%"><br />
				<strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; ">&nbsp;¸®¼Ò½º ID</strong></td><br />
			<td style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 2px; padding-right: 2px; padding-bottom: 2px; padding-left: 2px; border-style: initial; border-color: initial; line-height: 1.3; background-color: rgb(238, 238, 238); border-bottom-color: rgb(142, 142, 142); border-bottom-style: solid; border-left-color: rgb(142, 142, 142); border-left-style: solid; border-top-color: rgb(142, 142, 142); border-top-style: solid; border-right-color: rgb(142, 142, 142); border-right-style: solid; " width="50%"><br />
				<strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; ">&nbsp;¼³¸í&nbsp;</strong></td><br />
		</tr><br />
		<tr style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; "><br />
			<td style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 2px; padding-right: 2px; padding-bottom: 2px; padding-left: 2px; border-style: initial; border-color: initial; line-height: 1.3; background-color: rgb(238, 238, 238); border-bottom-color: rgb(142, 142, 142); border-bottom-style: solid; border-left-color: rgb(142, 142, 142); border-left-style: solid; border-top-color: rgb(142, 142, 142); border-top-style: solid; border-right-color: rgb(142, 142, 142); border-right-style: solid; " width="50%"><br />
				&nbsp;simple_list_item_1</td><br />
			<td style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 2px; padding-right: 2px; padding-bottom: 2px; padding-left: 2px; border-style: initial; border-color: initial; line-height: 1.3; background-color: rgb(238, 238, 238); border-bottom-color: rgb(142, 142, 142); border-bottom-style: solid; border-left-color: rgb(142, 142, 142); border-left-style: solid; border-top-color: rgb(142, 142, 142); border-top-style: solid; border-right-color: rgb(142, 142, 142); border-right-style: solid; " width="50%"><br />
				&nbsp;ÇÏ³ªÀÇ ÅØ½ºÆ® ºä·Î ±¸¼ºµÈ ·¹ÀÌ¾Æ¿ô</td><br />
		</tr><br />
		<tr style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; "><br />
			<td style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 2px; padding-right: 2px; padding-bottom: 2px; padding-left: 2px; border-style: initial; border-color: initial; line-height: 1.3; background-color: rgb(238, 238, 238); border-bottom-color: rgb(142, 142, 142); border-bottom-style: solid; border-left-color: rgb(142, 142, 142); border-left-style: solid; border-top-color: rgb(142, 142, 142); border-top-style: solid; border-right-color: rgb(142, 142, 142); border-right-style: solid; " width="50%"><br />
				&nbsp;simple_list_item_2</td><br />
			<td style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 2px; padding-right: 2px; padding-bottom: 2px; padding-left: 2px; border-style: initial; border-color: initial; line-height: 1.3; background-color: rgb(238, 238, 238); border-bottom-color: rgb(142, 142, 142); border-bottom-style: solid; border-left-color: rgb(142, 142, 142); border-left-style: solid; border-top-color: rgb(142, 142, 142); border-top-style: solid; border-right-color: rgb(142, 142, 142); border-right-style: solid; " width="50%"><br />
				&nbsp;µÎ°³ÀÇ ÅØ½ºÆ® ºä·Î ±¸¼ºµÈ ·¹ÀÌ¾Æ¿ô</td><br />
		</tr><br />
		<tr style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; "><br />
			<td style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 2px; padding-right: 2px; padding-bottom: 2px; padding-left: 2px; border-style: initial; border-color: initial; line-height: 1.3; background-color: rgb(238, 238, 238); border-bottom-color: rgb(142, 142, 142); border-bottom-style: solid; border-left-color: rgb(142, 142, 142); border-left-style: solid; border-top-color: rgb(142, 142, 142); border-top-style: solid; border-right-color: rgb(142, 142, 142); border-right-style: solid; " width="50%"><br />
				&nbsp;simple_list_item_checked</td><br />
			<td style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 2px; padding-right: 2px; padding-bottom: 2px; padding-left: 2px; border-style: initial; border-color: initial; line-height: 1.3; background-color: rgb(238, 238, 238); border-bottom-color: rgb(142, 142, 142); border-bottom-style: solid; border-left-color: rgb(142, 142, 142); border-left-style: solid; border-top-color: rgb(142, 142, 142); border-top-style: solid; border-right-color: rgb(142, 142, 142); border-right-style: solid; " width="50%"><br />
				&nbsp;¿À¸¥ÂÊ¿¡ Ã¼Å©Ç¥½Ã°¡ ³ªÅ¸³ª´Â ·¹ÀÌ¾Æ¿ô</td><br />
		</tr><br />
		<tr style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; "><br />
			<td style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 2px; padding-right: 2px; padding-bottom: 2px; padding-left: 2px; border-style: initial; border-color: initial; line-height: 1.3; background-color: rgb(238, 238, 238); border-bottom-color: rgb(142, 142, 142); border-bottom-style: solid; border-left-color: rgb(142, 142, 142); border-left-style: solid; border-top-color: rgb(142, 142, 142); border-top-style: solid; border-right-color: rgb(142, 142, 142); border-right-style: solid; " width="50%"><br />
				&nbsp;simple_list_item_single_choice</td><br />
			<td style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 2px; padding-right: 2px; padding-bottom: 2px; padding-left: 2px; border-style: initial; border-color: initial; line-height: 1.3; background-color: rgb(238, 238, 238); border-bottom-color: rgb(142, 142, 142); border-bottom-style: solid; border-left-color: rgb(142, 142, 142); border-left-style: solid; border-top-color: rgb(142, 142, 142); border-top-style: solid; border-right-color: rgb(142, 142, 142); border-right-style: solid; " width="50%"><br />
				&nbsp;¿À¸¥ÂÊ¿¡ ¶óµð¿À ¹öÆ°ÀÌ ³ªÅ¸³ª´Â ·¹ÀÌ¾Æ¿ô</td><br />
		</tr><br />
		<tr style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; "><br />
			<td style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 2px; padding-right: 2px; padding-bottom: 2px; padding-left: 2px; border-style: initial; border-color: initial; line-height: 1.3; background-color: rgb(238, 238, 238); border-bottom-color: rgb(142, 142, 142); border-bottom-style: solid; border-left-color: rgb(142, 142, 142); border-left-style: solid; border-top-color: rgb(142, 142, 142); border-top-style: solid; border-right-color: rgb(142, 142, 142); border-right-style: solid; " width="50%"><br />
				&nbsp;simple_list_item_multiple_choice</td><br />
			<td style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 2px; padding-right: 2px; padding-bottom: 2px; padding-left: 2px; border-style: initial; border-color: initial; line-height: 1.3; background-color: rgb(238, 238, 238); border-bottom-color: rgb(142, 142, 142); border-bottom-style: solid; border-left-color: rgb(142, 142, 142); border-left-style: solid; border-top-color: rgb(142, 142, 142); border-top-style: solid; border-right-color: rgb(142, 142, 142); border-right-style: solid; " width="50%"><br />
				&nbsp;¿À¸¥ÂÊ¿¡ Ã¼Å© ¹öÆ°ÀÌ ³ªÅ¸³ª´Â ·¹ÀÌ¾Æ¿ô</td><br />
		</tr><br />
	</tbody><br />
</table><br />
<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 15px; font-family: µ¸¿ò, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); " /><br />
<p><br />
	<span style="color: rgb(138, 138, 138); font-family: dotum; line-height: 15px; ">¾Æ·¡´Â ½ÇÇà°á°ú È­¸éÀÌ´Ù.</span></p><br />
<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 15px; font-family: µ¸¿ò, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); " /><br />
<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 15px; font-family: µ¸¿ò, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); " /><br />
<div class="imageblock center" style="margin-top: 5px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 15px; font-family: µ¸¿ò, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); text-align: center; clear: both; "><br />
	<img alt="" height="482" src="http://cfile1.uf.tistory.com/image/146085334C4C608F355FB1" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; cursor: pointer; " width="683" /></div><br />
<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 15px; font-family: µ¸¿ò, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); " /><br />
<p><br />
	<span style="color: rgb(138, 138, 138); font-family: dotum; line-height: 15px; ">À§ ÄÚµå¿¡¼­´Â ÄÚµå»ó¿¡ ¹®ÀÚ¿­ ¹è¿­ÀÌ Á÷Á¢ µé¾î°¡ ÀÖ´Âµ¥ ÀÌ·¸°Ô µÇ¸é ÀçÈ°¿ëµµ ºÒ°¡´ÉÇÒ »Ó´õ·¯ °ü¸®µµ ½±Áö ¾Ê´Ù.</span><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 15px; font-family: µ¸¿ò, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); " /><br />
	<span style="color: rgb(138, 138, 138); font-family: dotum; line-height: 15px; ">º°µµ Class·Î µû·Î °ü¸®ÇØµµ µÇ°ÚÁö¸¸ xml·Î µû·Î ºÐ¸®½ÃÅ°´Â ¹ýÀ» ¾Ë¾Æº¸ÀÚ.</span><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 15px; font-family: µ¸¿ò, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); " /><br />
	<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 15px; font-family: µ¸¿ò, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); " /><br />
	<span style="color: rgb(138, 138, 138); font-family: dotum; line-height: 15px; ">valuesÆú´õ¿¡ arrays.xml ÀÌ¶ó´Â ÆÄÀÏÀ» »ý¼ºÇÏ°í ¾Æ·¡¿Í °°ÀÌ ÀÛ¼ºÇØ º¸ÀÚ.</span></p><br />
<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 15px; font-family: µ¸¿ò, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); " /><br />
<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 15px; font-family: µ¸¿ò, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); " /><br />
<table bgcolor="#ffffff" cellpadding="1" cellspacing="1" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 15px; font-family: µ¸¿ò, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); border-collapse: collapse; " width="673"><br />
	<tbody style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; "><br />
		<tr style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; "><br />
			<td style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 2px; padding-right: 2px; padding-bottom: 2px; padding-left: 2px; border-style: initial; border-color: initial; line-height: 1.3; background-color: rgb(238, 238, 238); border-bottom-color: rgb(71, 71, 71); border-bottom-style: solid; border-left-color: rgb(71, 71, 71); border-left-style: solid; border-top-color: rgb(71, 71, 71); border-top-style: solid; border-right-color: rgb(71, 71, 71); border-right-style: solid; " width="100%"><br />
				&nbsp;arrays,.ml</td><br />
		</tr><br />
		<tr style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; "><br />
			<td style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 2px; padding-right: 2px; padding-bottom: 2px; padding-left: 2px; border-style: initial; border-color: initial; line-height: 1.3; background-color: rgb(238, 238, 238); border-bottom-color: rgb(71, 71, 71); border-bottom-style: solid; border-left-color: rgb(71, 71, 71); border-left-style: solid; border-top-color: rgb(71, 71, 71); border-top-style: solid; border-right-color: rgb(71, 71, 71); border-right-style: solid; " width="100%"><br />
				&nbsp;&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; " /><br />
				&lt;resources&gt;<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; " /><br />
				&nbsp;&lt;<strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; "><font color="#e31600" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; ">string-array</font></strong>&nbsp;name=&quot;country&quot;&gt;<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; " /><br />
				&nbsp;&nbsp;&lt;item&gt;½Å¶ó&lt;/item&gt;<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; " /><br />
				&nbsp;&nbsp;&lt;item&gt;°í±¸·Á&lt;/item&gt;<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; " /><br />
				&nbsp;&nbsp;&lt;item&gt;¹éÁ¦&lt;/item&gt;<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; " /><br />
				&nbsp;&lt;/string-array&gt;<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; " /><br />
				&lt;/resources&gt;</td><br />
		</tr><br />
	</tbody><br />
</table><br />
<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 15px; font-family: µ¸¿ò, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); " /><br />
<p><br />
	<span style="color: rgb(138, 138, 138); font-family: dotum; line-height: 15px; ">À§ arrays.xml¿¡ Á¤ÀÇµÇ¾î ÀÕ´Â ¸®¼Ò½º¸¦ »ç¿ëÇÏ´Â Adapter¸¦ »ý¼ºÇÒ¶§´Â ArrayAdapter¿¡ Á¤ÀÇµÇ¾î ÀÖ´Â static ¸Þ¼Òµå¸¦ »ç¿ëÇÑ´Ù.</span></p><br />
<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 15px; font-family: µ¸¿ò, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); " /><br />
<div class="txc-textbox" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-style: initial; border-color: initial; border-image: initial; line-height: 15px; font-family: µ¸¿ò, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); background-color: rgb(219, 232, 251); border-bottom-color: rgb(121, 165, 228); border-bottom-style: solid; border-left-color: rgb(121, 165, 228); border-left-style: solid; border-top-color: rgb(121, 165, 228); border-top-style: solid; border-right-color: rgb(121, 165, 228); border-right-style: solid; "><br />
	static ArrayAdapter&lt;CharSequence&gt; createFromResource (Context context, in textArrayResId, int textViewResId)</div><br />
<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 15px; font-family: µ¸¿ò, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); " /><br />
<table bgcolor="#ffffff" cellpadding="1" cellspacing="1" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; line-height: 15px; font-family: µ¸¿ò, Dotum, AppleGothic, sans-serif; color: rgb(138, 138, 138); border-collapse: collapse; " width="673"><br />
	<tbody style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; "><br />
		<tr style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; "><br />
			<td style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 2px; padding-right: 2px; padding-bottom: 2px; padding-left: 2px; border-style: initial; border-color: initial; line-height: 1.3; background-color: rgb(238, 238, 238); border-bottom-color: rgb(71, 71, 71); border-bottom-style: solid; border-left-color: rgb(71, 71, 71); border-left-style: solid; border-top-color: rgb(71, 71, 71); border-top-style: solid; border-right-color: rgb(71, 71, 71); border-right-style: solid; " width="100%"><br />
				&nbsp;<strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; ">ListViewTestActivity.java</strong></td><br />
		</tr><br />
		<tr style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; "><br />
			<td style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 2px; padding-right: 2px; padding-bottom: 2px; padding-left: 2px; border-style: initial; border-color: initial; line-height: 1.3; background-color: rgb(238, 238, 238); border-bottom-color: rgb(71, 71, 71); border-bottom-style: solid; border-left-color: rgb(71, 71, 71); border-left-style: solid; border-top-color: rgb(71, 71, 71); border-top-style: solid; border-right-color: rgb(71, 71, 71); border-right-style: solid; " width="100%"><br />
				&nbsp;...<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; " /><br />
				&nbsp;&nbsp; adapter =&nbsp;<strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; "><font color="#e31600" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; font-size: 8pt; "><span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; font-size: 9pt; ">ArrayAdapter.createFromResource(this, R.array.country, android.R.layout.simple_list_item_1);</span></span></font></strong><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3; " /><br />
				&nbsp;...</td><br />
		</tr><br />
	</tbody><br />
</table><br />
<p><br />
	&nbsp;</p><br />
]]]></description>
		<pubDate>Array</pubDate>
		</item>

		<item>
		<category><![CDATA[[]]]></category>
		<title><![CDATA[[SharedPreferences]]]></title>
		<link>http://www.sarangnamu.net/basic/basic_view.php?no=5209</link>
		<description><![CDATA[[http://cranix.net/305<br />
<br />
[code]<br />
package net.cranix.android.preftest;<br />
<br />
import android.app.Activity; <br />
import android.content.SharedPreferences; <br />
import android.os.Bundle; <br />
import android.widget.EditText;<br />
<br />
public class MainActivity extends Activity { <br />
    private SharedPreferences pref = null; <br />
    private EditText nameEditText = null; <br />
    private EditText emailEditText = null; <br />
    private EditText phoneEditText = null; <br />
    @Override <br />
    public void onCreate(Bundle savedInstanceState) { <br />
        super.onCreate(savedInstanceState); <br />
        setContentView(R.layout.main); <br />
        pref = getSharedPreferences("net.cranix.android.preftest",Activity.MODE_PRIVATE); <br />
        nameEditText = (EditText) findViewById(R.id.nameEditText); <br />
        emailEditText = (EditText) findViewById(R.id.emailEditText); <br />
        phoneEditText = (EditText) findViewById(R.id.phoneEditText); <br />
        nameEditText.setText(pref.getString("name", "")); <br />
        emailEditText.setText(pref.getString("email", "")); <br />
        phoneEditText.setText(pref.getString("phone", "")); <br />
    } <br />
    @Override <br />
    protected void onStop() { <br />
        super.onStop(); <br />
        SharedPreferences.Editor editor = pref.edit(); <br />
        editor.putString("name", nameEditText.getText().toString()); <br />
        editor.putString("email", emailEditText.getText().toString()); <br />
        editor.putString("phone", phoneEditText.getText().toString()); <br />
        editor.commit(); <br />
    } <br />
}<br />
[/code]<br />
<br />
ÀÌ·¸°Ô ÇöÀç È­¸é Á¤º¸ °°Àº ÀÛÀº Á¤º¸µéÀ» ÀúÀåÇÏ±â À§ÇØ¼­ ¾Èµå·ÎÀÌµå´Â SharedPreferences ¶ó´Â Å¬·¡½º¸¦ Á¦°øÇÑ´Ù.<br />
<br />
ÀÌ Å¬·¡½º´Â À§ ¼Ò½º ¿¡¼­¿Í °°ÀÌ getSharedPreferences ¸Þ¼Òµå·Î °´Ã¼¸¦ »ý¼º ÇÒ ¼ö ÀÖ´Ù.<br />
<br />
ÀÌ·¸°Ô »ý¼ºµÈ SharedPreferences °´Ã¼´Â getString °ú °°Àº getXXX ÇüÅÂÀÇ ¸Þ¼Òµå·Î °ªÀ» ¾ò¾î ¿Ã ¼ö ÀÖ´Ù.<br />
<br />
À§ ¼Ò½º¿¡¼­ Activity °¡ Á¾·áµÇ´Â onStop ¸Þ¼Òµå ¿¡¼­´Â SharedPreferences ¿¡´Ù°¡ ÇöÀç È¯°æÀ» ÀúÀåÇÏ°í ÀÖ´Ù.<br />
<br />
SharedPreferneces ´Â pref.edit() ·Î Editor °´Ã¼¸¦ ¾òÀºÈÄ putString À¸·Î °ªÀ» º¯°æÇÑ´Ù. ´Ù º¯°æÇßÀ¸¸é editor.commit() ÇÔ¼ö·Î º¯°æµÈ ³»¿ëÀ» ÀúÀåÇÑ´Ù.<br />
<br />
 <br />
<br />
À§¿¡¼­µµ ¾ð±ÞÇßµíÀÌ SharedPreferences ´Â ÀÓ½Ãº¯¼ö³ª ÇöÀç UI Á¤º¸°°Àº ÀÛÀº Å©±âÀÇ Á¤º¸¸¦ ÀúÀåÇÏ±â ÀûÇÕÇÏ´Ù. Á¶±Ý ´õ Å« µ¥ÀÌÅÍ´Â Á÷Á¢ ÆÄÀÏ¿¡ ¾²°Å³ª SQL À» »ç¿ëÇÏ¿© DB ¿¡ ÀúÀåÇÏµµ·Ï ÇÏ¿©¾ß ÇÑ´Ù.<br />
<br />
 <br />
<br />
±×·¸´Ù¸é ÀÌ µ¥ÀÌÅÍ´Â ¾îµð¿¡ ÀúÀåµÇ´Â °ÍÀÏ±î?<br />
<br />
DDMS ³ª adb ÅøÀ» ÀÌ¿ëÇÏ¿© È®ÀÎÇØ º¸¸é ¾Æ·¡¿Í °°Àº xml ÆÄÀÏÀÌ ¾îÇÃ¸®ÄÉÀÌ¼Ç µð·ºÅä¸®¿¡ »ý±ä °ÍÀ» º¼ ¼ö ÀÖ´Ù.<br />
[code]<br />
# pwd <br />
pwd <br />
/data/data/net.cranix.android.preftest <br />
# cd shared_prefs <br />
cd shared_prefs <br />
# ls <br />
ls <br />
net.cranix.android.preftest.xml <br />
# cat net.cranix.android.preftest.xml <br />
cat net.cranix.android.preftest.xml <br />
<?xml version='1.0' encoding='utf-8' standalone='yes' ?> <br />
<map> <br />
<string name="email">2</string> <br />
<string name="phone">3</string> <br />
<string name="name">1</string> <br />
</map> <br />
#<br />
[/code]]]]></description>
		<pubDate>Array</pubDate>
		</item>

		<item>
		<category><![CDATA[[]]]></category>
		<title><![CDATA[[apk signing]]]></title>
		<link>http://www.sarangnamu.net/basic/basic_view.php?no=5206</link>
		<description><![CDATA[[<p><br />
	&nbsp;</p><br />
<h2 style="color: rgb(0, 0, 0); font-family: AppleGothic, Dotum, sans-serif; text-align: justify; "><br />
	<a href="http://www.androidpub.com/100165">http://www.androidpub.com/100165</a></h2><br />
<h2 style="color: rgb(0, 0, 0); font-family: AppleGothic, Dotum, sans-serif; text-align: justify; "><br />
	&nbsp;</h2><br />
<h2 style="color: rgb(0, 0, 0); font-family: AppleGothic, Dotum, sans-serif; text-align: justify; "><br />
	Android APK signing °ú ³»º¸³»±â</h2><br />
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); font-family: AppleGothic, Dotum, sans-serif; line-height: 19px; text-align: justify; "><br />
	&nbsp;</p><br />
<h4 style="color: rgb(0, 0, 0); font-family: AppleGothic, Dotum, sans-serif; line-height: 19px; text-align: justify; "><br />
	°³ÀÎ ¼­¸í ÀÎÁõ¼­ ¸¸µé±â</h4><br />
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); font-family: AppleGothic, Dotum, sans-serif; line-height: 19px; text-align: justify; "><br />
	¾Èµå·ÎÀÌµå ¸¶ÄÏ¿¡ ¹èÆ÷¸¦ ÇÏ±â À§ÇØ¼­´Â&nbsp;<b>¾ÖÇÃ¸®ÄÉÀÌ¼Ç¿¡ ¼­¸í</b>À» ÇØÁÖ¾î¾ß ÇÑ´Ù. ÀÚ½ÅÀÌ ÀÎÁõÇÏ´Â ¾ÖÇÃ¸®ÄÉÀÌ¼ÇÀÓÀ» ¼­¸íÀ» ÅëÇØ¼­ ¾Ë¸®´Â °ÍÀÌ´Ù.</p><br />
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); font-family: AppleGothic, Dotum, sans-serif; line-height: 19px; text-align: justify; "><br />
	±×·¯±â À§ÇØ¼­´Â °³ÀÎ Å°¸¦ Æ÷ÇÔÇÏ´Â ¾ÏÈ£È­µÈ ¼­¸í ÆÄÀÏÀÌ ÀÖ´Â keystore°¡ ÇÊ¿äÇÏ°í ÀÌ¸¦ JDK¿¡¼­ Á¦°øÇÏ´Â jarsigner ·Î °ø°³Å°·Î ¼­¸íÇÏ°Ô µÈ´Ù.</p><br />
<blockquote style="color: rgb(0, 0, 0); font-family: AppleGothic, Dotum, sans-serif; line-height: 19px; text-align: justify; "><br />
	<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br />
		ÀÌÅ¬¸³½º¿¡¼­ Android SDK¸¦ ÅëÇØ¼­ ¾ÖÇÃ¸®ÄÉÀÌ¼ÇÀ» ½ÇÇàÇÒ ¶§¸¶´Ù ÀÚµ¿À¸·Î µð¹ö±× ¼­¸íÀ» ¸¸µé°í ÀÌ ¼­¸íÀÌ ¾ÖÇÃ¸®ÄÉÀÌ¼ÇÀÌ »ç¿ëµÉ ¶§¸¶´Ù ¼­¸íµÇ±â ¶§¹®¿¡ ´«¿¡ º¸ÀÌÁö´Â ¾ÊÁö¸¸ Ç×»ó ¾ÖÇÃ¸®ÄÉÀÌ¼ÇÀ» ¼­¸íµÇ°í ÀÖ´Ù.</p><br />
	<ul><br />
		<li><br />
			<font size="2">µð¹ö±× ¼­¸í À§Ä¡: ~/.android/debug.keystore</font></li><br />
	</ul><br />
	<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br />
		&nbsp;</p><br />
</blockquote><br />
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); font-family: AppleGothic, Dotum, sans-serif; line-height: 19px; text-align: justify; "><br />
	&nbsp;</p><br />
<h4 style="color: rgb(0, 0, 0); font-family: AppleGothic, Dotum, sans-serif; line-height: 19px; text-align: justify; "><br />
	¾ÖÇÃ¸®ÄÉÀÌ¼Ç ¼­¸í°ú ±¸±ÛAPI Å° ÀÎÁõ ½Ã³ª¸®¿À</h4><br />
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); font-family: AppleGothic, Dotum, sans-serif; line-height: 19px; text-align: justify; "><br />
	keytool·Î Å° ½ÖÀ» »ý¼ºÇÏ¸é »ç¿ëÀÚ È¨ µð·ºÅä¸®ÀÇ Æ¯Á¤ÇÑ °÷¿¡ keystore·Î¼­ ÀúÀåµÈ´Ù. ºñ¹Ð Å°´Â Å° ÀúÀå¼Ò¿¡ ¾ÏÈ£È­ µÇ¾î º¸È£µÇ¸ç ÀÌ ºñ¹Ð Å°·Î ¾ÖÇÃ¸®ÄÉÀÌ¼ÇÀ» ¼­¸íÇÏ°Ô µÈ´Ù. - Æ¯Á¤ Á¶Á÷ÀÇ °æ¿ì °øÀÎ ÀÎÁõ¼­ ÀÌ¿ë -</p><br />
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); font-family: AppleGothic, Dotum, sans-serif; line-height: 19px; text-align: justify; "><br />
	±¸±Û API¸¦ ÀÌ¿ëÇÏ·Á¸é API¿ë Å°°¡ ÇÊ¿äÇÑµ¥ ÀÌ ¶§ ÀÎÁõ ¼­¸í¼­ÀÇ finger print(MD5)°¡ ÇÊ¿äÇÏ´Ù</p><br />
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); font-family: AppleGothic, Dotum, sans-serif; line-height: 19px; text-align: justify; "><br />
	¾Èµå·ÎÀÌµå´Â °ø°³ Å°¸¦ ÀÌ¿ëÇÏ¿© ¼­¸í ÀÎÁõ¼­¸¦ ÇØµ¶ÇÏ¿© »ç¿ëÇÏ´Âµ¥ ¾ÖÇÃ¸®ÄÉÀÌ¼ÇÀÌ ¼³Ä¡ µÉ ¶§¸¸ ¼­¸í ÀÎÁõ¼­¸¦ °Ë»çÇÏ±â ¶§¹®¿¡ ¼³Ä¡ ÈÄ¿¡´Â ÀÎÁõ¼­³ª Å°°¡ ¸¸·áµÇµµ ½ÇÇàÀÌ °¡´ÉÇÏ´Ù.</p><br />
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); font-family: AppleGothic, Dotum, sans-serif; line-height: 19px; text-align: justify; "><br />
	&nbsp;</p><br />
<h4 style="color: rgb(0, 0, 0); font-family: AppleGothic, Dotum, sans-serif; line-height: 19px; text-align: justify; "><br />
	°³ÀÎ ÀÎÁõ¼­ÀÇ È¿¿ë</h4><br />
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); font-family: AppleGothic, Dotum, sans-serif; line-height: 19px; text-align: justify; "><br />
	º»ÀÎÀÌ °³¹ßÇÑ ¾ÖÇÃ¸®ÄÉÀÌ¼ÇÀÓÀ» ¾Ë¸®°í °ü¸®¸¦ À§ÇØ¼­´Â °¡´ÉÇÏ¸é ÇÏ³ªÀÇ ÀÎÁõ¼­·Î °ü¸®ÇÏ´Â °ÍÀÌ Æí¸®ÇÒ °ÍÀÌ´Ù.</p><br />
<ul style="color: rgb(0, 0, 0); font-family: AppleGothic, Dotum, sans-serif; line-height: 19px; text-align: justify; "><br />
	<li><br />
		¾÷±×·¹ÀÌµå °£ÆíÈ­</li><br />
	<li><br />
		¿©·¯ ¾ÖÇÃ¸®ÄÉÀÌ¼ÇÀ» ÇÏ³ªÀÇ ÇÁ·Î¼¼½º·Î ½ÇÇà</li><br />
	<li><br />
		ÄÚµå, µ¥ÀÌÅÍ °øÀ¯</li><br />
</ul><br />
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); font-family: AppleGothic, Dotum, sans-serif; line-height: 19px; text-align: justify; "><br />
	&nbsp;</p><br />
<h4 style="color: rgb(0, 0, 0); font-family: AppleGothic, Dotum, sans-serif; line-height: 19px; text-align: justify; "><br />
	¼­¸í ÀÎÁõ¼­ ¸¸µé±â</h4><br />
<h4 style="color: rgb(0, 0, 0); font-family: AppleGothic, Dotum, sans-serif; line-height: 19px; text-align: justify; "><br />
	key store »ý¼º</h4><br />
<ol class="code" style="color: rgb(0, 0, 0); font-family: AppleGothic, Dotum, sans-serif; line-height: 19px; text-align: justify; "><br />
	<li><br />
		keytool -genkey -v -keystore myandroid.keystore -alias mykeystore -keyalg RSA -validity 10000</li><br />
</ol><br />
<ul style="color: rgb(0, 0, 0); font-family: AppleGothic, Dotum, sans-serif; line-height: 19px; text-align: justify; "><br />
	<li><br />
		Å° ½ÖÀ» ¸¸µé¸ç&nbsp;<b>myandroid.keystore¿¡ ÀúÀå</b>&nbsp;¸ç ÀÌ Å°´Â&nbsp;<b>mykeystore ¶ó´Â ÀÌ¸§À¸·Î Á¢±Ù</b>ÀÌ °¡´ÉÇÏ´Ù. Å°¸¦ ¸¸µå´Â ¾Ë°í¸®ÁòÀº RSAÀÌ°í 10000ÀÏ(27³â)°£ À¯È¿ÇÏ´Ù.</li><br />
</ul><br />
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); font-family: AppleGothic, Dotum, sans-serif; line-height: 19px; text-align: justify; "><br />
	&nbsp;</p><br />
<h4 style="color: rgb(0, 0, 0); font-family: AppleGothic, Dotum, sans-serif; line-height: 19px; text-align: justify; "><br />
	finger print È®ÀÎ</h4><br />
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); font-family: AppleGothic, Dotum, sans-serif; line-height: 19px; text-align: justify; "><br />
	keytool -list ·Î SDKÀÇ ÀÎÁõ¼­ÀÇ MD5 Áö¹®À» È®ÀÎ ÇÒ ¼ö ÀÖ´Ù.</p><br />
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); font-family: AppleGothic, Dotum, sans-serif; line-height: 19px; text-align: justify; "><br />
	&nbsp;</p><br />
<ol class="code" style="color: rgb(0, 0, 0); font-family: AppleGothic, Dotum, sans-serif; line-height: 19px; text-align: justify; "><br />
	<li><br />
		keytool -list -alias mykeystore -keystore myandroid.keystore</li><br />
	<li><br />
		keystore ¾ÏÈ£¸¦ ÀÔ·ÂÇÏ½Ê½Ã¿À:&nbsp;</li><br />
</ol><br />
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); font-family: AppleGothic, Dotum, sans-serif; line-height: 19px; text-align: justify; "><br />
	&nbsp;</p><br />
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); font-family: AppleGothic, Dotum, sans-serif; line-height: 19px; text-align: justify; "><br />
	&nbsp;</p><br />
<h4 style="color: rgb(0, 0, 0); font-family: AppleGothic, Dotum, sans-serif; line-height: 19px; text-align: justify; "><br />
	¾ÖÇÃ¸®ÄÉÀÌ¼Ç ¼­¸í</h4><br />
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); font-family: AppleGothic, Dotum, sans-serif; line-height: 19px; text-align: justify; "><br />
	&nbsp;</p><br />
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); font-family: AppleGothic, Dotum, sans-serif; line-height: 19px; text-align: justify; "><br />
	1_ ¸ÕÀú ¼­¸íÀÌ ¾ÈµÈ ¾ÖÇÃ¸®ÄÉÀÌ¼Ç(.apk)¸¦ ¸¸µç´Ù: Eclipse¿¡¼­ ÇÁ·ÎÁ§Æ® ¼±ÅÃÈÄ ÄÁÅØ½ºÆ® ¸Þ´º(¿À¸¥ÂÊ ¸¶¿ì½º Å¬¸¯)¿¡¼­ Android Tools -&gt; Export Unsigned Application Package..</p><br />
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; color: rgb(0, 0, 0); font-family: AppleGothic, Dotum, sans-serif; line-height: 19px; text-align: justify; "><br />
	2_ °³ÀÎÅ° ÀúÀå¼Ò¿¡ ÀÖ´Â Å°(ºñ¹ÐÅ°)·Î ¼­¸íÇÑ´Ù</p><br />
<ol class="code" style="color: rgb(0, 0, 0); font-family: AppleGothic, Dotum, sans-serif; line-height: 19px; text-align: justify; "><br />
	<li><br />
		jarsigner -verbos -keystore mykey.keystore Myandroid.apk mykeyalias</li><br />
</ol><br />
]]]></description>
		<pubDate>Array</pubDate>
		</item>

		<item>
		<category><![CDATA[[]]]></category>
		<title><![CDATA[[proguard]]]></title>
		<link>http://www.sarangnamu.net/basic/basic_view.php?no=5204</link>
		<description><![CDATA[[android tools -> export unsigned application package ]]]></description>
		<pubDate>Array</pubDate>
		</item>

		<item>
		<category><![CDATA[[]]]></category>
		<title><![CDATA[[Android How to use Proguard in the Eclipse]]]></title>
		<link>http://www.sarangnamu.net/basic/basic_view.php?no=5203</link>
		<description><![CDATA[[<p><br />
	&nbsp;</p><br />
<p><br />
	http://blog.naver.com/PostView.nhn?blogId=huewu&amp;logNo=110099143870&nbsp;</p><br />
<div style="TEXT-ALIGN: center; LINE-HEIGHT: 2"><br />
	&nbsp;</div><br />
<div style="TEXT-ALIGN: center; LINE-HEIGHT: 2"><br />
	<span style="FONT-FAMILY: tahoma; FONT-SIZE: 14pt"><b>Android How to use Proguard in the Eclipse</b></span></div><br />
<div style="TEXT-ALIGN: center"><br />
	ÀÌ±ÛÀº&nbsp;<a class="con_link" href="http://developer.android.com/guide/developing/tools/proguard.html" target="_blank">http://developer.android.com/guide/developing/tools/proguard.html</a>&nbsp;ÀÇ ³»¿ëÀ» ±â¹ÝÀ¸·Î ÀÛ¼ºµÇ¾ú½À´Ï´Ù.</div><br />
<div style="TEXT-ALIGN: center"><br />
	&nbsp;</div><br />
<div><br />
	&nbsp;</div><br />
<div style="LINE-HEIGHT: 2"><br />
	<span style="FONT-SIZE: 10pt">&nbsp;ÇÁ·Î°¡µå´Â ³Î¸® »ç¿ëµÇ°í ÀÖ´Â ÄÚµå ³­µ¶È­ Åø·Î, ¿©·¯ºÐÀÇ ¾îÇÃ¸®ÄÉÀÌ¼ÇÀ» Å©·¡Ä¿ÀÇ °ø°ÝÀ¸·Î ºÎÅÍ º¸´Ù ¾ÈÀüÇÏ°Ô º¸È£ÇÏ°í µ¿½Ã¿¡, ÄÚµå »çÀÌÁî¸¦ ÁÙ¿©ÁÖ¸ç, ±×¸®°í ¾à°£ÀÇ ÃÖÀûÈ­µµ °çµé¿© ÁÖ´Â ¾ÆÁÖ ¾ÆÁÖ ÈÇ¸¢ÇÑ ¿ÀÇÁ¼Ò½º ÅøÀÔ´Ï´Ù. ÇÁ·Î°¡µå´Â GPL ¶óÀÌ¼¾½º¸¦ °®´Â µµ±¸·Î ÇØ´ç ÄÚµå¸¦ ¼öÁ¤ÇÏ°Å³ª Åø ÀÚÃ¼¸¦ Àç¹èÆ÷ÇÒ ¼ö´Â ¾øÁö¸¸, °ø°³µÈ ÇÁ·Î°¡µå¸¦ ÀÌ¿ëÇÏ¿© ¿©·¯ºÐÀÇ ¾îÇÃ¸®ÄÉÀÌ¼ÇÀ» ³­µ¶È­ ÇÏ´Âµ¥¿¡´Â ¾î¶° Á¦¾à Á¶°Ç ¾øÀÌ »ç¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù. ±¸±Û ÆÀÀº LVL ¶óÀÌºê·¯¸®¸¦ °ø°³ ÇÏ°í, &nbsp;¶óÀÎ¼¾½Ì ¼­ºñ½º¸¦ ½ÃÀÛÇÑ Á÷ ÈÄ ºÎÅÍ,<a class="con_link" href="http://huewu.blog.me/110093424752" target="_blank"> ÄÚµå ³­µ¶È­ Åø - Æ¯È÷ ÇÁ·Î°¡µå ÅøÀ» »ç¿ëÇÒ °ÍÀ» ±ÇÀåÇßÀ¸¸ç</a>, ¸¶Ä§³» »õ·Ó°Ô µîÀåÇÑ ÁøÀúºê·¹µå ¹öÀü ºÎÅÍ´Â ¾Æ¿¹ ADT ´Ü¿¡¼­ ÇÁ·Î°¡µå »ç¿ëÀ» Áö¿øÇÏ°í ÀÖ½À´Ï´Ù.</span><span class="Apple-style-span" style="line-height: 26px; font-size: 13px; ">&nbsp;µû¶ó¼­, °³¹ßÀÚºÐµéÀº »õ·Ó°Ô ¾÷µ¥ÀÌÆ®µÈ ADT ¸¦ »ç¿ëÇÏ´Â ÇÑ, ²À 2.3 Å¸°ÙÀÇ ¾îÇÃ¸®ÄÉÀÌ¼ÇÀ» ¸¸µå´Â °æ¿ì°¡ ¾Æ´Ï´õ¶óµµ Á¤¸»·Î ¼Õ½±°Ô ÇÁ·Î°¡µå ÅøÀ» »ç¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù. ±× ¹æ¹ý¿¡ °üÇÏ¿©, ±¸±Û °³¹ßÀÚ °¡ÀÌµå ¹®¼­¿¡ ³ª¿Â ³»¿ëÀ» ±â¹ÝÀ¸·Î °£´ÜÇÏ°Ô ±× »ç¿ë¹ýÀ» Á¤¸®ÇØ º¸¾Ò½À´Ï´Ù.</span></div><br />
<div style="LINE-HEIGHT: 2"><br />
	&nbsp;</div><br />
<div style="LINE-HEIGHT: 2"><br />
	<span class="Apple-style-span" style="LINE-HEIGHT: 26px; FONT-SIZE: 13px"><b>ÇÁ·Î°¡µå »ç¿ëÇÏ±â</b></span></div><br />
<div><br />
	&nbsp;</div><br />
<div style="LINE-HEIGHT: 2"><br />
	<span class="Apple-style-span" style="LINE-HEIGHT: 26px; FONT-SIZE: 13px">&nbsp;¿ì¼± ´ç¿¬È÷ ÇöÀç »ç¿ëÇÏ°í °è½Å ADT ¸¦ ÃÖ½Å ¹öÀü(8.0.1 ÀÌ ÈÄ ¹öÀü)À» ¼³Ä¡ ÇÏ¼Å¾ßÇÕ´Ï´Ù. ±âÁ¸¿¡ ¼³Ä¡µÈ ADT °¡ ÀÖÀ¸½Ã¸é ÃÖ½Å ¹öÀüÀ¸·Î ¾÷µ¥ÀÌÆ® ÇÏ½Ã¸é µË´Ï´Ù. ADT ¸¦ ¾÷µ¥ÀÌÆ® ÇÏ´Â °Í°ú, ¾îÇÃ¸®ÄÉÀÌ¼Ç Å¸°Ù ÇÃ·§ÆûÀ» °áÁ¤ÇÏ´Â °ÍÀº º°´Ù¸¥ »ó°üÀÌ ¾øÀ¸´Ï È£È¯¼º¿¡ ´ëÇÏ¿© Å« °ÆÁ¤ ÇÏÁö ¾Ê°í °ú°¨ÇÏ°Ô ¾÷µ¥ÀÌÆ® ÇÏ¼Åµµ ÁÁ½À´Ï´Ù.</span></div><br />
<div style="LINE-HEIGHT: 2"><br />
	&nbsp;</div><br />
<div style="TEXT-ALIGN: center; LINE-HEIGHT: 2"><br />
	<span class="Apple-style-span" style="LINE-HEIGHT: 26px; FONT-SIZE: 13px"><img height="321" id="20101216_170/huewu_1292504854176tRYLk_JPEG/adt_ver.jpg" src="http://postfiles11.naver.net/20101216_170/huewu_1292504854176tRYLk_JPEG/adt_ver.jpg?type=w3" style="CURSOR: pointer" width="480" /></span></div><br />
<div style="LINE-HEIGHT: 2"><br />
	&nbsp;</div><br />
<div style="LINE-HEIGHT: 2"><br />
	<span class="Apple-style-span" style="LINE-HEIGHT: 26px; FONT-SIZE: 13px">&nbsp;ADT ¾÷µ¥ÀÌÆ®¸¦ ¸¶Ä£ ÈÄ¿¡, »õ·Î¿î ¾Èµå·ÎÀÌµå ÇÁ·ÎÁ§Æ®¸¦ ¸¸µå½Ã¸é, ÇÁ·ÎÁ§Æ® ·çÆ® Æú´õ¿¡ ±âÁ¸°ú ´Ù¸¥ proguard.cfg ¶ó´Â ÆÄÀÏÀÌ »ý¼ºµÇ´Â °ÍÀ» È®ÀÎ ÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù. ÇÁ·Î°¡µå È¯°æ ¼³Á¤ ÆÄÀÏÀÌ¶ó°í »ý°¢ÇÏ½Ã¸é µÇ¸ç, ±âº»ÀûÀ¸·Î ¾Èµå·ÎÀÌµå¿¡ ¾Ë¸ÂÀº ¼³Á¤ °ª(¸Þ´ÏÆä½ºÆ®¿¡¼­ ÀÌ¸§À¸·Î ÂüÁ¶ÇÏ´Â Å¬·¡½º´Â ³­µ¶È­ ÇÏÁö ¾Ê´Â µî,...)À» °®°í ÀÖÀ½À¸·Î, °³ÀÎ °³¹ßÀÚ ºÐµéÀÌ¶ó¸é º°´Ù¸¥ ¼öÁ¤ ¾øÀÌ ÇØ´ç ¼³Á¤ ÆÄÀÏÀ» »ç¿ëÇÏ½Ã¸é µÉ µí ÇÕ´Ï´Ù.&nbsp;</span></div><br />
<div style="LINE-HEIGHT: 2"><br />
	<span class="Apple-style-span" style="LINE-HEIGHT: 26px; FONT-SIZE: 13px">±×¸®°í ¸¶Áö¸·À¸·Î, ÇÁ·ÎÁ§Æ® ·çÆ® Æú´õÀÇ default.properties (ÇÁ·ÎÁ§Æ® ¼³Á¤ ÆÄÀÏÀÌÁ¶) ÆÄÀÏÀ» ¿­¾î¼­ ¾Æ·¡¿Í °°ÀÌ ÇÁ·Î°¡µå¸¦ »ç¿ëÇÏ°Ú´Ù°í ¼³Á¤ °ªÀ» Ãß°¡ÇÏ½Ã¸é µË´Ï´Ù. &nbsp;</span></div><br />
<blockquote class="se2_quote8" style="BORDER-BOTTOM: #e5e5e5 1px solid; BORDER-LEFT: #e5e5e5 1px solid; PADDING-BOTTOM: 10px; MARGIN: 30px 0px; PADDING-LEFT: 10px; PADDING-RIGHT: 10px; BACKGROUND: url(http://static.se2.naver.com/static/img/bg_b1.png); COLOR: #888888; BORDER-TOP: #e5e5e5 1px solid; BORDER-RIGHT: #e5e5e5 1px solid; PADDING-TOP: 10px; _zoom: 1; _background: none"><br />
	<div><br />
		<font class="Apple-style-span" size="2"><span class="Apple-style-span" style="LINE-HEIGHT: 26px">proguard.config=proguard.cfg</span></font></div><br />
</blockquote><br />
<div style="LINE-HEIGHT: 2"><br />
	<span class="Apple-style-span" style="LINE-HEIGHT: 26px; FONT-SIZE: 13px">&nbsp;³×...ÀÌ°Ô ÀüºÎÀÔ´Ï´Ù. ÀÌ »óÈ²¿¡¼­ ¿©·¯ºÐÀÌ ¸±¸®Áî ¹öÀüÀ¸·Î ¾îÇÃ¸®ÄÉÀÌ¼ÇÀ» ÀÍ½ºÆ÷Æ® ÇÏ½Ã¸é, ºôµå°úÁ¤¿¡¼­ ÀÚµ¿À¸·Î ÇÁ·Î°¡µå ÅøÀÌ µ¿ÀÛÇÕ´Ï´Ù. Á¤¸» ½¬¾îÁ³½À´Ï´Ù. ¸¸¼¼~!</span><span class="Apple-style-span" style="LINE-HEIGHT: 26px; FONT-SIZE: 13px">&nbsp;±×¸®°í, ÇÁ·Î°¡µå ÅøÀÌ Á¤»óÀûÀ¸·Î µ¿ÀÛÇÏ°í ³ª¸é, ¿©·¯ºÐÀÇ ÇÁ·ÎÁ§Æ® Æú´õ¿¡ proguard ¶ó´Â ÇÏÀ§ Æú´õ°¡ »õ·Ó°Ô »ý¼ºµÇ¸ç ÇØ´ç Æú´õ ³»¿¡, ´ÙÀ½ÀÇ ³× °¡Áö ÆÄÀÏÀÌ »ý¼ºµË´Ï´Ù.&nbsp;</span></div><br />
<div style="LINE-HEIGHT: 2"><br />
	&nbsp;</div><br />
<div><br />
	<div><br />
		<ul><br />
			<li><br />
				<span class="Apple-style-span" style="LINE-HEIGHT: 26px; FONT-SIZE: small">dump.txt : ¿©·¯ºÐÀÇ ¾îÇÃ¸®ÄÉÀÌ¼Ç¿¡¼­ »ç¿ëÁßÀÎ Å¬·¡½ºµéÀÇ ³»ºÎ ±¸Á¶¿¡ ´ëÇÑ ´ë·«ÀûÀÎ Á¤º¸¸¦ ³ªÅ¸³À´Ï´Ù. ¸»±×´ë·Î ³­µ¶È­ ÇÏ±â À§ÇØ ¼Ò½º¸¦ ºÐ¼®ÇÏ´Â °úÁ¤¿¡¼­ ³ª¿À´Â ´ýÇÁ°ªµéÀÌ°ÚÁ¶. ¹¹.&nbsp;</span></li><br />
			<li><br />
				<span class="Apple-style-span" style="LINE-HEIGHT: 26px; FONT-SIZE: small"><b>mapping.txt : ÀÌ ÆÄÀÏÀº Áß¿äÇÕ´Ï´Ù. ³­µ¶È­ °úÁ¤¿¡¼­ ±âÁ¸ Å¬·¡½º È¤Àº ¸Þ¼­µå°¡ ¾î¶² »õ·Î¿î ³­µ¶È­µÈ ÀÌ¸§À¸·Î ¸ÅÇÎµÇ¾ú´ÂÁö ±× ¸ñ·ÏÀ» Ç¥½ÃÇØ ÁÝ´Ï´Ù. ³­µ¶È­ µÈ ¾îÇÃ¸®ÄÉÀÌ¼Ç¿¡ ¹ß»ýÇÏ´Â ·Î±×³ª, ½ºÅÃ Æ®·¹ÀÌ½º µéÀ» ºÐ¼®ÇÏ±â À§ÇØ¼­ ²À Ã¬°Ü µÎ¼Å¾ß ÇÕ´Ï´Ù.</b></span></li><br />
			<li><br />
				<span class="Apple-style-span" style="LINE-HEIGHT: 26px; FONT-SIZE: small">seeds.txt : ³­µ¶È­ µÇÁö ¾ÊÀº Å¬·¡½º¿Í ¸â¹öµéÀÇ ¸ñ·ÏÀÔ´Ï´Ù.</span></li><br />
			<li><br />
				<span class="Apple-style-span" style="LINE-HEIGHT: 26px; FONT-SIZE: small">usage.txt : »ç¿ëµÇÁö ¾Ê±â ¶§¹®¿¡, apk ÆÄÀÏ¿¡¼­ Á¦°ÅµÈ ÄÚµåµéÀÇ ¸ñ·ÏÀÔ´Ï´Ù. È¤½Ã Á¦°ÅµÇ¼­´Â ¾ÈµÇ´Â ¸Þ¼­µå³ª Å¬·¡½º°¡ Á¦°ÅµÇ¾ú´ÂÁö ²À È®ÀÎÇØ ºÁ¾ß ÇÕ´Ï´Ù.</span></li><br />
		</ul><br />
	</div><br />
</div><br />
<div style="LINE-HEIGHT: 2"><br />
	&nbsp;</div><br />
<div style="LINE-HEIGHT: 2"><br />
	<span class="Apple-style-span" style="LINE-HEIGHT: 26px; FONT-SIZE: 13px"><b><span style="FONT-SIZE: 10pt">ÇÁ·Î°¡µå ¼³Á¤ ÇÏ±â</span></b></span></div><br />
<div><br />
	&nbsp;</div><br />
<div><br />
	<div><br />
		<font class="Apple-style-span" size="2"><span class="Apple-style-span" style="LINE-HEIGHT: 26px"><span class="Apple-style-span" style="LINE-HEIGHT: 18px; FONT-SIZE: 12px"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="LINE-HEIGHT: 26px; FONT-SIZE: 10pt">&nbsp;¿Ø¸¸ÇÑ °æ¿ì¿¡´Â ±¸±Û¿¡¼­ ±âº»ÀûÀ¸·Î ¼³Á¤ÇÑ proguard.cfg °¡ Àß µ¿ÀÛÇÏ°ÚÁö¸¸, ¸î¸î °æ¿ì ÇÁ·Î°¡µå ÅøÀÌ ³­µ¶È­ °úÁ¤¿¡¼­ Àß¸øµÈ Å¬·¡½º³ª ¸â¹ö¸¦ ³­µ¶È­ ÇÏ°Å³ª ½ÇÀç·Î´Â »ç¿ëµÇ´Â ¸Þ¼­µå¸¦ Á¦°ÅÇÏ´Â µîÀÇ ¿À·ù¸¦ ÀÏÀ¸Å³ ¼ö µµ ÀÖ½À´Ï´Ù. ¿¹¸¦ µéÀÚ¸é,</span></font></span></span></font></div><br />
	<div><br />
		&nbsp;</div><br />
	<div><br />
		<ul><br />
			<li><br />
				<font class="Apple-style-span" size="2"><span class="Apple-style-span" style="LINE-HEIGHT: 26px"><span class="Apple-style-span" style="LINE-HEIGHT: 18px; FONT-SIZE: 12px"><span class="Apple-style-span" style="LINE-HEIGHT: 26px; FONT-SIZE: 13px">½ÇÁ¦ ÄÚµå°¡ ¾Æ´Ï¶ó AndroidManifest.xml ÆÄÀÏ ³»¿¡¼­¸¸ ÂüÁ¶µÇ´Â Å¬·¡½º</span></span></span></font></li><br />
			<li><br />
				<font class="Apple-style-span" size="2"><span class="Apple-style-span" style="LINE-HEIGHT: 26px"><span class="Apple-style-span" style="LINE-HEIGHT: 18px; FONT-SIZE: 12px"><span class="Apple-style-span" style="LINE-HEIGHT: 26px; FONT-SIZE: 13px">JNI Çü½ÄÀ¸·Î¸¸ È£ÃâµÇ´Â ¸Þ¼­µå</span></span></span></font></li><br />
			<li><br />
				<font class="Apple-style-span" size="2"><span class="Apple-style-span" style="LINE-HEIGHT: 26px"><span class="Apple-style-span" style="LINE-HEIGHT: 18px; FONT-SIZE: 12px"><span class="Apple-style-span" style="LINE-HEIGHT: 26px; FONT-SIZE: 13px">µ¿ÀûÀ¸·Î ÂüÁ¶µÇ´Â ÇÊµå °ªÀÌ³ª ¸Þ½ºµåµé&nbsp;</span></span></span></font></li><br />
		</ul><br />
	</div><br />
	<div><br />
		&nbsp;</div><br />
	<div><br />
		<font class="Apple-style-span" size="2"><span class="Apple-style-span" style="LINE-HEIGHT: 26px"><span class="Apple-style-span" style="LINE-HEIGHT: 18px; FONT-SIZE: 12px"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="LINE-HEIGHT: 26px; FONT-SIZE: 10pt">&nbsp;ÇÁ·Î°¡µå ÅøÀ» Àû¿ëÇÑ ÈÄ ¾îÇÃ¸®ÄÉÀÌ¼ÇÀ» ½ÇÇà½ÃÄ×À» ¶§,&nbsp;</span></font><span class="Apple-style-span" style="LINE-HEIGHT: 26px; FONT-SIZE: 10pt">ClassNotFoundException µîÀÇ ¿¹¿Ü°¡ ¹ß»ýÇÑ´Ù¸é À§ÀÇ °æ¿ì¸¦ ÀÇ½ÉÇØ ºÁ¾ß ÇÕ´Ï´Ù. ÀÌÃ³·³ ÇÁ·Î°¡µå ÅøÀÌ °ÇµéÁö ¸»¾Æ¾ßÇÒ ÄÚµå¸¦ °Çµé¿©¼­ ¹®Á¦°¡ ¹ß»ýÇÏ´Â °ÍÀ» ¹æÁöÇÏ±â À§ÇØ, proguard.cfg ÆÄÀÏÀ» ¿­¾î, -keep Ç×¸ñÀ» Ãß°¡·Î ¼±¾ðÇÒ ¼ö ÀÖ½À´Ï´Ù.</span></span></span></font></div><br />
	<blockquote class="se2_quote8" style="BORDER-BOTTOM: #e5e5e5 1px solid; BORDER-LEFT: #e5e5e5 1px solid; PADDING-BOTTOM: 10px; MARGIN: 30px 0px; PADDING-LEFT: 10px; PADDING-RIGHT: 10px; BACKGROUND: url(http://static.se2.naver.com/static/img/bg_b1.png); COLOR: #888888; BORDER-TOP: #e5e5e5 1px solid; BORDER-RIGHT: #e5e5e5 1px solid; PADDING-TOP: 10px; _zoom: 1; _background: none"><br />
		<div><br />
			<font class="Apple-style-span" size="2"><span class="Apple-style-span" style="LINE-HEIGHT: 26px"><span class="Apple-style-span" style="LINE-HEIGHT: 18px; FONT-SIZE: 12px"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="LINE-HEIGHT: 26px; FONT-SIZE: 10pt">-keep public class &lt;MyClass&gt;</span></font></span></span></font></div><br />
	</blockquote><br />
	<div><br />
		<font class="Apple-style-span" size="2"><span class="Apple-style-span" style="LINE-HEIGHT: 26px"><span class="Apple-style-span" style="LINE-HEIGHT: 18px; FONT-SIZE: 12px"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="LINE-HEIGHT: 26px; FONT-SIZE: 10pt">&nbsp;-keep ¼Ó¼º°ú ÇÔ²² »ç¿ëÇÒ ¼ö ÀÖ´Â ´Ù¾çÇÑ ¿É¼Ç °ªµéÀÌ ÀÖ½À´Ï´Ù. ÀÌ¿¡ °üÇÑ º¸´Ù »ó¼¼ÇÑ ³»¿ëÀº ÇÁ·Î°¡µå<a class="con_link" href="http://proguard.sourceforge.net/index.html#/manual/usage.html#keepoverview" target="_blank">&nbsp;¸Þ´º</a></span></font><span class="Apple-style-span" style="LINE-HEIGHT: 26px; FONT-SIZE: 13px"><a class="con_link" href="http://proguard.sourceforge.net/index.html#/manual/usage.html#keepoverview" target="_blank">¾ó ¹®¼­</a>¸¦ Á÷Á¢ ÂüÁ¶ÇÏ½Ã¸é ÁÁÀ» °Í °°½À´Ï´Ù.&nbsp;</span></span></span></font></div><br />
</div><br />
<div style="LINE-HEIGHT: 2"><br />
	&nbsp;</div><br />
<div style="LINE-HEIGHT: 2"><br />
	<span style="FONT-SIZE: 10pt"><b><span style="FONT-SIZE: 10pt">³­µ¶È­µÈ ¾îÇÃ¸®ÄÉÀÌ¼ÇÀ» µð¹ö±ë ÇÏ±â</span></b></span></div><br />
<div><br />
	&nbsp;</div><br />
<div style="LINE-HEIGHT: 2"><br />
	<span style="FONT-SIZE: 10pt">&nbsp;³­µ¶È­µÈ ¾îÇÃ¸®ÄÉÀÌ¼ÇÀÇ ½ºÅÃ Æ®·¹ÀÌ½º Á¤º¸´Â ¾û¸Á ÁøÃ¢ÀÌ µÇ±â ½±»óÀÔ´Ï´Ù. ¿Â°® ¸Þ¼­µå ÀÌ¸§°ú Å¬·¡½º ÀÌ¸§ÀÌ ÀüºÎ ³­µ¶È­µÇ¾úÀ»Å×´Ï ¸»ÀÔ´Ï´Ù. µð¹ö±ëÀÌ ºÒ°¡´ÉÇÑ °ÍÀº ¾Æ´ÏÁö¸¸, °áÄÚ ½¬¿î ÀÏÀº ¾Æ´ÒÅ×Á¶. ÇÏÁö¸¸ ¾Õ¼­ ÀÌ¾ß±â ÇÑ °Í Ã³·³, ³­µ¶È­ °úÁ¤¿¡¼­ »ý¼ºµÇ´Â mapping.txt ÆÄÀÏ¿¡ ¿øº» ÀÌ¸§ÀÌ ¾î¶»°Ô º¯°æµÇ¾ú´ÂÁö¿¡ °üÇÑ ³»¿ëÀÌ ÀúÀåµË´Ï´Ù. ÇÁ·Î°¡µå Åø°ú ÇÔ²² Á¦°øµÇ´Â retrace.bat È¤Àº retrace.sh ½ºÅ©¸³Æ®´Â ¹Ù·Î ÀÌ mapping.txt ÆÄÀÏÀÇ ³»¿ëÀ» ±â¹ÝÀ¸·Î ³­µ¶È­µÈ ½ºÅÃ Æ®·¹ÀÌ½º Á¤º¸¸¦ ÀÚµ¿À¸·Î º¯È¯½ÃÄÑ ÁÝ´Ï´Ù. &lt;sdk_root&gt;/tools/proguard/ µð·ºÅä¸®¿¡ À§Ä¡ÇÏ¸ç ´ÙÀ½°ú °°ÀÌ »ç¿ëÇÏ½Ã¸é µË´Ï´Ù.</span></div><br />
<blockquote class="se2_quote8" style="BORDER-BOTTOM: #e5e5e5 1px solid; BORDER-LEFT: #e5e5e5 1px solid; PADDING-BOTTOM: 10px; MARGIN: 30px 0px; PADDING-LEFT: 10px; PADDING-RIGHT: 10px; BACKGROUND: url(http://static.se2.naver.com/static/img/bg_b1.png); COLOR: #888888; BORDER-TOP: #e5e5e5 1px solid; BORDER-RIGHT: #e5e5e5 1px solid; PADDING-TOP: 10px; _zoom: 1; _background: none"><br />
	<div style="LINE-HEIGHT: 2"><br />
		<span style="FONT-SIZE: 10pt">retrace.bat|retrace.sh [-verbose] mapping.txt [&lt;stacktrace_file&gt;]</span></div><br />
	<div style="LINE-HEIGHT: 2"><br />
		<span style="FONT-SIZE: 10pt">For example:</span></div><br />
	<div style="LINE-HEIGHT: 2"><br />
		<span style="FONT-SIZE: 10pt">retrace.bat -verbose mapping.txt obfuscated_trace.txt</span></div><br />
</blockquote><br />
<div><br />
	<font class="Apple-style-span" size="2"><span class="Apple-style-span" style="LINE-HEIGHT: 26px"><b>Ãâ½ÃÇÑ ¾îÇÃ¸®ÄÉÀÌ¼Ç µð¹ö±ë ÇÏ±â</b></span></font></div><br />
<div><br />
	&nbsp;</div><br />
<div><br />
	<font class="Apple-style-span" size="2"><span class="Apple-style-span" style="LINE-HEIGHT: 26px">&nbsp;ÇÑ°¡Áö ÁÖÀÇ Á¡ÀÌ ÀÖ½À´Ï´Ù. ³­µ¶È­ °úÁ¤¿¡¼­ »ý¼ºµÇ´Â mapping.txt ÆÄÀÏÀº ±âÁ¸ ÆÄÀÏÀ» µ¤¾î ¾²°ÔµÇ¾îÀÖ½À´Ï´Ù. µû¶ó¼­, °³¹ßÀÚºÐµéÀº ¸±¸®Áî ¹öÀü¿¡ ÇØ´çÇÏ´Â mapping.txt ÆÄÀÏÀ» ÁÖÀÇ±í°Ô º¸Á¸ÇÏ¼Å¾ß ÇÕ´Ï´Ù. ¸¸ÀÏ ±×·¸Áö ¾ÊÀ»°æ¿ì, »ç¿ëÀÚµéÀÌ ¾îÇÃ¸®ÄÉÀÌ¼Ç »ç¿ëÁÖ¿¡ ¹ß»ýÇÏ´Â Å©·¡½¬³ª ANR ¹®Á¦µé¿¡ °üÇÑ ±ÍÁßÇÑ Á¤º¸¸¦ º¸³»¿Â´Ù ÇÏ´õ¶óµµ, ÇØ´ç ³»¿ëÀ» ÇØ¼®ÇÒ ¼ö ¾ø¾î¼­ ¹ßÀ» µ¿µ¿ ±¸¸£°Ô µÉÁöµµ ¸ð¸¨´Ï´Ù.</span></font></div><br />
<div><br />
	&nbsp;</div><br />
<p><br />
	&nbsp;</p><br />
]]]></description>
		<pubDate>Array</pubDate>
		</item>

		<item>
		<category><![CDATA[[]]]></category>
		<title><![CDATA[[hello testing]]]></title>
		<link>http://www.sarangnamu.net/basic/basic_view.php?no=5201</link>
		<description><![CDATA[[<p><br />
	http://developer.android.com/resources/tutorials/testing/helloandroid_test.html&nbsp;</p><br />
<p><br />
	&nbsp;</p><br />
<p><br />
	&nbsp;</p><br />
<div class="guide-header" id="jd-header" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 7px; padding-right: 15px; padding-bottom: 7px; padding-left: 15px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; color: rgb(67, 90, 110); height: 50px; font-family: arial, sans-serif; font-size: 13px; "><br />
	<span class="crumb" style="font-size: 0.9em; line-height: 1em; color: rgb(119, 119, 119); "><a href="http://developer.android.com/resources/browser.html?tag=tutorial" style="color: rgb(119, 119, 119); text-decoration: none; ">Tutorials</a>:</span><br />
	<h1 style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 8px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 1.7em; "><br />
		Hello, Testing</h1><br />
</div><br />
<div id="jd-content" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 18px; padding-right: 15px; padding-bottom: 18px; padding-left: 15px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; color: rgb(51, 51, 51); font-family: arial, sans-serif; font-size: 13px; "><br />
	<div class="jd-descr" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; "><br />
		<div id="qv-wrapper" style="margin-top: -48px; margin-right: 0px; margin-bottom: 2px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 20px; padding-left: 35px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; float: right; width: 310px; "><br />
			<div id="qv" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; border-top-width: 4px; border-right-width: 4px; border-bottom-width: 4px; border-left-width: 4px; border-style: initial; border-color: initial; border-image: initial; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(222, 232, 241); border-right-color: rgb(222, 232, 241); border-bottom-color: rgb(222, 232, 241); border-left-color: rgb(222, 232, 241); width: 292px; font-size: 0.9em; "><br />
				<h2 style="margin-top: 12px; margin-right: 0px; margin-bottom: 0.25em; margin-left: 0px; padding-top: 0px; padding-right: 10px; padding-bottom: 0px; padding-left: 10px; border-style: initial; border-color: initial; border-image: initial; font-size: 1.05em; color: rgb(123, 176, 38); border-top-style: none; background-color: transparent; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; left: 0px; z-index: 1; "><br />
					In this document</h2><br />
				<ol style="margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; list-style-type: none; list-style-position: initial; list-style-image: initial; "><br />
					<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 10px; padding-bottom: 3px; padding-left: 10px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.2em; "><br />
						<a href="http://developer.android.com/resources/tutorials/testing/helloandroid_test.html#CreateTestProject" style="color: rgb(204, 102, 0); ">Creating the Test Project</a></li><br />
					<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 10px; padding-bottom: 3px; padding-left: 10px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.2em; "><br />
						<a href="http://developer.android.com/resources/tutorials/testing/helloandroid_test.html#CreateTestClass" style="color: rgb(204, 102, 0); ">Creating the Test Case Class</a><br />
						<ol style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 12px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; list-style-type: none; list-style-position: initial; list-style-image: initial; "><br />
							<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 3px; padding-right: 10px; padding-bottom: 0px; padding-left: 10px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.2em; "><br />
								<a href="http://developer.android.com/resources/tutorials/testing/helloandroid_test.html#CreateTestCaseClassFile" style="color: rgb(204, 102, 0); ">Adding the test case class file</a></li><br />
							<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 3px; padding-right: 10px; padding-bottom: 0px; padding-left: 10px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.2em; "><br />
								<a href="http://developer.android.com/resources/tutorials/testing/helloandroid_test.html#CreateConstructor" style="color: rgb(204, 102, 0); ">Adding the test case constructor</a></li><br />
							<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 3px; padding-right: 10px; padding-bottom: 0px; padding-left: 10px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.2em; "><br />
								<a href="http://developer.android.com/resources/tutorials/testing/helloandroid_test.html#CreateSetUp" style="color: rgb(204, 102, 0); ">Adding a setup method</a></li><br />
							<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 3px; padding-right: 10px; padding-bottom: 0px; padding-left: 10px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.2em; "><br />
								<a href="http://developer.android.com/resources/tutorials/testing/helloandroid_test.html#CreatePreConditions" style="color: rgb(204, 102, 0); ">Adding a preconditions test</a></li><br />
							<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 3px; padding-right: 10px; padding-bottom: 0px; padding-left: 10px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.2em; "><br />
								<a href="http://developer.android.com/resources/tutorials/testing/helloandroid_test.html#CreateText" style="color: rgb(204, 102, 0); ">Adding a unit test</a></li><br />
							<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 3px; padding-right: 10px; padding-bottom: 0px; padding-left: 10px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.2em; "><br />
								<a href="http://developer.android.com/resources/tutorials/testing/helloandroid_test.html#CompleteTest" style="color: rgb(204, 102, 0); ">The finished test case class</a></li><br />
						</ol><br />
					</li><br />
					<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 10px; padding-bottom: 3px; padding-left: 10px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.2em; "><br />
						<a href="http://developer.android.com/resources/tutorials/testing/helloandroid_test.html#RunTest" style="color: rgb(204, 102, 0); ">Running the Tests and Seeing the Results</a></li><br />
					<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 10px; padding-bottom: 3px; padding-left: 10px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.2em; "><br />
						<a href="http://developer.android.com/resources/tutorials/testing/helloandroid_test.html#NextSteps" style="color: rgb(204, 102, 0); ">Next Steps</a></li><br />
				</ol><br />
				<h2 style="margin-top: 12px; margin-right: 0px; margin-bottom: 0.25em; margin-left: 0px; padding-top: 0px; padding-right: 10px; padding-bottom: 0px; padding-left: 10px; border-style: initial; border-color: initial; border-image: initial; font-size: 1.05em; color: rgb(123, 176, 38); border-top-style: none; background-color: transparent; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; left: 0px; z-index: 1; "><br />
					Related Tutorials</h2><br />
				<ol style="margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; list-style-type: none; list-style-position: initial; list-style-image: initial; "><br />
					<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 10px; padding-bottom: 3px; padding-left: 10px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.2em; "><br />
						<a href="http://developer.android.com/resources/tutorials/hello-world.html" style="color: rgb(204, 102, 0); ">Hello, World</a></li><br />
					<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 10px; padding-bottom: 3px; padding-left: 10px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.2em; "><br />
						<a href="http://developer.android.com/resources/tutorials/testing/activity_test.html" style="color: rgb(204, 102, 0); ">Activity Testing</a></li><br />
				</ol><br />
				<h2 style="margin-top: 12px; margin-right: 0px; margin-bottom: 0.25em; margin-left: 0px; padding-top: 0px; padding-right: 10px; padding-bottom: 0px; padding-left: 10px; border-style: initial; border-color: initial; border-image: initial; font-size: 1.05em; color: rgb(123, 176, 38); border-top-style: none; background-color: transparent; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border-color: initial; left: 0px; z-index: 1; "><br />
					See Also</h2><br />
				<ol style="margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; list-style-type: none; list-style-position: initial; list-style-image: initial; "><br />
					<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 10px; padding-bottom: 3px; padding-left: 10px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.2em; "><br />
						<a href="http://developer.android.com/guide/topics/testing/testing_android.html" style="color: rgb(204, 102, 0); ">Testing Android Applications</a></li><br />
					<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 10px; padding-bottom: 3px; padding-left: 10px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.2em; "><br />
						<code style="color: rgb(0, 112, 0); line-height: 1em; "><a href="http://developer.android.com/reference/android/test/ActivityInstrumentationTestCase2.html" style="color: rgb(204, 102, 0); ">ActivityInstrumentationTestCase2</a></code></li><br />
					<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 10px; padding-bottom: 3px; padding-left: 10px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.2em; "><br />
						<code style="color: rgb(0, 112, 0); line-height: 1em; "><a href="http://developer.android.com/reference/android/test/InstrumentationTestRunner.html" style="color: rgb(204, 102, 0); ">InstrumentationTestRunner</a></code></li><br />
				</ol><br />
			</div><br />
		</div><br />
		<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
			Android offers a powerful but easy-to-use testing framework that is well integrated with the SDK tools. Because writing tests is an important part of any development effort, this tutorial introduces the basics of testing and helps you get started testing quickly. To keep things simple, this tutorial builds on the&nbsp;<a href="http://developer.android.com/resources/tutorials/hello-world.html" style="color: rgb(0, 102, 153); ">Hello World</a>tutorial, which you may have already completed. It guides you through the process of setting up a test project, adding a test, and running the test against the Hello World application, all from inside the Eclipse environment. Of course, when you are done with this tutorial, you will want to create a test project for your own app and add various types of tests to it.</p><br />
		<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
			If you&#39;d like to read an overview of the test and instrumentation framework and the core test case classes available, look at the&nbsp;<a href="http://developer.android.com/guide/topics/testing/testing_android.html" style="color: rgb(0, 102, 153); ">Testing Android Applications</a>&nbsp;topic. If you prefer a more advanced testing tutorial, try the<a href="http://developer.android.com/resources/tutorials/testing/activity_test.html" style="color: rgb(0, 102, 153); ">Activity Testing</a>&nbsp;tutorial.</p><br />
		<h2 id="Prerequisites" style="margin-top: 2em; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0.5em; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 2px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 1.45em; color: rgb(17, 17, 17); border-top-style: solid; border-top-color: rgb(204, 204, 204); "><br />
			Prerequisites</h2><br />
		<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
			This tutorial and its code depend on the Hello World tutorial. If you haven&#39;t completed that tutorial already, do so now. You will learn the fundamentals of Android application development, and you will have an Android application that is ready to be tested. The tutorial guides you through the setup of an Android test project using the ADT Plugin for Eclipse and other SDK tools. You will need an SDK development platform that is version 1.5 (API level 3) or higher.</p><br />
		<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
			If you aren&#39;t developing in Eclipse with ADT or you would like to run tests directly from the command line, please see the topic&nbsp;<a href="http://developer.android.com/guide/developing/testing/testing_otheride.html" style="color: rgb(0, 102, 153); ">Testing in Other IDEs</a>&nbsp;for instructions.</p><br />
		<h2 id="CreateTestProject" style="margin-top: 2em; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0.5em; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 2px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 1.45em; color: rgb(17, 17, 17); border-top-style: solid; border-top-color: rgb(204, 204, 204); "><br />
			Creating the Test Project</h2><br />
		<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
			In the Hello World tutorial you created Android application project called HelloAndroid. A test of an Android application is also an Android application, and you create it within an Eclipse project. The Eclipse with ADT&nbsp;<strong>New Android Test Project</strong>&nbsp;dialog creates a new test project and the framework of a new test application at the same time.</p><br />
		<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
			To create the test project and test application framework in Eclipse with ADT, follow these steps</p><br />
		<ol style="margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 2em; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
			<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0.5em; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
				In Eclipse, select&nbsp;<strong>New</strong>&nbsp;&gt;&nbsp;<strong>Project</strong>&nbsp;&gt;&nbsp;<strong>Android</strong>&nbsp;&gt;&nbsp;<strong>Android Test Project</strong>.<br />
				<p style="margin-top: 0.5em; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
					<a href="http://developer.android.com/images/testing/hwtest_new_test_project_menu.png" style="color: rgb(0, 102, 153); "><img alt="New Android Test Project menu" src="http://developer.android.com/images/testing/hwtest_new_test_project_menu.png" style="margin-top: 0.5em; margin-right: 0px; margin-bottom: 0px; margin-left: 1em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; height: 230px; " /></a></p><br />
				<p style="margin-top: 0.5em; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
					The New Android Test Project dialog appears.</p><br />
			</li><br />
			<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0.5em; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
				Set the following values:<br />
				<ul style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 2em; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
					<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0.5em; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
						<em>Test Project Name:</em>&nbsp;&quot;HelloAndroidTest&quot;</li><br />
					<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0.5em; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
						<em>Test Target:</em>&nbsp;Set &quot;An existing Android project&quot;, click Browse, and then select &quot;HelloAndroid&quot; from the list of projects.</li><br />
					<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0.5em; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
						<em>Build Target:</em>&nbsp;Set a target whose platform is Android 1.5 or above.</li><br />
					<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0.5em; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
						<em>Application name:</em>&nbsp;&quot;HelloAndroidTest&quot;</li><br />
					<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0.5em; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
						<em>Package name:</em>&nbsp;&quot;<code style="color: rgb(0, 112, 0); line-height: 1em; ">com.example.helloandroid.test</code>&quot;</li><br />
				</ul><br />
				<p style="margin-top: 0.5em; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
					The dialog should now look like this:</p><br />
				<a href="http://developer.android.com/images/testing/hwtest_new_test_project_dialog_complete_callouts.png" style="color: rgb(0, 102, 153); "><img alt="New Android Test Project dialog with entries" src="http://developer.android.com/images/testing/hwtest_new_test_project_dialog_complete_callouts.png" style="margin-top: 0.5em; margin-right: 0px; margin-bottom: 0px; margin-left: 1em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; height: 230px; " /></a></li><br />
			<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0.5em; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
				Click Finish. The new project appears in the Package Explorer.</li><br />
		</ol><br />
		<h2 id="CreateTestClass" style="margin-top: 2em; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0.5em; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 2px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 1.45em; color: rgb(17, 17, 17); border-top-style: solid; border-top-color: rgb(204, 204, 204); "><br />
			Creating the Test Case Class</h2><br />
		<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
			You now have a test project HelloAndroidTest, and the basic structure of a test application also called HelloAndroidTest. The basic structure includes all the files and directories you need to build and run a test application,&nbsp;<em>except for</em>&nbsp;the class that contains your tests (the&nbsp;<strong>test case class</strong>).</p><br />
		<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
			The next step is to define the test case class. In this tutorial, you define a test case class that extends one of Android&#39;s test case classes designed for Activities. The class contains definitions for four methods:</p><br />
		<ol style="margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 2em; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
			<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0.5em; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
				<code style="color: rgb(0, 112, 0); line-height: 1em; ">HelloAndroidTest</code>: This defines the constructor for the class. It is required by the Android testing framework.</li><br />
			<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0.5em; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
				<code style="color: rgb(0, 112, 0); line-height: 1em; ">setUp()</code>: This overrides the JUnit&nbsp;<code style="color: rgb(0, 112, 0); line-height: 1em; ">setUp()</code>&nbsp;method. You use it to initialize the environment before each test runs.</li><br />
			<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0.5em; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
				<code style="color: rgb(0, 112, 0); line-height: 1em; ">testPreconditions()</code>: This defines a small test that ensures the Hello, Android application starts up correctly.</li><br />
			<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0.5em; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
				<code style="color: rgb(0, 112, 0); line-height: 1em; ">testText()</code>: This tests that what is displayed on the screen is the same as what is contained in the application&#39;s string resources. It is an example of a real unit test you would perform against an application&#39;s UI.</li><br />
		</ol><br />
		<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
			The following sections contain the code for the test case class and its methods.</p><br />
		<h3 id="CreateTestCaseClassFile" style="margin-top: 1.5em; margin-right: 0px; margin-bottom: 0.65em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 1.3em; color: rgb(58, 58, 58); "><br />
			Adding the test case class file</h3><br />
		<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
			To add the Java file for the test case class, follow these steps</p><br />
		<ol style="margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 2em; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
			<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0.5em; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
				In Eclipse, open the HelloAndroidTest project if it is not already open.</li><br />
			<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0.5em; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
				Within HelloAndroidTest, expand the&nbsp;<code style="color: rgb(0, 112, 0); line-height: 1em; ">src/</code>&nbsp;folder and then find the package icon for&nbsp;<code style="color: rgb(0, 112, 0); line-height: 1em; ">com.example.helloandroid.test</code>. Right-click on the package icon and select<strong>New</strong>&nbsp;&gt;&nbsp;<strong>Class</strong>:<br />
				<p style="margin-top: 0.5em; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
					<a href="http://developer.android.com/images/testing/hwtest_create_test_class_menu_callouts.png" style="color: rgb(0, 102, 153); "><img alt="Menu for creating a new class in the test application" src="http://developer.android.com/images/testing/hwtest_create_test_class_menu_callouts.png" style="margin-top: 0.5em; margin-right: 0px; margin-bottom: 0px; margin-left: 1em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; height: 230px; " /></a></p><br />
				<p style="margin-top: 0.5em; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
					The New Java Class dialog appears.</p><br />
			</li><br />
			<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0.5em; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
				In the dialog, enter the following:<br />
				<ul style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 2em; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
					<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0.5em; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
						<em>Name:</em>&nbsp;&quot;HelloAndroidTest&quot;. This becomes the name of your test class.</li><br />
					<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0.5em; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
						<em>Superclass:</em>&nbsp;&quot;<code style="color: rgb(0, 112, 0); line-height: 1em; ">android.test.ActivityInstrumentationTestCase2&lt;HelloAndroid&gt;</code>&quot;. The superclass is parameterized by an Activity class name.<br />
						<p style="margin-top: 0.5em; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
							The dialog should now look like this:</p><br />
						<a href="http://developer.android.com/images/testing/hwtest_new_test_class_dialog_complete_callouts.png" style="color: rgb(0, 102, 153); "><img alt="New Java Class dialog with entries" src="http://developer.android.com/images/testing/hwtest_new_test_class_dialog_complete_callouts.png" style="margin-top: 0.5em; margin-right: 0px; margin-bottom: 0px; margin-left: 1em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; height: 230px; " /></a></li><br />
				</ul><br />
				<p style="margin-top: 0.5em; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
					Do not change any of the other settings. Click Finish.</p><br />
			</li><br />
			<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0.5em; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
				You now have a new file&nbsp;<code style="color: rgb(0, 112, 0); line-height: 1em; ">HelloAndroidTest.java</code>&nbsp;in the project. This file contains the class&nbsp;<code style="color: rgb(0, 112, 0); line-height: 1em; ">HelloAndroidTest</code>, which extends the Activity test case class<code style="color: rgb(0, 112, 0); line-height: 1em; ">ActivityInstrumentationTestCase2&lt;T&gt;</code>. You parameterize the class with&nbsp;<code style="color: rgb(0, 112, 0); line-height: 1em; ">HelloAndroid</code>, which is the class name of the activity under test.</li><br />
			<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0.5em; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
				Open&nbsp;<code style="color: rgb(0, 112, 0); line-height: 1em; ">HelloAndroidTest.java</code>. It should look like this:<br />
				<pre class="prettyprint" style="color: rgb(0, 112, 0); line-height: inherit; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); border-image: initial; background-color: rgb(250, 250, 250); padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; margin-top: 0.5em; margin-bottom: 0px; margin-left: 1em; overflow-x: auto; overflow-y: auto; "><br />
<span class="kwd" style="color: rgb(0, 0, 136); ">package</span><span class="pln" style="color: rgb(0, 0, 0); "> com</span><span class="pun" style="color: rgb(102, 102, 0); ">.</span><span class="pln" style="color: rgb(0, 0, 0); ">example</span><span class="pun" style="color: rgb(102, 102, 0); ">.</span><span class="pln" style="color: rgb(0, 0, 0); ">helloandroid</span><span class="pun" style="color: rgb(102, 102, 0); ">.</span><span class="pln" style="color: rgb(0, 0, 0); ">test</span><span class="pun" style="color: rgb(102, 102, 0); ">;</span><br />
<br />
<span class="kwd" style="color: rgb(0, 0, 136); ">import</span><span class="pln" style="color: rgb(0, 0, 0); "> android</span><span class="pun" style="color: rgb(102, 102, 0); ">.</span><span class="pln" style="color: rgb(0, 0, 0); ">test</span><span class="pun" style="color: rgb(102, 102, 0); ">.</span><span class="typ" style="color: rgb(102, 0, 102); ">ActivityInstrumentationTestCase2</span><span class="pun" style="color: rgb(102, 102, 0); ">;</span><br />
<br />
<span class="kwd" style="color: rgb(0, 0, 136); ">public</span><span class="pln" style="color: rgb(0, 0, 0); "> </span><span class="kwd" style="color: rgb(0, 0, 136); ">class</span><span class="pln" style="color: rgb(0, 0, 0); "> </span><span class="typ" style="color: rgb(102, 0, 102); ">HelloAndroidTest</span><span class="pln" style="color: rgb(0, 0, 0); "> </span><span class="kwd" style="color: rgb(0, 0, 136); ">extends</span><span class="pln" style="color: rgb(0, 0, 0); "> </span><span class="typ" style="color: rgb(102, 0, 102); ">ActivityInstrumentationTestCase2</span><span class="pun" style="color: rgb(102, 102, 0); ">&lt;</span><span class="typ" style="color: rgb(102, 0, 102); ">HelloAndroid</span><span class="pun" style="color: rgb(102, 102, 0); ">&gt;</span><span class="pln" style="color: rgb(0, 0, 0); "> </span><span class="pun" style="color: rgb(102, 102, 0); ">{</span><br />
<span class="pun" style="color: rgb(102, 102, 0); ">}</span></pre><br />
			</li><br />
			<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0.5em; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
				The test case class depends on the&nbsp;<code style="color: rgb(0, 112, 0); line-height: 1em; ">HelloAndroid</code>&nbsp;class, which is not yet imported. To import the class, add the following line just before the current&nbsp;<code style="color: rgb(0, 112, 0); line-height: 1em; ">import</code>statement:<br />
				<pre class="prettyprint" style="color: rgb(0, 112, 0); line-height: inherit; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); border-image: initial; background-color: rgb(250, 250, 250); padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; margin-top: 0.5em; margin-bottom: 0px; margin-left: 1em; overflow-x: auto; overflow-y: auto; "><br />
<span class="kwd" style="color: rgb(0, 0, 136); ">import</span><span class="pln" style="color: rgb(0, 0, 0); "> com</span><span class="pun" style="color: rgb(102, 102, 0); ">.</span><span class="pln" style="color: rgb(0, 0, 0); ">example</span><span class="pun" style="color: rgb(102, 102, 0); ">.</span><span class="pln" style="color: rgb(0, 0, 0); ">helloandroid</span><span class="pun" style="color: rgb(102, 102, 0); ">.</span><span class="typ" style="color: rgb(102, 0, 102); ">HelloAndroid</span><span class="pun" style="color: rgb(102, 102, 0); ">;</span></pre><br />
			</li><br />
		</ol><br />
		<h3 id="CreateConstructor" style="margin-top: 1.5em; margin-right: 0px; margin-bottom: 0.65em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 1.3em; color: rgb(58, 58, 58); "><br />
			Adding the test case constructor</h3><br />
		<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
			The test case class constructor is used by the Android testing framework when you run the test. It calls the super constructor with parameters that tell the framework what Android application should be tested.</p><br />
		<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
			Add the following constructor method immediately after the class definition:</p><br />
		<pre class="prettyprint" style="color: rgb(0, 112, 0); line-height: inherit; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); border-image: initial; background-color: rgb(250, 250, 250); padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; margin-top: 0px; margin-left: 1em; overflow-x: auto; overflow-y: auto; "><br />
<span class="pln" style="color: rgb(0, 0, 0); ">&nbsp; &nbsp; </span><span class="kwd" style="color: rgb(0, 0, 136); ">public</span><span class="pln" style="color: rgb(0, 0, 0); "> </span><span class="typ" style="color: rgb(102, 0, 102); ">HelloAndroidTest</span><span class="pun" style="color: rgb(102, 102, 0); ">()</span><span class="pln" style="color: rgb(0, 0, 0); "> </span><span class="pun" style="color: rgb(102, 102, 0); ">{</span><br />
<span class="pln" style="color: rgb(0, 0, 0); ">&nbsp; &nbsp; &nbsp; </span><span class="kwd" style="color: rgb(0, 0, 136); ">super</span><span class="pun" style="color: rgb(102, 102, 0); ">(</span><span class="str" style="color: rgb(0, 136, 0); ">&quot;com.example.helloandroid&quot;</span><span class="pun" style="color: rgb(102, 102, 0); ">,</span><span class="pln" style="color: rgb(0, 0, 0); "> </span><span class="typ" style="color: rgb(102, 0, 102); ">HelloAndroid</span><span class="pun" style="color: rgb(102, 102, 0); ">.</span><span class="kwd" style="color: rgb(0, 0, 136); ">class</span><span class="pun" style="color: rgb(102, 102, 0); ">);</span><br />
<span class="pln" style="color: rgb(0, 0, 0); ">&nbsp; &nbsp; </span><span class="pun" style="color: rgb(102, 102, 0); ">}</span></pre><br />
		<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
			Save the file&nbsp;<code style="color: rgb(0, 112, 0); line-height: 1em; ">HelloAndroidTest.java</code>.</p><br />
		<h3 id="CreateSetUp" style="margin-top: 1.5em; margin-right: 0px; margin-bottom: 0.65em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 1.3em; color: rgb(58, 58, 58); "><br />
			Adding a setup method</h3><br />
		<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
			The&nbsp;<code style="color: rgb(0, 112, 0); line-height: 1em; ">setUp()</code>&nbsp;method overrides the JUnit&nbsp;<code style="color: rgb(0, 112, 0); line-height: 1em; "><a href="http://developer.android.com/reference/junit/framework/TestCase.html#setUp()" style="color: rgb(0, 102, 153); ">setUp()</a></code>&nbsp;method, which the Android testing framework calls prior to running each test method. You use&nbsp;<code style="color: rgb(0, 112, 0); line-height: 1em; ">setUp()</code>&nbsp;to initialize variables and prepare the test environment. For this test case, the&nbsp;<code style="color: rgb(0, 112, 0); line-height: 1em; ">setUp()</code>&nbsp;method starts the Hello, Android application, retrieves the text being displayed on the screen, and retrieves the text string in the resource file.</p><br />
		<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
			First, add the following code immediately after the constructor method:</p><br />
		<pre class="prettyprint" style="color: rgb(0, 112, 0); line-height: inherit; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); border-image: initial; background-color: rgb(250, 250, 250); padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; margin-top: 0px; margin-left: 1em; overflow-x: auto; overflow-y: auto; "><br />
<span class="pln" style="color: rgb(0, 0, 0); ">&nbsp; &nbsp; </span><span class="lit" style="color: rgb(0, 102, 102); ">@Override</span><br />
<span class="pln" style="color: rgb(0, 0, 0); ">&nbsp; &nbsp; </span><span class="kwd" style="color: rgb(0, 0, 136); ">protected</span><span class="pln" style="color: rgb(0, 0, 0); "> </span><span class="kwd" style="color: rgb(0, 0, 136); ">void</span><span class="pln" style="color: rgb(0, 0, 0); "> setUp</span><span class="pun" style="color: rgb(102, 102, 0); ">()</span><span class="pln" style="color: rgb(0, 0, 0); "> </span><span class="kwd" style="color: rgb(0, 0, 136); ">throws</span><span class="pln" style="color: rgb(0, 0, 0); "> </span><span class="typ" style="color: rgb(102, 0, 102); ">Exception</span><span class="pln" style="color: rgb(0, 0, 0); "> </span><span class="pun" style="color: rgb(102, 102, 0); ">{</span><br />
<span class="pln" style="color: rgb(0, 0, 0); ">&nbsp; &nbsp; &nbsp; &nbsp; </span><span class="kwd" style="color: rgb(0, 0, 136); ">super</span><span class="pun" style="color: rgb(102, 102, 0); ">.</span><span class="pln" style="color: rgb(0, 0, 0); ">setUp</span><span class="pun" style="color: rgb(102, 102, 0); ">();</span><br />
<span class="pln" style="color: rgb(0, 0, 0); ">&nbsp; &nbsp; &nbsp; &nbsp; mActivity </span><span class="pun" style="color: rgb(102, 102, 0); ">=</span><span class="pln" style="color: rgb(0, 0, 0); "> </span><span class="kwd" style="color: rgb(0, 0, 136); ">this</span><span class="pun" style="color: rgb(102, 102, 0); ">.</span><span class="pln" style="color: rgb(0, 0, 0); ">getActivity</span><span class="pun" style="color: rgb(102, 102, 0); ">();</span><br />
<span class="pln" style="color: rgb(0, 0, 0); ">&nbsp; &nbsp; &nbsp; &nbsp; mView </span><span class="pun" style="color: rgb(102, 102, 0); ">=</span><span class="pln" style="color: rgb(0, 0, 0); "> </span><span class="pun" style="color: rgb(102, 102, 0); ">(</span><span class="typ" style="color: rgb(102, 0, 102); ">TextView</span><span class="pun" style="color: rgb(102, 102, 0); ">)</span><span class="pln" style="color: rgb(0, 0, 0); "> mActivity</span><span class="pun" style="color: rgb(102, 102, 0); ">.</span><span class="pln" style="color: rgb(0, 0, 0); ">findViewById</span><span class="pun" style="color: rgb(102, 102, 0); ">(</span><span class="pln" style="color: rgb(0, 0, 0); ">com</span><span class="pun" style="color: rgb(102, 102, 0); ">.</span><span class="pln" style="color: rgb(0, 0, 0); ">example</span><span class="pun" style="color: rgb(102, 102, 0); ">.</span><span class="pln" style="color: rgb(0, 0, 0); ">helloandroid</span><span class="pun" style="color: rgb(102, 102, 0); ">.</span><span class="pln" style="color: rgb(0, 0, 0); ">R</span><span class="pun" style="color: rgb(102, 102, 0); ">.</span><span class="pln" style="color: rgb(0, 0, 0); ">id</span><span class="pun" style="color: rgb(102, 102, 0); ">.</span><span class="pln" style="color: rgb(0, 0, 0); ">textview</span><span class="pun" style="color: rgb(102, 102, 0); ">);</span><br />
<span class="pln" style="color: rgb(0, 0, 0); ">&nbsp; &nbsp; &nbsp; &nbsp; resourceString </span><span class="pun" style="color: rgb(102, 102, 0); ">=</span><span class="pln" style="color: rgb(0, 0, 0); "> mActivity</span><span class="pun" style="color: rgb(102, 102, 0); ">.</span><span class="pln" style="color: rgb(0, 0, 0); ">getString</span><span class="pun" style="color: rgb(102, 102, 0); ">(</span><span class="pln" style="color: rgb(0, 0, 0); ">com</span><span class="pun" style="color: rgb(102, 102, 0); ">.</span><span class="pln" style="color: rgb(0, 0, 0); ">example</span><span class="pun" style="color: rgb(102, 102, 0); ">.</span><span class="pln" style="color: rgb(0, 0, 0); ">helloandroid</span><span class="pun" style="color: rgb(102, 102, 0); ">.</span><span class="pln" style="color: rgb(0, 0, 0); ">R</span><span class="pun" style="color: rgb(102, 102, 0); ">.</span><span class="kwd" style="color: rgb(0, 0, 136); ">string</span><span class="pun" style="color: rgb(102, 102, 0); ">.</span><span class="pln" style="color: rgb(0, 0, 0); ">hello</span><span class="pun" style="color: rgb(102, 102, 0); ">);</span><br />
<span class="pln" style="color: rgb(0, 0, 0); ">&nbsp; &nbsp; </span><span class="pun" style="color: rgb(102, 102, 0); ">}</span></pre><br />
		<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
			For this code to work, you must also add some class members and another import statement. To add the class members, add the following code immediately after the class definition:</p><br />
		<pre class="prettyprint" style="color: rgb(0, 112, 0); line-height: inherit; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); border-image: initial; background-color: rgb(250, 250, 250); padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; margin-top: 0px; margin-left: 1em; overflow-x: auto; overflow-y: auto; "><br />
<span class="pln" style="color: rgb(0, 0, 0); ">&nbsp; &nbsp; </span><span class="kwd" style="color: rgb(0, 0, 136); ">private</span><span class="pln" style="color: rgb(0, 0, 0); "> </span><span class="typ" style="color: rgb(102, 0, 102); ">HelloAndroid</span><span class="pln" style="color: rgb(0, 0, 0); "> mActivity</span><span class="pun" style="color: rgb(102, 102, 0); ">;</span><br />
<span class="pln" style="color: rgb(0, 0, 0); ">&nbsp; &nbsp; </span><span class="kwd" style="color: rgb(0, 0, 136); ">private</span><span class="pln" style="color: rgb(0, 0, 0); "> </span><span class="typ" style="color: rgb(102, 0, 102); ">TextView</span><span class="pln" style="color: rgb(0, 0, 0); "> mView</span><span class="pun" style="color: rgb(102, 102, 0); ">;</span><br />
<span class="pln" style="color: rgb(0, 0, 0); ">&nbsp; &nbsp; </span><span class="kwd" style="color: rgb(0, 0, 136); ">private</span><span class="pln" style="color: rgb(0, 0, 0); "> </span><span class="typ" style="color: rgb(102, 0, 102); ">String</span><span class="pln" style="color: rgb(0, 0, 0); "> resourceString</span><span class="pun" style="color: rgb(102, 102, 0); ">;</span></pre><br />
		<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
			To add the import statement, add the following statement just after the import for&nbsp;<code style="color: rgb(0, 112, 0); line-height: 1em; ">android.test.ActivityInstrumentationTestCase2</code>:</p><br />
		<pre class="prettyprint" style="color: rgb(0, 112, 0); line-height: inherit; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); border-image: initial; background-color: rgb(250, 250, 250); padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; margin-top: 0px; margin-left: 1em; overflow-x: auto; overflow-y: auto; "><br />
<span class="pln" style="color: rgb(0, 0, 0); ">&nbsp; </span><span class="kwd" style="color: rgb(0, 0, 136); ">import</span><span class="pln" style="color: rgb(0, 0, 0); "> android</span><span class="pun" style="color: rgb(102, 102, 0); ">.</span><span class="pln" style="color: rgb(0, 0, 0); ">widget</span><span class="pun" style="color: rgb(102, 102, 0); ">.</span><span class="typ" style="color: rgb(102, 0, 102); ">TextView</span><span class="pun" style="color: rgb(102, 102, 0); ">;</span></pre><br />
		<h3 id="CreatePreConditions" style="margin-top: 1.5em; margin-right: 0px; margin-bottom: 0.65em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 1.3em; color: rgb(58, 58, 58); "><br />
			Adding a preconditions test</h3><br />
		<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
			A preconditions test checks the initial application conditions prior to executing other tests. It&#39;s similar to&nbsp;<code style="color: rgb(0, 112, 0); line-height: 1em; ">setUp()</code>, but with less overhead, since it only runs once.</p><br />
		<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
			Although a preconditions test can check for a variety of different conditions, in this application it only needs to check whether the application under test is initialized properly and the target TextView exists. To do this, it calls the inherited&nbsp;<code style="color: rgb(0, 112, 0); line-height: 1em; "><a href="http://developer.android.com/reference/junit/framework/Assert.html#assertNotNull(java.lang.Object)" style="color: rgb(0, 102, 153); ">assertNotNull()</a></code>&nbsp;method, passing a reference to the TextView. The test succeeds only if the object reference is not null.</p><br />
		<pre class="prettyprint" style="color: rgb(0, 112, 0); line-height: inherit; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); border-image: initial; background-color: rgb(250, 250, 250); padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; margin-top: 0px; margin-left: 1em; overflow-x: auto; overflow-y: auto; "><br />
<span class="pln" style="color: rgb(0, 0, 0); ">&nbsp; &nbsp; </span><span class="kwd" style="color: rgb(0, 0, 136); ">public</span><span class="pln" style="color: rgb(0, 0, 0); "> </span><span class="kwd" style="color: rgb(0, 0, 136); ">void</span><span class="pln" style="color: rgb(0, 0, 0); "> testPreconditions</span><span class="pun" style="color: rgb(102, 102, 0); ">()</span><span class="pln" style="color: rgb(0, 0, 0); "> </span><span class="pun" style="color: rgb(102, 102, 0); ">{</span><br />
<span class="pln" style="color: rgb(0, 0, 0); ">&nbsp; &nbsp; &nbsp; assertNotNull</span><span class="pun" style="color: rgb(102, 102, 0); ">(</span><span class="pln" style="color: rgb(0, 0, 0); ">mView</span><span class="pun" style="color: rgb(102, 102, 0); ">);</span><br />
<span class="pln" style="color: rgb(0, 0, 0); ">&nbsp; &nbsp; </span><span class="pun" style="color: rgb(102, 102, 0); ">}</span></pre><br />
		<h3 id="CreateText" style="margin-top: 1.5em; margin-right: 0px; margin-bottom: 0.65em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 1.3em; color: rgb(58, 58, 58); "><br />
			Adding a unit test</h3><br />
		<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
			Now add a simple unit test to the test case class. The method&nbsp;<code style="color: rgb(0, 112, 0); line-height: 1em; ">testText()</code>&nbsp;will call a&nbsp;<code style="color: rgb(0, 112, 0); line-height: 1em; "><a href="http://developer.android.com/reference/junit/framework/Assert.html" style="color: rgb(0, 102, 153); ">JUnit Assert</a></code>&nbsp;method to check whether the target TextView is displaying the expected text.</p><br />
		<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
			For this example, the test expects that the TextView is displaying the string resource that was originally declared for it in HelloAndroid&#39;s&nbsp;<code style="color: rgb(0, 112, 0); line-height: 1em; ">main.xml</code>&nbsp;file, referred to by the resource ID&nbsp;<code style="color: rgb(0, 112, 0); line-height: 1em; ">hello</code>. The call to&nbsp;<code style="color: rgb(0, 112, 0); line-height: 1em; "><a href="http://developer.android.com/reference/junit/framework/Assert.html#assertEquals(java.lang.String, java.lang.String)" style="color: rgb(0, 102, 153); ">assertEquals(String,String)</a></code>&nbsp;compares the expected value, read directly from the&nbsp;<code style="color: rgb(0, 112, 0); line-height: 1em; ">hello</code>string resource, to the text displayed by the TextView, obtained from the TextView&#39;s&nbsp;<code style="color: rgb(0, 112, 0); line-height: 1em; ">getText()</code>&nbsp;method. The test succeeds only if the strings match.</p><br />
		<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
			To add this test, add the following code immediately after the&nbsp;<code style="color: rgb(0, 112, 0); line-height: 1em; ">testPreconditions()</code>&nbsp;method:</p><br />
		<pre class="prettyprint" style="color: rgb(0, 112, 0); line-height: inherit; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); border-image: initial; background-color: rgb(250, 250, 250); padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; margin-top: 0px; margin-left: 1em; overflow-x: auto; overflow-y: auto; "><br />
<span class="pln" style="color: rgb(0, 0, 0); ">&nbsp; &nbsp; </span><span class="kwd" style="color: rgb(0, 0, 136); ">public</span><span class="pln" style="color: rgb(0, 0, 0); "> </span><span class="kwd" style="color: rgb(0, 0, 136); ">void</span><span class="pln" style="color: rgb(0, 0, 0); "> testText</span><span class="pun" style="color: rgb(102, 102, 0); ">()</span><span class="pln" style="color: rgb(0, 0, 0); "> </span><span class="pun" style="color: rgb(102, 102, 0); ">{</span><br />
<span class="pln" style="color: rgb(0, 0, 0); ">&nbsp; &nbsp; &nbsp; assertEquals</span><span class="pun" style="color: rgb(102, 102, 0); ">(</span><span class="pln" style="color: rgb(0, 0, 0); ">resourceString</span><span class="pun" style="color: rgb(102, 102, 0); ">,(</span><span class="typ" style="color: rgb(102, 0, 102); ">String</span><span class="pun" style="color: rgb(102, 102, 0); ">)</span><span class="pln" style="color: rgb(0, 0, 0); ">mView</span><span class="pun" style="color: rgb(102, 102, 0); ">.</span><span class="pln" style="color: rgb(0, 0, 0); ">getText</span><span class="pun" style="color: rgb(102, 102, 0); ">());</span><br />
<span class="pln" style="color: rgb(0, 0, 0); ">&nbsp; &nbsp; </span><span class="pun" style="color: rgb(102, 102, 0); ">}</span></pre><br />
		<h3 id="CompleteTest" style="margin-top: 1.5em; margin-right: 0px; margin-bottom: 0.65em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 1.3em; color: rgb(58, 58, 58); "><br />
			The finished test case class</h3><br />
		<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
			You have now finished writing the test. This is what the complete test case class should look like:</p><br />
		<pre class="prettyprint" style="color: rgb(0, 112, 0); line-height: inherit; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(204, 204, 204); border-right-color: rgb(204, 204, 204); border-bottom-color: rgb(204, 204, 204); border-left-color: rgb(204, 204, 204); border-image: initial; background-color: rgb(250, 250, 250); padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; margin-top: 0px; margin-left: 1em; overflow-x: auto; overflow-y: auto; "><br />
<span class="kwd" style="color: rgb(0, 0, 136); ">package</span><span class="pln" style="color: rgb(0, 0, 0); "> com</span><span class="pun" style="color: rgb(102, 102, 0); ">.</span><span class="pln" style="color: rgb(0, 0, 0); ">example</span><span class="pun" style="color: rgb(102, 102, 0); ">.</span><span class="pln" style="color: rgb(0, 0, 0); ">helloandroid</span><span class="pun" style="color: rgb(102, 102, 0); ">.</span><span class="pln" style="color: rgb(0, 0, 0); ">test</span><span class="pun" style="color: rgb(102, 102, 0); ">;</span><br />
<br />
<span class="kwd" style="color: rgb(0, 0, 136); ">import</span><span class="pln" style="color: rgb(0, 0, 0); "> com</span><span class="pun" style="color: rgb(102, 102, 0); ">.</span><span class="pln" style="color: rgb(0, 0, 0); ">example</span><span class="pun" style="color: rgb(102, 102, 0); ">.</span><span class="pln" style="color: rgb(0, 0, 0); ">helloandroid</span><span class="pun" style="color: rgb(102, 102, 0); ">.</span><span class="typ" style="color: rgb(102, 0, 102); ">HelloAndroid</span><span class="pun" style="color: rgb(102, 102, 0); ">;</span><br />
<span class="kwd" style="color: rgb(0, 0, 136); ">import</span><span class="pln" style="color: rgb(0, 0, 0); "> android</span><span class="pun" style="color: rgb(102, 102, 0); ">.</span><span class="pln" style="color: rgb(0, 0, 0); ">test</span><span class="pun" style="color: rgb(102, 102, 0); ">.</span><span class="typ" style="color: rgb(102, 0, 102); ">ActivityInstrumentationTestCase2</span><span class="pun" style="color: rgb(102, 102, 0); ">;</span><br />
<span class="kwd" style="color: rgb(0, 0, 136); ">import</span><span class="pln" style="color: rgb(0, 0, 0); "> android</span><span class="pun" style="color: rgb(102, 102, 0); ">.</span><span class="pln" style="color: rgb(0, 0, 0); ">widget</span><span class="pun" style="color: rgb(102, 102, 0); ">.</span><span class="typ" style="color: rgb(102, 0, 102); ">TextView</span><span class="pun" style="color: rgb(102, 102, 0); ">;</span><br />
<br />
<span class="kwd" style="color: rgb(0, 0, 136); ">public</span><span class="pln" style="color: rgb(0, 0, 0); "> </span><span class="kwd" style="color: rgb(0, 0, 136); ">class</span><span class="pln" style="color: rgb(0, 0, 0); "> </span><span class="typ" style="color: rgb(102, 0, 102); ">HelloAndroidTest</span><span class="pln" style="color: rgb(0, 0, 0); "> </span><span class="kwd" style="color: rgb(0, 0, 136); ">extends</span><span class="pln" style="color: rgb(0, 0, 0); "> </span><span class="typ" style="color: rgb(102, 0, 102); ">ActivityInstrumentationTestCase2</span><span class="pun" style="color: rgb(102, 102, 0); ">&lt;</span><span class="typ" style="color: rgb(102, 0, 102); ">HelloAndroid</span><span class="pun" style="color: rgb(102, 102, 0); ">&gt;</span><span class="pln" style="color: rgb(0, 0, 0); "> </span><span class="pun" style="color: rgb(102, 102, 0); ">{</span><br />
<span class="pln" style="color: rgb(0, 0, 0); ">&nbsp; &nbsp; </span><span class="kwd" style="color: rgb(0, 0, 136); ">private</span><span class="pln" style="color: rgb(0, 0, 0); "> </span><span class="typ" style="color: rgb(102, 0, 102); ">HelloAndroid</span><span class="pln" style="color: rgb(0, 0, 0); "> mActivity</span><span class="pun" style="color: rgb(102, 102, 0); ">;</span><span class="pln" style="color: rgb(0, 0, 0); "> &nbsp;</span><span class="com" style="color: rgb(136, 0, 0); ">// the activity under test</span><br />
<span class="pln" style="color: rgb(0, 0, 0); ">&nbsp; &nbsp; </span><span class="kwd" style="color: rgb(0, 0, 136); ">private</span><span class="pln" style="color: rgb(0, 0, 0); "> </span><span class="typ" style="color: rgb(102, 0, 102); ">TextView</span><span class="pln" style="color: rgb(0, 0, 0); "> mView</span><span class="pun" style="color: rgb(102, 102, 0); ">;</span><span class="pln" style="color: rgb(0, 0, 0); "> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span><span class="com" style="color: rgb(136, 0, 0); ">// the activity&#39;s TextView (the only view)</span><br />
<span class="pln" style="color: rgb(0, 0, 0); ">&nbsp; &nbsp; </span><span class="kwd" style="color: rgb(0, 0, 136); ">private</span><span class="pln" style="color: rgb(0, 0, 0); "> </span><span class="typ" style="color: rgb(102, 0, 102); ">String</span><span class="pln" style="color: rgb(0, 0, 0); "> resourceString</span><span class="pun" style="color: rgb(102, 102, 0); ">;</span><br />
<br />
<span class="pln" style="color: rgb(0, 0, 0); ">&nbsp; &nbsp; </span><span class="kwd" style="color: rgb(0, 0, 136); ">public</span><span class="pln" style="color: rgb(0, 0, 0); "> </span><span class="typ" style="color: rgb(102, 0, 102); ">HelloAndroidTest</span><span class="pun" style="color: rgb(102, 102, 0); ">()</span><span class="pln" style="color: rgb(0, 0, 0); "> </span><span class="pun" style="color: rgb(102, 102, 0); ">{</span><br />
<span class="pln" style="color: rgb(0, 0, 0); ">&nbsp; &nbsp; &nbsp; </span><span class="kwd" style="color: rgb(0, 0, 136); ">super</span><span class="pun" style="color: rgb(102, 102, 0); ">(</span><span class="str" style="color: rgb(0, 136, 0); ">&quot;com.example.helloandroid&quot;</span><span class="pun" style="color: rgb(102, 102, 0); ">,</span><span class="pln" style="color: rgb(0, 0, 0); "> </span><span class="typ" style="color: rgb(102, 0, 102); ">HelloAndroid</span><span class="pun" style="color: rgb(102, 102, 0); ">.</span><span class="kwd" style="color: rgb(0, 0, 136); ">class</span><span class="pun" style="color: rgb(102, 102, 0); ">);</span><br />
<span class="pln" style="color: rgb(0, 0, 0); ">&nbsp; &nbsp; </span><span class="pun" style="color: rgb(102, 102, 0); ">}</span><br />
<span class="pln" style="color: rgb(0, 0, 0); ">&nbsp; &nbsp; </span><span class="lit" style="color: rgb(0, 102, 102); ">@Override</span><br />
<span class="pln" style="color: rgb(0, 0, 0); ">&nbsp; &nbsp; </span><span class="kwd" style="color: rgb(0, 0, 136); ">protected</span><span class="pln" style="color: rgb(0, 0, 0); "> </span><span class="kwd" style="color: rgb(0, 0, 136); ">void</span><span class="pln" style="color: rgb(0, 0, 0); "> setUp</span><span class="pun" style="color: rgb(102, 102, 0); ">()</span><span class="pln" style="color: rgb(0, 0, 0); "> </span><span class="kwd" style="color: rgb(0, 0, 136); ">throws</span><span class="pln" style="color: rgb(0, 0, 0); "> </span><span class="typ" style="color: rgb(102, 0, 102); ">Exception</span><span class="pln" style="color: rgb(0, 0, 0); "> </span><span class="pun" style="color: rgb(102, 102, 0); ">{</span><br />
<span class="pln" style="color: rgb(0, 0, 0); ">&nbsp; &nbsp; &nbsp; &nbsp; </span><span class="kwd" style="color: rgb(0, 0, 136); ">super</span><span class="pun" style="color: rgb(102, 102, 0); ">.</span><span class="pln" style="color: rgb(0, 0, 0); ">setUp</span><span class="pun" style="color: rgb(102, 102, 0); ">();</span><br />
<span class="pln" style="color: rgb(0, 0, 0); ">&nbsp; &nbsp; &nbsp; &nbsp; mActivity </span><span class="pun" style="color: rgb(102, 102, 0); ">=</span><span class="pln" style="color: rgb(0, 0, 0); "> </span><span class="kwd" style="color: rgb(0, 0, 136); ">this</span><span class="pun" style="color: rgb(102, 102, 0); ">.</span><span class="pln" style="color: rgb(0, 0, 0); ">getActivity</span><span class="pun" style="color: rgb(102, 102, 0); ">();</span><br />
<span class="pln" style="color: rgb(0, 0, 0); ">&nbsp; &nbsp; &nbsp; &nbsp; mView </span><span class="pun" style="color: rgb(102, 102, 0); ">=</span><span class="pln" style="color: rgb(0, 0, 0); "> </span><span class="pun" style="color: rgb(102, 102, 0); ">(</span><span class="typ" style="color: rgb(102, 0, 102); ">TextView</span><span class="pun" style="color: rgb(102, 102, 0); ">)</span><span class="pln" style="color: rgb(0, 0, 0); "> mActivity</span><span class="pun" style="color: rgb(102, 102, 0); ">.</span><span class="pln" style="color: rgb(0, 0, 0); ">findViewById</span><span class="pun" style="color: rgb(102, 102, 0); ">(</span><span class="pln" style="color: rgb(0, 0, 0); ">com</span><span class="pun" style="color: rgb(102, 102, 0); ">.</span><span class="pln" style="color: rgb(0, 0, 0); ">example</span><span class="pun" style="color: rgb(102, 102, 0); ">.</span><span class="pln" style="color: rgb(0, 0, 0); ">helloandroid</span><span class="pun" style="color: rgb(102, 102, 0); ">.</span><span class="pln" style="color: rgb(0, 0, 0); ">R</span><span class="pun" style="color: rgb(102, 102, 0); ">.</span><span class="pln" style="color: rgb(0, 0, 0); ">id</span><span class="pun" style="color: rgb(102, 102, 0); ">.</span><span class="pln" style="color: rgb(0, 0, 0); ">textview</span><span class="pun" style="color: rgb(102, 102, 0); ">);</span><br />
<span class="pln" style="color: rgb(0, 0, 0); ">&nbsp; &nbsp; &nbsp; &nbsp; resourceString </span><span class="pun" style="color: rgb(102, 102, 0); ">=</span><span class="pln" style="color: rgb(0, 0, 0); "> mActivity</span><span class="pun" style="color: rgb(102, 102, 0); ">.</span><span class="pln" style="color: rgb(0, 0, 0); ">getString</span><span class="pun" style="color: rgb(102, 102, 0); ">(</span><span class="pln" style="color: rgb(0, 0, 0); ">com</span><span class="pun" style="color: rgb(102, 102, 0); ">.</span><span class="pln" style="color: rgb(0, 0, 0); ">example</span><span class="pun" style="color: rgb(102, 102, 0); ">.</span><span class="pln" style="color: rgb(0, 0, 0); ">helloandroid</span><span class="pun" style="color: rgb(102, 102, 0); ">.</span><span class="pln" style="color: rgb(0, 0, 0); ">R</span><span class="pun" style="color: rgb(102, 102, 0); ">.</span><span class="kwd" style="color: rgb(0, 0, 136); ">string</span><span class="pun" style="color: rgb(102, 102, 0); ">.</span><span class="pln" style="color: rgb(0, 0, 0); ">hello</span><span class="pun" style="color: rgb(102, 102, 0); ">);</span><br />
<span class="pln" style="color: rgb(0, 0, 0); ">&nbsp; &nbsp; </span><span class="pun" style="color: rgb(102, 102, 0); ">}</span><br />
<span class="pln" style="color: rgb(0, 0, 0); ">&nbsp; &nbsp; </span><span class="kwd" style="color: rgb(0, 0, 136); ">public</span><span class="pln" style="color: rgb(0, 0, 0); "> </span><span class="kwd" style="color: rgb(0, 0, 136); ">void</span><span class="pln" style="color: rgb(0, 0, 0); "> testPreconditions</span><span class="pun" style="color: rgb(102, 102, 0); ">()</span><span class="pln" style="color: rgb(0, 0, 0); "> </span><span class="pun" style="color: rgb(102, 102, 0); ">{</span><br />
<span class="pln" style="color: rgb(0, 0, 0); ">&nbsp; &nbsp; &nbsp; assertNotNull</span><span class="pun" style="color: rgb(102, 102, 0); ">(</span><span class="pln" style="color: rgb(0, 0, 0); ">mView</span><span class="pun" style="color: rgb(102, 102, 0); ">);</span><br />
<span class="pln" style="color: rgb(0, 0, 0); ">&nbsp; &nbsp; </span><span class="pun" style="color: rgb(102, 102, 0); ">}</span><br />
<span class="pln" style="color: rgb(0, 0, 0); ">&nbsp; &nbsp; </span><span class="kwd" style="color: rgb(0, 0, 136); ">public</span><span class="pln" style="color: rgb(0, 0, 0); "> </span><span class="kwd" style="color: rgb(0, 0, 136); ">void</span><span class="pln" style="color: rgb(0, 0, 0); "> testText</span><span class="pun" style="color: rgb(102, 102, 0); ">()</span><span class="pln" style="color: rgb(0, 0, 0); "> </span><span class="pun" style="color: rgb(102, 102, 0); ">{</span><br />
<span class="pln" style="color: rgb(0, 0, 0); ">&nbsp; &nbsp; &nbsp; assertEquals</span><span class="pun" style="color: rgb(102, 102, 0); ">(</span><span class="pln" style="color: rgb(0, 0, 0); ">resourceString</span><span class="pun" style="color: rgb(102, 102, 0); ">,(</span><span class="typ" style="color: rgb(102, 0, 102); ">String</span><span class="pun" style="color: rgb(102, 102, 0); ">)</span><span class="pln" style="color: rgb(0, 0, 0); ">mView</span><span class="pun" style="color: rgb(102, 102, 0); ">.</span><span class="pln" style="color: rgb(0, 0, 0); ">getText</span><span class="pun" style="color: rgb(102, 102, 0); ">());</span><br />
<span class="pln" style="color: rgb(0, 0, 0); ">&nbsp; &nbsp; </span><span class="pun" style="color: rgb(102, 102, 0); ">}</span><br />
<span class="pun" style="color: rgb(102, 102, 0); ">}</span></pre><br />
		<h2 id="RunTest" style="margin-top: 2em; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0.5em; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 2px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 1.45em; color: rgb(17, 17, 17); border-top-style: solid; border-top-color: rgb(204, 204, 204); "><br />
			Running the Tests and Seeing the Results</h2><br />
		<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
			You can now run the tests you&#39;ve created against the Hello, Android application. In Eclipse with ADT, you run a test application as an&nbsp;<strong>Android JUnit test</strong>&nbsp;rather than a regular Android application.</p><br />
		<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
			To run the test application as an Android JUnit test, in the Package Explorer right-click the HelloAndroidTest project and select&nbsp;<strong>Run As</strong>&nbsp;&gt;&nbsp;<strong>Android JUnit Test</strong></p><br />
		<a href="http://developer.android.com/images/testing/hwtest_runas_menu_callouts.png" style="color: rgb(0, 102, 153); "><img alt="Menu to run Hello, World as an Android JUnit test" src="http://developer.android.com/images/testing/hwtest_runas_menu_callouts.png" style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 1em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; height: 230px; " /></a><br />
		<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
			The ADT plugin then launches the test application and the application under test on a the target emulator or device. When both applications are running, the testing framework runs the tests and reports the results in the JUnit view of Eclipse, which appears by default as a tab next to the Package Explorer.</p><br />
		<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
			As shown below, the JUnit view shows test results in two separate panes: an upper pane summarizes the tests that were run and a lower pane reports the failure traces for the tests. In this case, the tests in this example have run successfully, so there is no failure reported in the view:</p><br />
		<a href="http://developer.android.com/images/testing/hwtest_junit_success.png" style="color: rgb(0, 102, 153); "><img alt="JUnit test run success" src="http://developer.android.com/images/testing/hwtest_junit_success.png" style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 1em; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; height: 230px; " /></a><br />
		<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
			The upper pane summarizes the test:</p><br />
		<ul style="margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 2em; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
			<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0.5em; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
				&quot;Finished after&nbsp;<em>x</em>&nbsp;seconds&quot;: How long the test took to run.</li><br />
			<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0.5em; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
				&quot;Runs&quot;: The number of tests run.</li><br />
			<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0.5em; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
				&quot;Errors:&quot;: The number of program errors and exceptions encountered during the test run.</li><br />
			<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0.5em; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
				&quot;Failures:&quot;: The number of assertion failures encountered during the test run.</li><br />
			<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0.5em; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
				A progress bar. The progress bar extends from left to right as the tests run.<br />
				<p style="margin-top: 0.5em; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
					If all the tests succeed, the bar remains green. If a test fails, the bar turns from green to red.</p><br />
			</li><br />
			<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0.5em; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
				A test method summary. Below the bar, you see a line for each class in the test application, labeled by its fully-qualified class name. To look at the results for the individual methods in a test case class, click the arrow at the left of the class to expand the line. You see the name of each test method. To the right of the method name, you see the time needed to run that method. You can look at the method&#39;s code by double-clicking its name.</li><br />
		</ul><br />
		<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
			The lower pane contains the failure trace. If all the tests are successful, this pane is empty. If some tests fail, then if you select a failed test in the upper pane, the lower view contains a stack trace for the test.</p><br />
		<h2 id="NextSteps" style="margin-top: 2em; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0.5em; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 2px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 1.45em; color: rgb(17, 17, 17); border-top-style: solid; border-top-color: rgb(204, 204, 204); "><br />
			Next Steps</h2><br />
		<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
			This simple example test application has shown you how to create a test project, create a test class and test cases, and then run the tests against a target application. Now that you are familiar with these fundamentals, here are some suggested next steps:</p><br />
		<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
			<strong>Learn more about testing on Android</strong></p><br />
		<ul style="margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 2em; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
			<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0.5em; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
				The&nbsp;<a href="http://developer.android.com/guide/topics/testing/testing_android.html" style="color: rgb(0, 102, 153); ">Testing Android Applications</a>&nbsp;document in the&nbsp;<em>Dev Guide</em>&nbsp;provides an overview of how testing on Android works. If you are just getting started with Android testing, reading that document will help you understand the tools available to you, so that you can develop effective tests.</li><br />
		</ul><br />
		<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
			<strong>Learn more about the testing classes available in Android</strong></p><br />
		<ul style="margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 2em; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
			<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0.5em; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
				For an overview of the types of testing classes you can use, browse through the reference documentation for&nbsp;<code style="color: rgb(0, 112, 0); line-height: 1em; "><a href="http://developer.android.com/reference/android/test/ActivityInstrumentationTestCase2.html" style="color: rgb(0, 102, 153); ">ActivityInstrumentationTestCase2</a></code>,<code style="color: rgb(0, 112, 0); line-height: 1em; "><a href="http://developer.android.com/reference/android/test/ProviderTestCase2.html" style="color: rgb(0, 102, 153); ">ProviderTestCase2</a></code>,&nbsp;<code style="color: rgb(0, 112, 0); line-height: 1em; "><a href="http://developer.android.com/reference/android/test/ServiceTestCase.html" style="color: rgb(0, 102, 153); ">ServiceTestCase</a></code>, and&nbsp;<code style="color: rgb(0, 112, 0); line-height: 1em; "><a href="http://developer.android.com/reference/junit/framework/Assert.html" style="color: rgb(0, 102, 153); ">Assert</a></code>.</li><br />
		</ul><br />
		<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
			<strong>Explore the Android instrumentation framework</strong></p><br />
		<ul style="margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 2em; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
			<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0.5em; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
				The&nbsp;<code style="color: rgb(0, 112, 0); line-height: 1em; "><a href="http://developer.android.com/reference/android/test/InstrumentationTestRunner.html" style="color: rgb(0, 102, 153); ">InstrumentationTestRunner</a></code>&nbsp;class contains the code that Android uses to run tests against an application. The&nbsp;<code style="color: rgb(0, 112, 0); line-height: 1em; "><a href="http://developer.android.com/reference/android/test/InstrumentationTestCase.html" style="color: rgb(0, 102, 153); ">InstrumentationTestCase</a></code>&nbsp;class is the base class for test case classes that use additional instrumentation features.</li><br />
		</ul><br />
		<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
			<strong>Follow the Activity Testing tutorial</strong></p><br />
		<ul style="margin-top: 0px; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 2em; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
			<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0.5em; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
				The&nbsp;<a href="http://developer.android.com/resources/tutorials/testing/activity_test.html" style="color: rgb(0, 102, 153); ">Activity Testing</a>&nbsp;tutorial is an excellent follow-up to this tutorial. It guides you through a more complex testing scenario that you develop against a more realistic application.</li><br />
		</ul><br />
	</div><br />
	<a href="http://developer.android.com/resources/tutorials/testing/helloandroid_test.html#top" style="color: rgb(0, 102, 153); float: right; display: inline; ">&uarr; Go to top</a><br />
	<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; line-height: 1.3em; "><br />
		<a href="http://developer.android.com/resources/browser.html?tag=tutorial" style="color: rgb(0, 102, 153); ">&larr; Back to Tutorials</a></p><br />
</div><br />
]]]></description>
		<pubDate>Array</pubDate>
		</item>

		<item>
		<category><![CDATA[[]]]></category>
		<title><![CDATA[[Creating an Android JUnit Test project in Eclipse]]]></title>
		<link>http://www.sarangnamu.net/basic/basic_view.php?no=5199</link>
		<description><![CDATA[[<p><br />
	&nbsp;</p><br />
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; clear: both; word-wrap: break-word; color: rgb(0, 0, 0); font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; line-height: 18px; text-align: left; "><br />
	<a href="http://stackoverflow.com/questions/5395216/creating-an-android-junit-test-project-in-eclipse">http://stackoverflow.com/questions/5395216/creating-an-android-junit-test-project-in-eclipse</a></p><br />
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; clear: both; word-wrap: break-word; color: rgb(0, 0, 0); font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; line-height: 18px; text-align: left; "><br />
	&nbsp;</p><br />
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; clear: both; word-wrap: break-word; color: rgb(0, 0, 0); font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; line-height: 18px; text-align: left; "><br />
	I am using Helios with the latest current version of Android (10.0.1)</p><br />
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; clear: both; word-wrap: break-word; color: rgb(0, 0, 0); font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; line-height: 18px; text-align: left; "><br />
	The&nbsp;<a href="http://developer.android.com/guide/topics/testing/testing_android.html" rel="nofollow" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; color: rgb(74, 107, 130); text-decoration: none; cursor: pointer; ">Android Testing fundamentals</a>&nbsp;recommends you place the tests in the same project folder as your<code style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 5px; padding-bottom: 1px; padding-left: 5px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(238, 238, 238); font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; ">src</code>&nbsp;folder. Some people have recommended that you create a new test project in its own folder so it doesn&#39;t get packaged into the apk. I looked inside my apk and I don&#39;t think the test stuff was included (but I could be wrong). I like having it in the same directory as its more convenient for revision control - you don&#39;t need to sync two projects each time.</p><br />
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; clear: both; word-wrap: break-word; color: rgb(0, 0, 0); font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; line-height: 18px; text-align: left; "><br />
	Assume we want to create a test suite for the&nbsp;<code style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 5px; padding-bottom: 1px; padding-left: 5px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(238, 238, 238); font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; ">MyAndroidApp</code>&nbsp;project</p><br />
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; clear: both; word-wrap: break-word; color: rgb(0, 0, 0); font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; line-height: 18px; text-align: left; "><br />
	Goto File.. New.. Other.. Android...Android Text Project</p><br />
<ul style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 30px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; list-style-position: initial; list-style-image: initial; color: rgb(0, 0, 0); font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; line-height: 18px; text-align: left; "><br />
	<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; word-wrap: break-word; "><br />
		Set &quot;Test Project Name&quot; to&nbsp;<code style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(238, 238, 238); font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; ">MyAndroidAppTest</code></li><br />
	<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; word-wrap: break-word; "><br />
		For Test Target, choose &quot;An existing Android project&quot;.. Use the Browse button to select<code style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(238, 238, 238); font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; ">MyAndroidApp</code></li><br />
	<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; word-wrap: break-word; "><br />
		Unselect &quot;Use default location&quot;. This changes the location to be inside the MyAndroidApp project under the&nbsp;<code style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(238, 238, 238); font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; ">tests</code>&nbsp;directory</li><br />
	<li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; word-wrap: break-word; "><br />
		Click Finish</li><br />
</ul><br />
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; clear: both; word-wrap: break-word; color: rgb(0, 0, 0); font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; line-height: 18px; text-align: left; "><br />
	When it is being created, if you get a&nbsp;<code style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 5px; padding-bottom: 1px; padding-left: 5px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(238, 238, 238); font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; ">An internal error occurred during: &quot;Refreshing workspace&quot;.</code>&nbsp;error (or other errors) just ignore it. Click OK.</p><br />
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; clear: both; word-wrap: break-word; color: rgb(0, 0, 0); font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; line-height: 18px; text-align: left; "><br />
	-Clean the&nbsp;<code style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 5px; padding-bottom: 1px; padding-left: 5px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(238, 238, 238); font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; ">MyAndroidApp</code>&nbsp;project</p><br />
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; clear: both; word-wrap: break-word; color: rgb(0, 0, 0); font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; line-height: 18px; text-align: left; "><br />
	Even though the project is in the&nbsp;<code style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 5px; padding-bottom: 1px; padding-left: 5px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(238, 238, 238); font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; ">&lt;workspace path&gt;/MyAndroidApp/tests</code>&nbsp;directory it will appear as a normal Eclipse project in the package explorer. Clean the&nbsp;<code style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 5px; padding-bottom: 1px; padding-left: 5px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(238, 238, 238); font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; ">MyAndroidAppTest</code>&nbsp;project. This worked for me.</p><br />
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; clear: both; word-wrap: break-word; color: rgb(0, 0, 0); font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; line-height: 18px; text-align: left; "><br />
	<strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; font-weight: bold; ">EDIT</strong></p><br />
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; font-size: 14px; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; clear: both; word-wrap: break-word; color: rgb(0, 0, 0); font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; line-height: 18px; text-align: left; "><br />
	If you upload to SVN in Eclipse (by syncing the&nbsp;<code style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 5px; padding-bottom: 1px; padding-left: 5px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(238, 238, 238); font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; ">MyAndroidApp</code>&nbsp;project, not the&nbsp;<code style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 5px; padding-bottom: 1px; padding-left: 5px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(238, 238, 238); font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; ">MyAndroidAppTest</code>project) you need to do a little more (I&#39;ve just done it now). So when you&nbsp;<em style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: transparent; ">update</em>&nbsp;your other working copy it will pull down the&nbsp;<code style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 5px; padding-bottom: 1px; padding-left: 5px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(238, 238, 238); font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; ">/tests</code>&nbsp;directory. The&nbsp;<code style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 5px; padding-bottom: 1px; padding-left: 5px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(238, 238, 238); font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; ">MyAndroidAppTest</code>&nbsp;project does not automatically show up in the Package Explorer. So you need to go to File.. Import...Existing Projects into Workspace.... Then select the root directory by browsing to your&nbsp;<code style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 1px; padding-right: 5px; padding-bottom: 1px; padding-left: 5px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; vertical-align: baseline; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(238, 238, 238); font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; ">&lt;workspace path&gt;/MyAndroidApp/tests</code>&nbsp;directory and click Finish.</p><br />
]]]></description>
		<pubDate>Array</pubDate>
		</item>

		<item>
		<category><![CDATA[[]]]></category>
		<title><![CDATA[[javadoc error]]]></title>
		<link>http://www.sarangnamu.net/basic/basic_view.php?no=5198</link>
		<description><![CDATA[[http://soriwa.tistory.com/59<br />
5. VM potions (prefixed with '-J', e.g. -J-Xmx180m for larger heap space): Ç×¸ñ¿¡¼­ ÀÎÄÚµù ¿É¼ÇÀ» ¼³Á¤(¿¹. -encoding UTF-8)ÈÄ Finish<br />
<br />
# ÀÌ·± ¼¼¹ÐÇÑ ¿É¼Çµµ ÀÖ±º...<br />
-locale ko_KR -encoding UTF-8 -charset UTF-8 -docencoding UTF-8]]]></description>
		<pubDate>Array</pubDate>
		</item>

		<item>
		<category><![CDATA[[]]]></category>
		<title><![CDATA[[scheduler code for iCalendar]]]></title>
		<link>http://www.sarangnamu.net/basic/basic_view.php?no=5195</link>
		<description><![CDATA[[[b]android 2.2 based[/b]<br />
[code]<br />
/*<br />
 * Copyright (C) 2007 The Android Open Source Project<br />
 *<br />
 * Licensed under the Apache License, Version 2.0 (the "License");<br />
 * you may not use this file except in compliance with the License.<br />
 * You may obtain a copy of the License at<br />
 *<br />
 *      http://www.apache.org/licenses/LICENSE-2.0<br />
 *<br />
 * Unless required by applicable law or agreed to in writing, software<br />
 * distributed under the License is distributed on an "AS IS" BASIS,<br />
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<br />
 * See the License for the specific language governing permissions and<br />
 * limitations under the License.<br />
 */<br />
<br />
package com.android.calendar;<br />
<br />
import android.content.Context;<br />
import android.content.SharedPreferences;<br />
import android.content.res.Resources;<br />
import android.database.Cursor;<br />
import android.os.Debug;<br />
import android.preference.PreferenceManager;<br />
import android.provider.Calendar.Attendees;<br />
import android.provider.Calendar.Events;<br />
import android.provider.Calendar.Instances;<br />
import android.text.TextUtils;<br />
import android.text.format.DateUtils;<br />
import android.text.format.Time;<br />
import android.util.Log;<br />
<br />
import java.util.ArrayList;<br />
import java.util.Iterator;<br />
import java.util.concurrent.atomic.AtomicInteger;<br />
<br />
// TODO: should Event be Parcelable so it can be passed via Intents?<br />
public class Event implements Comparable, Cloneable {<br />
<br />
    private static final boolean PROFILE = false;<br />
<br />
    private static final String[] PROJECTION = new String[] {<br />
            Instances.TITLE,                 // 0<br />
            Instances.EVENT_LOCATION,        // 1<br />
            Instances.ALL_DAY,               // 2<br />
            Instances.COLOR,                 // 3<br />
            Instances.EVENT_TIMEZONE,        // 4<br />
            Instances.EVENT_ID,              // 5<br />
            Instances.BEGIN,                 // 6<br />
            Instances.END,                   // 7<br />
            Instances._ID,                   // 8<br />
            Instances.START_DAY,             // 9<br />
            Instances.END_DAY,               // 10<br />
            Instances.START_MINUTE,          // 11<br />
            Instances.END_MINUTE,            // 12<br />
            Instances.HAS_ALARM,             // 13<br />
            Instances.RRULE,                 // 14<br />
            Instances.RDATE,                 // 15<br />
            Instances.SELF_ATTENDEE_STATUS,  // 16<br />
            Events.ORGANIZER,                // 17<br />
            Events.GUESTS_CAN_MODIFY,        // 18<br />
    };<br />
<br />
    // The indices for the projection array above.<br />
    private static final int PROJECTION_TITLE_INDEX = 0;<br />
    private static final int PROJECTION_LOCATION_INDEX = 1;<br />
    private static final int PROJECTION_ALL_DAY_INDEX = 2;<br />
    private static final int PROJECTION_COLOR_INDEX = 3;<br />
    private static final int PROJECTION_TIMEZONE_INDEX = 4;<br />
    private static final int PROJECTION_EVENT_ID_INDEX = 5;<br />
    private static final int PROJECTION_BEGIN_INDEX = 6;<br />
    private static final int PROJECTION_END_INDEX = 7;<br />
    private static final int PROJECTION_START_DAY_INDEX = 9;<br />
    private static final int PROJECTION_END_DAY_INDEX = 10;<br />
    private static final int PROJECTION_START_MINUTE_INDEX = 11;<br />
    private static final int PROJECTION_END_MINUTE_INDEX = 12;<br />
    private static final int PROJECTION_HAS_ALARM_INDEX = 13;<br />
    private static final int PROJECTION_RRULE_INDEX = 14;<br />
    private static final int PROJECTION_RDATE_INDEX = 15;<br />
    private static final int PROJECTION_SELF_ATTENDEE_STATUS_INDEX = 16;<br />
    private static final int PROJECTION_ORGANIZER_INDEX = 17;<br />
    private static final int PROJECTION_GUESTS_CAN_INVITE_OTHERS_INDEX = 18;<br />
<br />
    public long id;<br />
    public int color;<br />
    public CharSequence title;<br />
    public CharSequence location;<br />
    public boolean allDay;<br />
    public String organizer;<br />
    public boolean guestsCanModify;<br />
<br />
    public int startDay;       // start Julian day<br />
    public int endDay;         // end Julian day<br />
    public int startTime;      // Start and end time are in minutes since midnight<br />
    public int endTime;<br />
<br />
    public long startMillis;   // UTC milliseconds since the epoch<br />
    public long endMillis;     // UTC milliseconds since the epoch<br />
    private int mColumn;<br />
    private int mMaxColumns;<br />
<br />
    public boolean hasAlarm;<br />
    public boolean isRepeating;<br />
    <br />
    public int selfAttendeeStatus;<br />
<br />
    // The coordinates of the event rectangle drawn on the screen.<br />
    public float left;<br />
    public float right;<br />
    public float top;<br />
    public float bottom;<br />
<br />
    // These 4 fields are used for navigating among events within the selected<br />
    // hour in the Day and Week view.<br />
    public Event nextRight;<br />
    public Event nextLeft;<br />
    public Event nextUp;<br />
    public Event nextDown;<br />
<br />
    private static final int MIDNIGHT_IN_MINUTES = 24 * 60;<br />
<br />
    @Override<br />
    public final Object clone() throws CloneNotSupportedException {<br />
        super.clone();<br />
        Event e = new Event();<br />
<br />
        e.title = title;<br />
        e.color = color;<br />
        e.location = location;<br />
        e.allDay = allDay;<br />
        e.startDay = startDay;<br />
        e.endDay = endDay;<br />
        e.startTime = startTime;<br />
        e.endTime = endTime;<br />
        e.startMillis = startMillis;<br />
        e.endMillis = endMillis;<br />
        e.hasAlarm = hasAlarm;<br />
        e.isRepeating = isRepeating;<br />
        e.selfAttendeeStatus = selfAttendeeStatus;<br />
        e.organizer = organizer;<br />
        e.guestsCanModify = guestsCanModify;<br />
<br />
        return e;<br />
    }<br />
<br />
    public final void copyTo(Event dest) {<br />
        dest.id = id;<br />
        dest.title = title;<br />
        dest.color = color;<br />
        dest.location = location;<br />
        dest.allDay = allDay;<br />
        dest.startDay = startDay;<br />
        dest.endDay = endDay;<br />
        dest.startTime = startTime;<br />
        dest.endTime = endTime;<br />
        dest.startMillis = startMillis;<br />
        dest.endMillis = endMillis;<br />
        dest.hasAlarm = hasAlarm;<br />
        dest.isRepeating = isRepeating;<br />
        dest.selfAttendeeStatus = selfAttendeeStatus;<br />
        dest.organizer = organizer;<br />
        dest.guestsCanModify = guestsCanModify;<br />
    }<br />
<br />
    public static final Event newInstance() {<br />
        Event e = new Event();<br />
<br />
        e.id = 0;<br />
        e.title = null;<br />
        e.color = 0;<br />
        e.location = null;<br />
        e.allDay = false;<br />
        e.startDay = 0;<br />
        e.endDay = 0;<br />
        e.startTime = 0;<br />
        e.endTime = 0;<br />
        e.startMillis = 0;<br />
        e.endMillis = 0;<br />
        e.hasAlarm = false;<br />
        e.isRepeating = false;<br />
        e.selfAttendeeStatus = Attendees.ATTENDEE_STATUS_NONE;<br />
<br />
        return e;<br />
    }<br />
<br />
    /**<br />
     * Compares this event to the given event.  This is just used for checking<br />
     * if two events differ.  It's not used for sorting anymore.<br />
     */<br />
    public final int compareTo(Object obj) {<br />
        Event e = (Event) obj;<br />
<br />
        // The earlier start day and time comes first<br />
        if (startDay < e.startDay) return -1;<br />
        if (startDay > e.startDay) return 1;<br />
        if (startTime < e.startTime) return -1;<br />
        if (startTime > e.startTime) return 1;<br />
<br />
        // The later end time comes first (in order to put long strips on<br />
        // the left).<br />
        if (endDay < e.endDay) return 1;<br />
        if (endDay > e.endDay) return -1;<br />
        if (endTime < e.endTime) return 1;<br />
        if (endTime > e.endTime) return -1;<br />
<br />
        // Sort all-day events before normal events.<br />
        if (allDay && !e.allDay) return -1;<br />
        if (!allDay && e.allDay) return 1;<br />
<br />
        if (guestsCanModify && !e.guestsCanModify) return -1;<br />
        if (!guestsCanModify && e.guestsCanModify) return 1;<br />
<br />
        // If two events have the same time range, then sort them in<br />
        // alphabetical order based on their titles.<br />
        int cmp = compareStrings(title, e.title);<br />
        if (cmp != 0) {<br />
            return cmp;<br />
        }<br />
<br />
        // If the titles are the same then compare the other fields<br />
        // so that we can use this function to check for differences<br />
        // between events.<br />
        cmp = compareStrings(location, e.location);<br />
        if (cmp != 0) {<br />
            return cmp;<br />
        }<br />
<br />
        cmp = compareStrings(organizer, e.organizer);<br />
        if (cmp != 0) {<br />
            return cmp;<br />
        }<br />
        return 0;<br />
    }<br />
<br />
    /**<br />
     * Compare string a with string b, but if either string is null,<br />
     * then treat it (the null) as if it were the empty string ("").<br />
     *<br />
     * @param a the first string<br />
     * @param b the second string<br />
     * @return the result of comparing a with b after replacing null<br />
     *  strings with "".<br />
     */<br />
    private int compareStrings(CharSequence a, CharSequence b) {<br />
        String aStr, bStr;<br />
        if (a != null) {<br />
            aStr = a.toString();<br />
        } else {<br />
            aStr = "";<br />
        }<br />
        if (b != null) {<br />
            bStr = b.toString();<br />
        } else {<br />
            bStr = "";<br />
        }<br />
        return aStr.compareTo(bStr);<br />
    }<br />
<br />
    /**<br />
     * Loads <i>days</i> days worth of instances starting at <i>start</i>.<br />
     */<br />
    public static void loadEvents(Context context, ArrayList<Event> events,<br />
            long start, int days, int requestId, AtomicInteger sequenceNumber) {<br />
<br />
        if (PROFILE) {<br />
            Debug.startMethodTracing("loadEvents");<br />
        }<br />
<br />
        Cursor c = null;<br />
<br />
        events.clear();<br />
        try {<br />
            Time local = new Time();<br />
            int count;<br />
<br />
            local.set(start);<br />
            int startDay = Time.getJulianDay(start, local.gmtoff);<br />
            int endDay = startDay + days;<br />
<br />
            local.monthDay += days;<br />
            long end = local.normalize(true /* ignore isDst */);<br />
<br />
            // Widen the time range that we query by one day on each end<br />
            // so that we can catch all-day events.  All-day events are<br />
            // stored starting at midnight in UTC but should be included<br />
            // in the list of events starting at midnight local time.<br />
            // This may fetch more events than we actually want, so we<br />
            // filter them out below.<br />
            //<br />
            // The sort order is: events with an earlier start time occur<br />
            // first and if the start times are the same, then events with<br />
            // a later end time occur first. The later end time is ordered<br />
            // first so that long rectangles in the calendar views appear on<br />
            // the left side.  If the start and end times of two events are<br />
            // the same then we sort alphabetically on the title.  This isn't<br />
            // required for correctness, it just adds a nice touch.<br />
<br />
            String orderBy = Instances.SORT_CALENDAR_VIEW;<br />
<br />
            // Respect the preference to show/hide declined events<br />
            SharedPreferences prefs = CalendarPreferenceActivity.getSharedPreferences(context);<br />
            boolean hideDeclined = prefs.getBoolean(CalendarPreferenceActivity.KEY_HIDE_DECLINED,<br />
                    false);<br />
<br />
            String where = null;<br />
            if (hideDeclined) {<br />
                where = Instances.SELF_ATTENDEE_STATUS + "!=" + Attendees.ATTENDEE_STATUS_DECLINED;<br />
            }<br />
<br />
            c = Instances.query(context.getContentResolver(), PROJECTION,<br />
                    start - DateUtils.DAY_IN_MILLIS, end + DateUtils.DAY_IN_MILLIS, where, orderBy);<br />
<br />
            if (c == null) {<br />
                Log.e("Cal", "loadEvents() returned null cursor!");<br />
                return;<br />
            }<br />
<br />
            // Check if we should return early because there are more recent<br />
            // load requests waiting.<br />
            if (requestId != sequenceNumber.get()) {<br />
                return;<br />
            }<br />
<br />
            count = c.getCount();<br />
<br />
            if (count == 0) {<br />
                return;<br />
            }<br />
<br />
            Resources res = context.getResources();<br />
            while (c.moveToNext()) {<br />
                Event e = new Event();<br />
<br />
                e.id = c.getLong(PROJECTION_EVENT_ID_INDEX);<br />
                e.title = c.getString(PROJECTION_TITLE_INDEX);<br />
                e.location = c.getString(PROJECTION_LOCATION_INDEX);<br />
                e.allDay = c.getInt(PROJECTION_ALL_DAY_INDEX) != 0;<br />
                e.organizer = c.getString(PROJECTION_ORGANIZER_INDEX);<br />
                e.guestsCanModify = c.getInt(PROJECTION_GUESTS_CAN_INVITE_OTHERS_INDEX) != 0;<br />
<br />
                String timezone = c.getString(PROJECTION_TIMEZONE_INDEX);<br />
<br />
                if (e.title == null || e.title.length() == 0) {<br />
                    e.title = res.getString(R.string.no_title_label);<br />
                }<br />
<br />
                if (!c.isNull(PROJECTION_COLOR_INDEX)) {<br />
                    // Read the color from the database<br />
                    e.color = c.getInt(PROJECTION_COLOR_INDEX);<br />
                } else {<br />
                    e.color = res.getColor(R.color.event_center);<br />
                }<br />
<br />
                long eStart = c.getLong(PROJECTION_BEGIN_INDEX);<br />
                long eEnd = c.getLong(PROJECTION_END_INDEX);<br />
<br />
                e.startMillis = eStart;<br />
                e.startTime = c.getInt(PROJECTION_START_MINUTE_INDEX);<br />
                e.startDay = c.getInt(PROJECTION_START_DAY_INDEX);<br />
<br />
                e.endMillis = eEnd;<br />
                e.endTime = c.getInt(PROJECTION_END_MINUTE_INDEX);<br />
                e.endDay = c.getInt(PROJECTION_END_DAY_INDEX);<br />
<br />
                if (e.startDay > endDay || e.endDay < startDay) {<br />
                    continue;<br />
                }<br />
<br />
                e.hasAlarm = c.getInt(PROJECTION_HAS_ALARM_INDEX) != 0;<br />
<br />
                // Check if this is a repeating event<br />
                String rrule = c.getString(PROJECTION_RRULE_INDEX);<br />
                String rdate = c.getString(PROJECTION_RDATE_INDEX);<br />
                if (!TextUtils.isEmpty(rrule) || !TextUtils.isEmpty(rdate)) {<br />
                    e.isRepeating = true;<br />
                } else {<br />
                    e.isRepeating = false;<br />
                }<br />
                <br />
                e.selfAttendeeStatus = c.getInt(PROJECTION_SELF_ATTENDEE_STATUS_INDEX);<br />
<br />
                events.add(e);<br />
            }<br />
<br />
            computePositions(events);<br />
        } finally {<br />
            if (c != null) {<br />
                c.close();<br />
            }<br />
            if (PROFILE) {<br />
                Debug.stopMethodTracing();<br />
            }<br />
        }<br />
    }<br />
<br />
    /**<br />
     * Computes a position for each event.  Each event is displayed<br />
     * as a non-overlapping rectangle.  For normal events, these rectangles<br />
     * are displayed in separate columns in the week view and day view.  For<br />
     * all-day events, these rectangles are displayed in separate rows along<br />
     * the top.  In both cases, each event is assigned two numbers: N, and<br />
     * Max, that specify that this event is the Nth event of Max number of<br />
     * events that are displayed in a group. The width and position of each<br />
     * rectangle depend on the maximum number of rectangles that occur at<br />
     * the same time.<br />
     *<br />
     * @param eventsList the list of events, sorted into increasing time order<br />
     */<br />
    static void computePositions(ArrayList<Event> eventsList) {<br />
        if (eventsList == null)<br />
            return;<br />
<br />
        // Compute the column positions separately for the all-day events<br />
        doComputePositions(eventsList, false);<br />
        doComputePositions(eventsList, true);<br />
    }<br />
<br />
    private static void doComputePositions(ArrayList<Event> eventsList,<br />
            boolean doAllDayEvents) {<br />
        ArrayList<Event> activeList = new ArrayList<Event>();<br />
        ArrayList<Event> groupList = new ArrayList<Event>();<br />
<br />
        long colMask = 0;<br />
        int maxCols = 0;<br />
        for (Event event : eventsList) {<br />
            // Process all-day events separately<br />
            if (event.allDay != doAllDayEvents)<br />
                continue;<br />
<br />
            long start = event.getStartMillis();<br />
            if (false && event.allDay) {<br />
                Event e = event;<br />
                Log.i("Cal", "event start,end day: " + e.startDay + "," + e.endDay<br />
                        + " start,end time: " + e.startTime + "," + e.endTime<br />
                        + " start,end millis: " + e.getStartMillis() + "," + e.getEndMillis()<br />
                        + " "  + e.title);<br />
            }<br />
<br />
            // Remove the inactive events. An event on the active list<br />
            // becomes inactive when its end time is less than or equal to<br />
            // the current event's start time.<br />
            Iterator<Event> iter = activeList.iterator();<br />
            while (iter.hasNext()) {<br />
                Event active = iter.next();<br />
                if (active.getEndMillis() <= start) {<br />
                    if (false && event.allDay) {<br />
                        Event e = active;<br />
                        Log.i("Cal", "  removing: start,end day: " + e.startDay + "," + e.endDay<br />
                                + " start,end time: " + e.startTime + "," + e.endTime<br />
                                + " start,end millis: " + e.getStartMillis() + "," + e.getEndMillis()<br />
                                + " "  + e.title);<br />
                    }<br />
                    colMask &= ~(1L << active.getColumn());<br />
                    iter.remove();<br />
                }<br />
            }<br />
<br />
            // If the active list is empty, then reset the max columns, clear<br />
            // the column bit mask, and empty the groupList.<br />
            if (activeList.isEmpty()) {<br />
                for (Event ev : groupList) {<br />
                    ev.setMaxColumns(maxCols);<br />
                }<br />
                maxCols = 0;<br />
                colMask = 0;<br />
                groupList.clear();<br />
            }<br />
<br />
            // Find the first empty column.  Empty columns are represented by<br />
            // zero bits in the column mask "colMask".<br />
            int col = findFirstZeroBit(colMask);<br />
            if (col == 64)<br />
                col = 63;<br />
            colMask |= (1L << col);<br />
            event.setColumn(col);<br />
            activeList.add(event);<br />
            groupList.add(event);<br />
            int len = activeList.size();<br />
            if (maxCols < len)<br />
                maxCols = len;<br />
        }<br />
        for (Event ev : groupList) {<br />
            ev.setMaxColumns(maxCols);<br />
        }<br />
    }<br />
<br />
    public static int findFirstZeroBit(long val) {<br />
        for (int ii = 0; ii < 64; ++ii) {<br />
            if ((val & (1L << ii)) == 0)<br />
                return ii;<br />
        }<br />
        return 64;<br />
    }<br />
<br />
    /**<br />
     * Returns a darker version of the given color.  It does this by dividing<br />
     * each of the red, green, and blue components by 2.  The alpha value is<br />
     * preserved.<br />
     */<br />
    private static final int getDarkerColor(int color) {<br />
        int darker = (color >> 1) & 0x007f7f7f;<br />
        int alpha = color & 0xff000000;<br />
        return alpha | darker;<br />
    }<br />
<br />
    // For testing. This method can be removed at any time.<br />
    private static ArrayList<Event> createTestEventList() {<br />
        ArrayList<Event> evList = new ArrayList<Event>();<br />
        createTestEvent(evList, 1, 5, 10);<br />
        createTestEvent(evList, 2, 5, 10);<br />
        createTestEvent(evList, 3, 15, 20);<br />
        createTestEvent(evList, 4, 20, 25);<br />
        createTestEvent(evList, 5, 30, 70);<br />
        createTestEvent(evList, 6, 32, 40);<br />
        createTestEvent(evList, 7, 32, 40);<br />
        createTestEvent(evList, 8, 34, 38);<br />
        createTestEvent(evList, 9, 34, 38);<br />
        createTestEvent(evList, 10, 42, 50);<br />
        createTestEvent(evList, 11, 45, 60);<br />
        createTestEvent(evList, 12, 55, 90);<br />
        createTestEvent(evList, 13, 65, 75);<br />
<br />
        createTestEvent(evList, 21, 105, 130);<br />
        createTestEvent(evList, 22, 110, 120);<br />
        createTestEvent(evList, 23, 115, 130);<br />
        createTestEvent(evList, 24, 125, 140);<br />
        createTestEvent(evList, 25, 127, 135);<br />
<br />
        createTestEvent(evList, 31, 150, 160);<br />
        createTestEvent(evList, 32, 152, 162);<br />
        createTestEvent(evList, 33, 153, 163);<br />
        createTestEvent(evList, 34, 155, 170);<br />
        createTestEvent(evList, 35, 158, 175);<br />
        createTestEvent(evList, 36, 165, 180);<br />
<br />
        return evList;<br />
    }<br />
<br />
    // For testing. This method can be removed at any time.<br />
    private static Event createTestEvent(ArrayList<Event> evList, int id,<br />
            int startMinute, int endMinute) {<br />
        Event ev = new Event();<br />
        ev.title = "ev" + id;<br />
        ev.startDay = 1;<br />
        ev.endDay = 1;<br />
        ev.setStartMillis(startMinute);<br />
        ev.setEndMillis(endMinute);<br />
        evList.add(ev);<br />
        return ev;<br />
    }<br />
<br />
    public final void dump() {<br />
        Log.e("Cal", "+-----------------------------------------+");<br />
        Log.e("Cal", "+        id = " + id);<br />
        Log.e("Cal", "+     color = " + color);<br />
        Log.e("Cal", "+     title = " + title);<br />
        Log.e("Cal", "+  location = " + location);<br />
        Log.e("Cal", "+    allDay = " + allDay);<br />
        Log.e("Cal", "+  startDay = " + startDay);<br />
        Log.e("Cal", "+    endDay = " + endDay);<br />
        Log.e("Cal", "+ startTime = " + startTime);<br />
        Log.e("Cal", "+   endTime = " + endTime);<br />
        Log.e("Cal", "+ organizer = " + organizer);<br />
        Log.e("Cal", "+  guestwrt = " + guestsCanModify);<br />
    }<br />
<br />
    public final boolean intersects(int julianDay, int startMinute,<br />
            int endMinute) {<br />
        if (endDay < julianDay) {<br />
            return false;<br />
        }<br />
<br />
        if (startDay > julianDay) {<br />
            return false;<br />
        }<br />
<br />
        if (endDay == julianDay) {<br />
            if (endTime < startMinute) {<br />
                return false;<br />
            }<br />
            // An event that ends at the start minute should not be considered<br />
            // as intersecting the given time span, but don't exclude<br />
            // zero-length (or very short) events.<br />
            if (endTime == startMinute<br />
                    && (startTime != endTime || startDay != endDay)) {<br />
                return false;<br />
            }<br />
        }<br />
<br />
        if (startDay == julianDay && startTime > endMinute) {<br />
            return false;<br />
        }<br />
<br />
        return true;<br />
    }<br />
<br />
    /**<br />
     * Returns the event title and location separated by a comma.  If the<br />
     * location is already part of the title (at the end of the title), then<br />
     * just the title is returned.<br />
     *<br />
     * @return the event title and location as a String<br />
     */<br />
    public String getTitleAndLocation() {<br />
        String text = title.toString();<br />
<br />
        // Append the location to the title, unless the title ends with the<br />
        // location (for example, "meeting in building 42" ends with the<br />
        // location).<br />
        if (location != null) {<br />
            String locationString = location.toString();<br />
            if (!text.endsWith(locationString)) {<br />
                text += ", " + locationString;<br />
            }<br />
        }<br />
        return text;<br />
    }<br />
<br />
    public void setColumn(int column) {<br />
        mColumn = column;<br />
    }<br />
<br />
    public int getColumn() {<br />
        return mColumn;<br />
    }<br />
<br />
    public void setMaxColumns(int maxColumns) {<br />
        mMaxColumns = maxColumns;<br />
    }<br />
<br />
    public int getMaxColumns() {<br />
        return mMaxColumns;<br />
    }<br />
<br />
    public void setStartMillis(long startMillis) {<br />
        this.startMillis = startMillis;<br />
    }<br />
<br />
    public long getStartMillis() {<br />
        return startMillis;<br />
    }<br />
<br />
    public void setEndMillis(long endMillis) {<br />
        this.endMillis = endMillis;<br />
    }<br />
<br />
    public long getEndMillis() {<br />
        return endMillis;<br />
    }<br />
}<br />
[/code]]]]></description>
		<pubDate>Array</pubDate>
		</item>

		<item>
		<category><![CDATA[[]]]></category>
		<title><![CDATA[[EventRecurrenceTest]]]></title>
		<link>http://www.sarangnamu.net/basic/basic_view.php?no=5192</link>
		<description><![CDATA[[[code]<br />
<br />
/* //device/content/providers/pim/EventRecurrenceTest.java<br />
**<br />
** Copyright 2006, The Android Open Source Project<br />
**<br />
** Licensed under the Apache License, Version 2.0 (the "License"); <br />
** you may not use this file except in compliance with the License. <br />
** You may obtain a copy of the License at <br />
**<br />
**     http://www.apache.org/licenses/LICENSE-2.0 <br />
**<br />
** Unless required by applicable law or agreed to in writing, software <br />
** distributed under the License is distributed on an "AS IS" BASIS, <br />
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. <br />
** See the License for the specific language governing permissions and <br />
** limitations under the License.<br />
*/<br />
<br />
package com.android.providers.calendar;<br />
<br />
import android.pim.EventRecurrence;<br />
import android.test.suitebuilder.annotation.SmallTest;<br />
import android.test.suitebuilder.annotation.Suppress;<br />
import junit.framework.TestCase;<br />
<br />
import java.util.Arrays;<br />
<br />
public class EventRecurrenceTest extends TestCase {<br />
<br />
    @SmallTest<br />
    public void test0() throws Exception {<br />
        verifyRecurType("FREQ=SECONDLY",<br />
                /* int freq */         EventRecurrence.SECONDLY,<br />
                /* String until */     null,<br />
                /* int count */        0,<br />
                /* int interval */     0,<br />
                /* int[] bysecond */   null,<br />
                /* int[] byminute */   null,<br />
                /* int[] byhour */     null,<br />
                /* int[] byday */      null,<br />
                /* int[] bydayNum */   null,<br />
                /* int[] bymonthday */ null,<br />
                /* int[] byyearday */  null,<br />
                /* int[] byweekno */   null,<br />
                /* int[] bymonth */    null,<br />
                /* int[] bysetpos */   null,<br />
                /* int wkst */         EventRecurrence.MO<br />
        );<br />
    }<br />
<br />
    @SmallTest<br />
    public void test1() throws Exception {<br />
        verifyRecurType("FREQ=MINUTELY",<br />
                /* int freq */         EventRecurrence.MINUTELY,<br />
                /* String until */     null,<br />
                /* int count */        0,<br />
                /* int interval */     0,<br />
                /* int[] bysecond */   null,<br />
                /* int[] byminute */   null,<br />
                /* int[] byhour */     null,<br />
                /* int[] byday */      null,<br />
                /* int[] bydayNum */   null,<br />
                /* int[] bymonthday */ null,<br />
                /* int[] byyearday */  null,<br />
                /* int[] byweekno */   null,<br />
                /* int[] bymonth */    null,<br />
                /* int[] bysetpos */   null,<br />
                /* int wkst */         EventRecurrence.MO<br />
        );<br />
    }<br />
<br />
    @SmallTest<br />
    public void test2() throws Exception {<br />
        verifyRecurType("FREQ=HOURLY",<br />
                /* int freq */         EventRecurrence.HOURLY,<br />
                /* String until */     null,<br />
                /* int count */        0,<br />
                /* int interval */     0,<br />
                /* int[] bysecond */   null,<br />
                /* int[] byminute */   null,<br />
                /* int[] byhour */     null,<br />
                /* int[] byday */      null,<br />
                /* int[] bydayNum */   null,<br />
                /* int[] bymonthday */ null,<br />
                /* int[] byyearday */  null,<br />
                /* int[] byweekno */   null,<br />
                /* int[] bymonth */    null,<br />
                /* int[] bysetpos */   null,<br />
                /* int wkst */         EventRecurrence.MO<br />
        );<br />
    }<br />
<br />
    @SmallTest<br />
    public void test3() throws Exception {<br />
        verifyRecurType("FREQ=DAILY",<br />
                /* int freq */         EventRecurrence.DAILY,<br />
                /* String until */     null,<br />
                /* int count */        0,<br />
                /* int interval */     0,<br />
                /* int[] bysecond */   null,<br />
                /* int[] byminute */   null,<br />
                /* int[] byhour */     null,<br />
                /* int[] byday */      null,<br />
                /* int[] bydayNum */   null,<br />
                /* int[] bymonthday */ null,<br />
                /* int[] byyearday */  null,<br />
                /* int[] byweekno */   null,<br />
                /* int[] bymonth */    null,<br />
                /* int[] bysetpos */   null,<br />
                /* int wkst */         EventRecurrence.MO<br />
        );<br />
    }<br />
<br />
    @SmallTest<br />
    public void test4() throws Exception {<br />
        verifyRecurType("FREQ=WEEKLY",<br />
                /* int freq */         EventRecurrence.WEEKLY,<br />
                /* String until */     null,<br />
                /* int count */        0,<br />
                /* int interval */     0,<br />
                /* int[] bysecond */   null,<br />
                /* int[] byminute */   null,<br />
                /* int[] byhour */     null,<br />
                /* int[] byday */      null,<br />
                /* int[] bydayNum */   null,<br />
                /* int[] bymonthday */ null,<br />
                /* int[] byyearday */  null,<br />
                /* int[] byweekno */   null,<br />
                /* int[] bymonth */    null,<br />
                /* int[] bysetpos */   null,<br />
                /* int wkst */         EventRecurrence.MO<br />
        );<br />
    }<br />
<br />
    @SmallTest<br />
    public void test5() throws Exception {<br />
        verifyRecurType("FREQ=MONTHLY",<br />
                /* int freq */         EventRecurrence.MONTHLY,<br />
                /* String until */     null,<br />
                /* int count */        0,<br />
                /* int interval */     0,<br />
                /* int[] bysecond */   null,<br />
                /* int[] byminute */   null,<br />
                /* int[] byhour */     null,<br />
                /* int[] byday */      null,<br />
                /* int[] bydayNum */   null,<br />
                /* int[] bymonthday */ null,<br />
                /* int[] byyearday */  null,<br />
                /* int[] byweekno */   null,<br />
                /* int[] bymonth */    null,<br />
                /* int[] bysetpos */   null,<br />
                /* int wkst */         EventRecurrence.MO<br />
        );<br />
    }<br />
<br />
    @SmallTest<br />
    public void test6() throws Exception {<br />
        verifyRecurType("FREQ=YEARLY",<br />
                /* int freq */         EventRecurrence.YEARLY,<br />
                /* String until */     null,<br />
                /* int count */        0,<br />
                /* int interval */     0,<br />
                /* int[] bysecond */   null,<br />
                /* int[] byminute */   null,<br />
                /* int[] byhour */     null,<br />
                /* int[] byday */      null,<br />
                /* int[] bydayNum */   null,<br />
                /* int[] bymonthday */ null,<br />
                /* int[] byyearday */  null,<br />
                /* int[] byweekno */   null,<br />
                /* int[] bymonth */    null,<br />
                /* int[] bysetpos */   null,<br />
                /* int wkst */         EventRecurrence.MO<br />
        );<br />
    }<br />
<br />
    @SmallTest<br />
    public void test7() throws Exception {<br />
        // with an until<br />
        verifyRecurType("FREQ=DAILY;UNTIL=112233T223344Z",<br />
                /* int freq */         EventRecurrence.DAILY,<br />
                /* String until */     "112233T223344Z",<br />
                /* int count */        0,<br />
                /* int interval */     0,<br />
                /* int[] bysecond */   null,<br />
                /* int[] byminute */   null,<br />
                /* int[] byhour */     null,<br />
                /* int[] byday */      null,<br />
                /* int[] bydayNum */   null,<br />
                /* int[] bymonthday */ null,<br />
                /* int[] byyearday */  null,<br />
                /* int[] byweekno */   null,<br />
                /* int[] bymonth */    null,<br />
                /* int[] bysetpos */   null,<br />
                /* int wkst */         EventRecurrence.MO<br />
        );<br />
    }<br />
<br />
    @SmallTest<br />
    public void test8() throws Exception {<br />
        // with a count<br />
        verifyRecurType("FREQ=DAILY;COUNT=334",<br />
                /* int freq */         EventRecurrence.DAILY,<br />
                /* String until */     null,<br />
                /* int count */        334,<br />
                /* int interval */     0,<br />
                /* int[] bysecond */   null,<br />
                /* int[] byminute */   null,<br />
                /* int[] byhour */     null,<br />
                /* int[] byday */      null,<br />
                /* int[] bydayNum */   null,<br />
                /* int[] bymonthday */ null,<br />
                /* int[] byyearday */  null,<br />
                /* int[] byweekno */   null,<br />
                /* int[] bymonth */    null,<br />
                /* int[] bysetpos */   null,<br />
                /* int wkst */         EventRecurrence.MO<br />
        );<br />
    }<br />
<br />
    @SmallTest<br />
    public void test9() throws Exception {<br />
        // with a count<br />
        verifyRecurType("FREQ=DAILY;INTERVAL=5000",<br />
                /* int freq */         EventRecurrence.DAILY,<br />
                /* String until */     null,<br />
                /* int count */        0,<br />
                /* int interval */     5000,<br />
                /* int[] bysecond */   null,<br />
                /* int[] byminute */   null,<br />
                /* int[] byhour */     null,<br />
                /* int[] byday */      null,<br />
                /* int[] bydayNum */   null,<br />
                /* int[] bymonthday */ null,<br />
                /* int[] byyearday */  null,<br />
                /* int[] byweekno */   null,<br />
                /* int[] bymonth */    null,<br />
                /* int[] bysetpos */   null,<br />
                /* int wkst */         EventRecurrence.MO<br />
        );<br />
    }<br />
<br />
    @SmallTest<br />
    public void test10() throws Exception {<br />
        // verifyRecurType all of the BY* ones with one element<br />
        verifyRecurType("FREQ=DAILY"<br />
                + ";BYSECOND=0"<br />
                + ";BYMINUTE=1"<br />
                + ";BYHOUR=2"<br />
                + ";BYMONTHDAY=30"<br />
                + ";BYYEARDAY=300"<br />
                + ";BYWEEKNO=53"<br />
                + ";BYMONTH=12"<br />
                + ";BYSETPOS=-15"<br />
                + ";WKST=SU",<br />
                /* int freq */         EventRecurrence.DAILY,<br />
                /* String until */     null,<br />
                /* int count */        0,<br />
                /* int interval */     0,<br />
                /* int[] bysecond */   new int[]{0},<br />
                /* int[] byminute */   new int[]{1},<br />
                /* int[] byhour */     new int[]{2},<br />
                /* int[] byday */      null,<br />
                /* int[] bydayNum */   null,<br />
                /* int[] bymonthday */ new int[]{30},<br />
                /* int[] byyearday */  new int[]{300},<br />
                /* int[] byweekno */   new int[]{53},<br />
                /* int[] bymonth */    new int[]{12},<br />
                /* int[] bysetpos */   new int[]{-15},<br />
                /* int wkst */         EventRecurrence.SU<br />
        );<br />
    }<br />
<br />
    @SmallTest<br />
    public void test11() throws Exception {<br />
        // verifyRecurType all of the BY* ones with one element<br />
        verifyRecurType("FREQ=DAILY"<br />
                + ";BYSECOND=0,30,59"<br />
                + ";BYMINUTE=0,41,59"<br />
                + ";BYHOUR=0,4,23"<br />
                + ";BYMONTHDAY=-31,-1,1,31"<br />
                + ";BYYEARDAY=-366,-1,1,366"<br />
                + ";BYWEEKNO=-53,-1,1,53"<br />
                + ";BYMONTH=1,12"<br />
                + ";BYSETPOS=1,2,3,4,500,10000"<br />
                + ";WKST=SU",<br />
                /* int freq */         EventRecurrence.DAILY,<br />
                /* String until */     null,<br />
                /* int count */        0,<br />
                /* int interval */     0,<br />
                /* int[] bysecond */   new int[]{0, 30, 59},<br />
                /* int[] byminute */   new int[]{0, 41, 59},<br />
                /* int[] byhour */     new int[]{0, 4, 23},<br />
                /* int[] byday */      null,<br />
                /* int[] bydayNum */   null,<br />
                /* int[] bymonthday */ new int[]{-31, -1, 1, 31},<br />
                /* int[] byyearday */  new int[]{-366, -1, 1, 366},<br />
                /* int[] byweekno */   new int[]{-53, -1, 1, 53},<br />
                /* int[] bymonth */    new int[]{1, 12},<br />
                /* int[] bysetpos */   new int[]{1, 2, 3, 4, 500, 10000},<br />
                /* int wkst */         EventRecurrence.SU<br />
        );<br />
    }<br />
<br />
    private static class Check {<br />
        Check(String k, int... v) {<br />
            key = k;<br />
            values = v;<br />
        }<br />
<br />
        String key;<br />
        int[] values;<br />
    }<br />
<br />
    // this is a negative verifyRecurType case to verifyRecurType the range of the numbers accepted<br />
    @SmallTest<br />
    public void test12() throws Exception {<br />
        Check[] checks = new Check[]{<br />
                new Check("BYSECOND", -100, -1, 60, 100),<br />
                new Check("BYMINUTE", -100, -1, 60, 100),<br />
                new Check("BYHOUR", -100, -1, 24, 100),<br />
                new Check("BYMONTHDAY", -100, -32, 0, 32, 100),<br />
                new Check("BYYEARDAY", -400, -367, 0, 367, 400),<br />
                new Check("BYWEEKNO", -100, -54, 0, 54, 100),<br />
                new Check("BYMONTH", -100, -5, 0, 13, 100)<br />
        };<br />
<br />
        for (Check ck : checks) {<br />
            for (int n : ck.values) {<br />
                String recur = "FREQ=DAILY;" + ck.key + "=" + n;<br />
                try {<br />
                    EventRecurrence er = new EventRecurrence();<br />
                    er.parse(recur);<br />
                    fail("Negative verifyRecurType failed. "<br />
                            + " parse failed to throw an exception for '"<br />
                            + recur + "'");<br />
                } catch (EventRecurrence.InvalidFormatException e) {<br />
                    // expected<br />
                }<br />
            }<br />
        }<br />
    }<br />
<br />
    // verifyRecurType BYDAY<br />
    @SmallTest<br />
    public void test13() throws Exception {<br />
        verifyRecurType("FREQ=DAILY;BYDAY=1SU,-2MO,+33TU,WE,TH,FR,SA",<br />
                /* int freq */         EventRecurrence.DAILY,<br />
                /* String until */     null,<br />
                /* int count */        0,<br />
                /* int interval */     0,<br />
                /* int[] bysecond */   null,<br />
                /* int[] byminute */   null,<br />
                /* int[] byhour */     null,<br />
                /* int[] byday */      new int[]{<br />
                EventRecurrence.SU,<br />
                EventRecurrence.MO,<br />
                EventRecurrence.TU,<br />
                EventRecurrence.WE,<br />
                EventRecurrence.TH,<br />
                EventRecurrence.FR,<br />
                EventRecurrence.SA<br />
        },<br />
                /* int[] bydayNum */   new int[]{1, -2, 33, 0, 0, 0, 0},<br />
                /* int[] bymonthday */ null,<br />
                /* int[] byyearday */  null,<br />
                /* int[] byweekno */   null,<br />
                /* int[] bymonth */    null,<br />
                /* int[] bysetpos */   null,<br />
                /* int wkst */         EventRecurrence.MO<br />
        );<br />
    }<br />
<br />
    @Suppress<br />
    // Repro bug #2331761 - this should fail because of the last comma into BYDAY<br />
    public void test14() throws Exception {<br />
        verifyRecurType("FREQ=WEEKLY;WKST=MO;UNTIL=20100129T130000Z;INTERVAL=1;BYDAY=MO,TU,WE,",<br />
                /* int freq */         EventRecurrence.WEEKLY,<br />
                /* String until */     "20100129T130000Z",<br />
                /* int count */        0,<br />
                /* int interval */     1,<br />
                /* int[] bysecond */   null,<br />
                /* int[] byminute */   null,<br />
                /* int[] byhour */     null,<br />
                /* int[] byday */      new int[] {<br />
                        EventRecurrence.MO,<br />
                        EventRecurrence.TU,<br />
                        EventRecurrence.WE,<br />
                },<br />
                /* int[] bydayNum */   new int[]{0, 0, 0},<br />
                /* int[] bymonthday */ null,<br />
                /* int[] byyearday */  null,<br />
                /* int[] byweekno */   null,<br />
                /* int[] bymonth */    null,<br />
                /* int[] bysetpos */   null,<br />
                /* int wkst */         EventRecurrence.MO<br />
        );<br />
    }<br />
<br />
    // This test should pass<br />
    public void test15() throws Exception {<br />
        verifyRecurType("FREQ=WEEKLY;WKST=MO;UNTIL=20100129T130000Z;INTERVAL=1;"<br />
                + "BYDAY=MO,TU,WE,TH,FR,SA,SU",<br />
                /* int freq */         EventRecurrence.WEEKLY,<br />
                /* String until */     "20100129T130000Z",<br />
                /* int count */        0,<br />
                /* int interval */     1,<br />
                /* int[] bysecond */   null,<br />
                /* int[] byminute */   null,<br />
                /* int[] byhour */     null,<br />
                /* int[] byday */      new int[] {<br />
                        EventRecurrence.MO,<br />
                        EventRecurrence.TU,<br />
                        EventRecurrence.WE,<br />
                        EventRecurrence.TH,<br />
                        EventRecurrence.FR,<br />
                        EventRecurrence.SA,<br />
                        EventRecurrence.SU<br />
                },<br />
                /* int[] bydayNum */   new int[]{0, 0, 0, 0, 0, 0, 0},<br />
                /* int[] bymonthday */ null,<br />
                /* int[] byyearday */  null,<br />
                /* int[] byweekno */   null,<br />
                /* int[] bymonth */    null,<br />
                /* int[] bysetpos */   null,<br />
                /* int wkst */         EventRecurrence.MO<br />
        );<br />
    }<br />
<br />
    // Sample coming from RFC2445<br />
    public void test16() throws Exception {<br />
        verifyRecurType("FREQ=MONTHLY;BYDAY=MO,TU,WE,TH,FR;BYSETPOS=-1",<br />
                /* int freq */         EventRecurrence.MONTHLY,<br />
                /* String until */     null,<br />
                /* int count */        0,<br />
                /* int interval */     0,<br />
                /* int[] bysecond */   null,<br />
                /* int[] byminute */   null,<br />
                /* int[] byhour */     null,<br />
                /* int[] byday */      new int[] {<br />
                        EventRecurrence.MO,<br />
                        EventRecurrence.TU,<br />
                        EventRecurrence.WE,<br />
                        EventRecurrence.TH,<br />
                        EventRecurrence.FR<br />
                },<br />
                /* int[] bydayNum */   new int[] {0, 0, 0, 0, 0},<br />
                /* int[] bymonthday */ null,<br />
                /* int[] byyearday */  null,<br />
                /* int[] byweekno */   null,<br />
                /* int[] bymonth */    null,<br />
                /* int[] bysetpos */   new int[] { -1 },<br />
                /* int wkst */         EventRecurrence.MO<br />
        );<br />
    }<br />
<br />
    // Sample coming from RFC2445<br />
    public void test17() throws Exception {<br />
        verifyRecurType("FREQ=DAILY;COUNT=10;INTERVAL=2",<br />
                /* int freq */         EventRecurrence.DAILY,<br />
                /* String until */     null,<br />
                /* int count */        10,<br />
                /* int interval */     2,<br />
                /* int[] bysecond */   null,<br />
                /* int[] byminute */   null,<br />
                /* int[] byhour */     null,<br />
                /* int[] byday */      null,<br />
                /* int[] bydayNum */   null,<br />
                /* int[] bymonthday */ null,<br />
                /* int[] byyearday */  null,<br />
                /* int[] byweekno */   null,<br />
                /* int[] bymonth */    null,<br />
                /* int[] bysetpos */   null,<br />
                /* int wkst */         EventRecurrence.MO<br />
        );<br />
    }<br />
<br />
    // Sample coming from RFC2445<br />
    public void test18() throws Exception {<br />
        verifyRecurType("FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10",<br />
                /* int freq */         EventRecurrence.YEARLY,<br />
                /* String until */     null,<br />
                /* int count */        0,<br />
                /* int interval */     0,<br />
                /* int[] bysecond */   null,<br />
                /* int[] byminute */   null,<br />
                /* int[] byhour */     null,<br />
                /* int[] byday */      new int[] {<br />
                        EventRecurrence.SU<br />
                },<br />
                /* int[] bydayNum */   new int[] { -1 },<br />
                /* int[] bymonthday */ null,<br />
                /* int[] byyearday */  null,<br />
                /* int[] byweekno */   null,<br />
                /* int[] bymonth */    new int[] { 10 },<br />
                /* int[] bysetpos */   null,<br />
                /* int wkst */         EventRecurrence.MO<br />
        );<br />
    }<br />
<br />
    // for your copying pleasure<br />
    public void fakeTestXX() throws Exception {<br />
        verifyRecurType("FREQ=DAILY;",<br />
                /* int freq */         EventRecurrence.DAILY,<br />
                /* String until */     null,<br />
                /* int count */        0,<br />
                /* int interval */     0,<br />
                /* int[] bysecond */   null,<br />
                /* int[] byminute */   null,<br />
                /* int[] byhour */     null,<br />
                /* int[] byday */      null,<br />
                /* int[] bydayNum */   null,<br />
                /* int[] bymonthday */ null,<br />
                /* int[] byyearday */  null,<br />
                /* int[] byweekno */   null,<br />
                /* int[] bymonth */    null,<br />
                /* int[] bysetpos */   null,<br />
                /* int wkst */         EventRecurrence.MO<br />
        );<br />
    }<br />
<br />
    private static void cmp(int vlen, int[] v, int[] correct, String name) {<br />
        if ((correct == null && v != null)<br />
                || (correct != null && v == null)) {<br />
            throw new RuntimeException("One is null, one isn't for " + name<br />
                    + ": correct=" + Arrays.toString(correct)<br />
                    + " actual=" + Arrays.toString(v));<br />
        }<br />
        if ((correct == null && vlen != 0)<br />
                || (vlen != (correct == null ? 0 : correct.length))) {<br />
            throw new RuntimeException("Reported length mismatch for " + name<br />
                    + ": correct=" + ((correct == null) ? "null" : correct.length)<br />
                    + " actual=" + vlen);<br />
        }<br />
        if (correct == null) {<br />
            return;<br />
        }<br />
        if (v.length < correct.length) {<br />
            throw new RuntimeException("Array length mismatch for " + name<br />
                    + ": correct=" + Arrays.toString(correct)<br />
                    + " actual=" + Arrays.toString(v));<br />
        }<br />
        for (int i = 0; i < correct.length; i++) {<br />
            if (v[i] != correct[i]) {<br />
                throw new RuntimeException("Array value mismatch for " + name<br />
                        + ": correct=" + Arrays.toString(correct)<br />
                        + " actual=" + Arrays.toString(v));<br />
            }<br />
        }<br />
    }<br />
<br />
    private static boolean eq(String a, String b) {<br />
        if ((a == null && b != null) || (a != null && b == null)) {<br />
            return false;<br />
        } else {<br />
            return a == b || a.equals(b);<br />
        }<br />
    }<br />
<br />
    private static void verifyRecurType(String recur,<br />
            int freq, String until, int count, int interval,<br />
            int[] bysecond, int[] byminute, int[] byhour,<br />
            int[] byday, int[] bydayNum, int[] bymonthday,<br />
            int[] byyearday, int[] byweekno, int[] bymonth,<br />
            int[] bysetpos, int wkst) {<br />
        EventRecurrence eventRecurrence = new EventRecurrence();<br />
        eventRecurrence.parse(recur);<br />
        if (eventRecurrence.freq != freq<br />
                || !eq(eventRecurrence.until, until)<br />
                || eventRecurrence.count != count<br />
                || eventRecurrence.interval != interval<br />
                || eventRecurrence.wkst != wkst) {<br />
            System.out.println("Error... got:");<br />
            print(eventRecurrence);<br />
            System.out.println("expected:");<br />
            System.out.println("{");<br />
            System.out.println("    freq=" + freq);<br />
            System.out.println("    until=" + until);<br />
            System.out.println("    count=" + count);<br />
            System.out.println("    interval=" + interval);<br />
            System.out.println("    wkst=" + wkst);<br />
            System.out.println("    bysecond=" + Arrays.toString(bysecond));<br />
            System.out.println("    byminute=" + Arrays.toString(byminute));<br />
            System.out.println("    byhour=" + Arrays.toString(byhour));<br />
            System.out.println("    byday=" + Arrays.toString(byday));<br />
            System.out.println("    bydayNum=" + Arrays.toString(bydayNum));<br />
            System.out.println("    bymonthday=" + Arrays.toString(bymonthday));<br />
            System.out.println("    byyearday=" + Arrays.toString(byyearday));<br />
            System.out.println("    byweekno=" + Arrays.toString(byweekno));<br />
            System.out.println("    bymonth=" + Arrays.toString(bymonth));<br />
            System.out.println("    bysetpos=" + Arrays.toString(bysetpos));<br />
            System.out.println("}");<br />
            throw new RuntimeException("Mismatch in fields");<br />
        }<br />
        cmp(eventRecurrence.bysecondCount, eventRecurrence.bysecond, bysecond, "bysecond");<br />
        cmp(eventRecurrence.byminuteCount, eventRecurrence.byminute, byminute, "byminute");<br />
        cmp(eventRecurrence.byhourCount, eventRecurrence.byhour, byhour, "byhour");<br />
        cmp(eventRecurrence.bydayCount, eventRecurrence.byday, byday, "byday");<br />
        cmp(eventRecurrence.bydayCount, eventRecurrence.bydayNum, bydayNum, "bydayNum");<br />
        cmp(eventRecurrence.bymonthdayCount, eventRecurrence.bymonthday, bymonthday, "bymonthday");<br />
        cmp(eventRecurrence.byyeardayCount, eventRecurrence.byyearday, byyearday, "byyearday");<br />
        cmp(eventRecurrence.byweeknoCount, eventRecurrence.byweekno, byweekno, "byweekno");<br />
        cmp(eventRecurrence.bymonthCount, eventRecurrence.bymonth, bymonth, "bymonth");<br />
        cmp(eventRecurrence.bysetposCount, eventRecurrence.bysetpos, bysetpos, "bysetpos");<br />
    }<br />
<br />
    private static void print(EventRecurrence er) {<br />
        System.out.println("{");<br />
        System.out.println("    freq=" + er.freq);<br />
        System.out.println("    until=" + er.until);<br />
        System.out.println("    count=" + er.count);<br />
        System.out.println("    interval=" + er.interval);<br />
        System.out.println("    wkst=" + er.wkst);<br />
        System.out.println("    bysecond=" + Arrays.toString(er.bysecond));<br />
        System.out.println("    bysecondCount=" + er.bysecondCount);<br />
        System.out.println("    byminute=" + Arrays.toString(er.byminute));<br />
        System.out.println("    byminuteCount=" + er.byminuteCount);<br />
        System.out.println("    byhour=" + Arrays.toString(er.byhour));<br />
        System.out.println("    byhourCount=" + er.byhourCount);<br />
        System.out.println("    byday=" + Arrays.toString(er.byday));<br />
        System.out.println("    bydayNum=" + Arrays.toString(er.bydayNum));<br />
        System.out.println("    bydayCount=" + er.bydayCount);<br />
        System.out.println("    bymonthday=" + Arrays.toString(er.bymonthday));<br />
        System.out.println("    bymonthdayCount=" + er.bymonthdayCount);<br />
        System.out.println("    byyearday=" + Arrays.toString(er.byyearday));<br />
        System.out.println("    byyeardayCount=" + er.byyeardayCount);<br />
        System.out.println("    byweekno=" + Arrays.toString(er.byweekno));<br />
        System.out.println("    byweeknoCount=" + er.byweeknoCount);<br />
        System.out.println("    bymonth=" + Arrays.toString(er.bymonth));<br />
        System.out.println("    bymonthCount=" + er.bymonthCount);<br />
        System.out.println("    bysetpos=" + Arrays.toString(er.bysetpos));<br />
        System.out.println("    bysetposCount=" + er.bysetposCount);<br />
        System.out.println("}");<br />
    }<br />
}<br />
[/code]]]]></description>
		<pubDate>Array</pubDate>
		</item>

		<item>
		<category><![CDATA[[]]]></category>
		<title><![CDATA[[junit]]]></title>
		<link>http://www.sarangnamu.net/basic/basic_view.php?no=5191</link>
		<description><![CDATA[[http://mainia.tistory.com/486]]]></description>
		<pubDate>Array</pubDate>
		</item>

		<item>
		<category><![CDATA[[]]]></category>
		<title><![CDATA[[android.provider.calendar.*]]]></title>
		<link>http://www.sarangnamu.net/basic/basic_view.php?no=5190</link>
		<description><![CDATA[[<p><br />
	<a href="http://www.androidjavadoc.com/1.1_r1_src/android/provider/Calendar.html">http://www.androidjavadoc.com/1.1_r1_src/android/provider/Calendar.html</a></p><br />
<p><br />
	&nbsp;</p><br />
<p><br />
	&nbsp;</p><br />
<p style="color: rgb(0, 0, 0); font-family: Gulim; font-size: medium; "><br />
	The Calendar provider contains all calendar events.</p><br />
<p style="color: rgb(0, 0, 0); font-family: Gulim; font-size: medium; "><br />
	&nbsp;</p><br />
<p style="color: rgb(0, 0, 0); font-family: Gulim; font-size: medium; "><br />
	&nbsp;</p><br />
<hr style="color: rgb(0, 0, 0); font-family: Gulim; font-size: medium; " /><br />
<p style="color: rgb(0, 0, 0); font-family: Gulim; font-size: medium; "><br />
	<a name="nested_class_summary"></a></p><br />
<table border="1" cellpadding="3" cellspacing="0" style="color: rgb(0, 0, 0); font-family: Gulim; font-size: medium; " summary="" width="100%"><br />
	<tbody><br />
		<tr bgcolor="#CCCCFF" class="TableHeadingColor" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(204, 204, 255); "><br />
			<th align="left" colspan="2"><br />
				<font size="+2"><b>Nested Class Summary</b></font></th><br />
		</tr><br />
		<tr bgcolor="white" class="TableRowColor" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; "><br />
			<td align="right" valign="top" width="1%"><br />
				<font size="-1"><code>static&nbsp;class</code></font></td><br />
			<td><br />
				<code><b><a href="http://www.androidjavadoc.com/1.1_r1_src/android/provider/Calendar.Attendees.html" title="class in android.provider">Calendar.Attendees</a></b></code>&nbsp;<br /><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><br />
		</tr><br />
		<tr bgcolor="white" class="TableRowColor" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; "><br />
			<td align="right" valign="top" width="1%"><br />
				<font size="-1"><code>static&nbsp;interface</code></font></td><br />
			<td><br />
				<code><b><a href="http://www.androidjavadoc.com/1.1_r1_src/android/provider/Calendar.AttendeesColumns.html" title="interface in android.provider">Calendar.AttendeesColumns</a></b></code>&nbsp;<br /><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><br />
		</tr><br />
		<tr bgcolor="white" class="TableRowColor" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; "><br />
			<td align="right" valign="top" width="1%"><br />
				<font size="-1"><code>static&nbsp;class</code></font></td><br />
			<td><br />
				<code><b><a href="http://www.androidjavadoc.com/1.1_r1_src/android/provider/Calendar.BusyBits.html" title="class in android.provider">Calendar.BusyBits</a></b></code>&nbsp;<br /><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><br />
		</tr><br />
		<tr bgcolor="white" class="TableRowColor" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; "><br />
			<td align="right" valign="top" width="1%"><br />
				<font size="-1"><code>static&nbsp;interface</code></font></td><br />
			<td><br />
				<code><b><a href="http://www.androidjavadoc.com/1.1_r1_src/android/provider/Calendar.BusyBitsColumns.html" title="interface in android.provider">Calendar.BusyBitsColumns</a></b></code>&nbsp;<br /><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><br />
		</tr><br />
		<tr bgcolor="white" class="TableRowColor" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; "><br />
			<td align="right" valign="top" width="1%"><br />
				<font size="-1"><code>static&nbsp;class</code></font></td><br />
			<td><br />
				<code><b><a href="http://www.androidjavadoc.com/1.1_r1_src/android/provider/Calendar.CalendarAlerts.html" title="class in android.provider">Calendar.CalendarAlerts</a></b></code>&nbsp;<br /><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><br />
		</tr><br />
		<tr bgcolor="white" class="TableRowColor" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; "><br />
			<td align="right" valign="top" width="1%"><br />
				<font size="-1"><code>static&nbsp;interface</code></font></td><br />
			<td><br />
				<code><b><a href="http://www.androidjavadoc.com/1.1_r1_src/android/provider/Calendar.CalendarAlertsColumns.html" title="interface in android.provider">Calendar.CalendarAlertsColumns</a></b></code>&nbsp;<br /><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><br />
		</tr><br />
		<tr bgcolor="white" class="TableRowColor" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; "><br />
			<td align="right" valign="top" width="1%"><br />
				<font size="-1"><code>static&nbsp;class</code></font></td><br />
			<td><br />
				<code><b><a href="http://www.androidjavadoc.com/1.1_r1_src/android/provider/Calendar.CalendarMetaData.html" title="class in android.provider">Calendar.CalendarMetaData</a></b></code>&nbsp;<br /><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><br />
		</tr><br />
		<tr bgcolor="white" class="TableRowColor" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; "><br />
			<td align="right" valign="top" width="1%"><br />
				<font size="-1"><code>static&nbsp;interface</code></font></td><br />
			<td><br />
				<code><b><a href="http://www.androidjavadoc.com/1.1_r1_src/android/provider/Calendar.CalendarMetaDataColumns.html" title="interface in android.provider">Calendar.CalendarMetaDataColumns</a></b></code>&nbsp;<br /><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A few Calendar globals are needed in the CalendarProvider for expanding the Instances table and these are all stored in the first (and only) row of the CalendarMetaData table.</td><br />
		</tr><br />
		<tr bgcolor="white" class="TableRowColor" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; "><br />
			<td align="right" valign="top" width="1%"><br />
				<font size="-1"><code>static&nbsp;class</code></font></td><br />
			<td><br />
				<code><b><a href="http://www.androidjavadoc.com/1.1_r1_src/android/provider/Calendar.Calendars.html" title="class in android.provider">Calendar.Calendars</a></b></code>&nbsp;<br /><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Contains a list of available calendars.</td><br />
		</tr><br />
		<tr bgcolor="white" class="TableRowColor" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; "><br />
			<td align="right" valign="top" width="1%"><br />
				<font size="-1"><code>static&nbsp;interface</code></font></td><br />
			<td><br />
				<code><b><a href="http://www.androidjavadoc.com/1.1_r1_src/android/provider/Calendar.CalendarsColumns.html" title="interface in android.provider">Calendar.CalendarsColumns</a></b></code>&nbsp;<br /><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Columns from the Calendars table that other tables join into themselves.</td><br />
		</tr><br />
		<tr bgcolor="white" class="TableRowColor" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; "><br />
			<td align="right" valign="top" width="1%"><br />
				<font size="-1"><code>static&nbsp;class</code></font></td><br />
			<td><br />
				<code><b><a href="http://www.androidjavadoc.com/1.1_r1_src/android/provider/Calendar.Events.html" title="class in android.provider">Calendar.Events</a></b></code>&nbsp;<br /><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Contains one entry per calendar event.</td><br />
		</tr><br />
		<tr bgcolor="white" class="TableRowColor" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; "><br />
			<td align="right" valign="top" width="1%"><br />
				<font size="-1"><code>static&nbsp;interface</code></font></td><br />
			<td><br />
				<code><b><a href="http://www.androidjavadoc.com/1.1_r1_src/android/provider/Calendar.EventsColumns.html" title="interface in android.provider">Calendar.EventsColumns</a></b></code>&nbsp;<br /><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Columns from the Events table that other tables join into themselves.</td><br />
		</tr><br />
		<tr bgcolor="white" class="TableRowColor" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; "><br />
			<td align="right" valign="top" width="1%"><br />
				<font size="-1"><code>static&nbsp;class</code></font></td><br />
			<td><br />
				<code><b><a href="http://www.androidjavadoc.com/1.1_r1_src/android/provider/Calendar.ExtendedProperties.html" title="class in android.provider">Calendar.ExtendedProperties</a></b></code>&nbsp;<br /><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><br />
		</tr><br />
		<tr bgcolor="white" class="TableRowColor" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; "><br />
			<td align="right" valign="top" width="1%"><br />
				<font size="-1"><code>static&nbsp;interface</code></font></td><br />
			<td><br />
				<code><b><a href="http://www.androidjavadoc.com/1.1_r1_src/android/provider/Calendar.ExtendedPropertiesColumns.html" title="interface in android.provider">Calendar.ExtendedPropertiesColumns</a></b></code>&nbsp;<br /><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><br />
		</tr><br />
		<tr bgcolor="white" class="TableRowColor" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; "><br />
			<td align="right" valign="top" width="1%"><br />
				<font size="-1"><code>static&nbsp;class</code></font></td><br />
			<td><br />
				<code><b><a href="http://www.androidjavadoc.com/1.1_r1_src/android/provider/Calendar.Instances.html" title="class in android.provider">Calendar.Instances</a></b></code>&nbsp;<br /><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Contains one entry per calendar event instance.</td><br />
		</tr><br />
		<tr bgcolor="white" class="TableRowColor" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; "><br />
			<td align="right" valign="top" width="1%"><br />
				<font size="-1"><code>static&nbsp;class</code></font></td><br />
			<td><br />
				<code><b><a href="http://www.androidjavadoc.com/1.1_r1_src/android/provider/Calendar.Reminders.html" title="class in android.provider">Calendar.Reminders</a></b></code>&nbsp;<br /><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><br />
		</tr><br />
		<tr bgcolor="white" class="TableRowColor" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; "><br />
			<td align="right" valign="top" width="1%"><br />
				<font size="-1"><code>static&nbsp;interface</code></font></td><br />
			<td><br />
				<code><b><a href="http://www.androidjavadoc.com/1.1_r1_src/android/provider/Calendar.RemindersColumns.html" title="interface in android.provider">Calendar.RemindersColumns</a></b></code>&nbsp;<br /><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><br />
		</tr><br />
	</tbody><br />
</table><br />
<p><br />
	<span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Gulim; font-size: medium; ">&nbsp;</span><a name="field_summary" style="color: rgb(0, 0, 0); font-family: Gulim; font-size: medium; "></a></p><br />
<table border="1" cellpadding="3" cellspacing="0" style="color: rgb(0, 0, 0); font-family: Gulim; font-size: medium; " summary="" width="100%"><br />
	<tbody><br />
		<tr bgcolor="#CCCCFF" class="TableHeadingColor" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(204, 204, 255); "><br />
			<th align="left" colspan="2"><br />
				<font size="+2"><b>Field Summary</b></font></th><br />
		</tr><br />
		<tr bgcolor="white" class="TableRowColor" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; "><br />
			<td align="right" valign="top" width="1%"><br />
				<font size="-1"><code>static&nbsp;<a href="http://www.androidjavadoc.com/1.1_r1_src/java/lang/String.html" title="class in java.lang">String</a></code></font></td><br />
			<td><br />
				<code><b><a href="http://www.androidjavadoc.com/1.1_r1_src/android/provider/Calendar.html#AUTHORITY">AUTHORITY</a></b></code>&nbsp;<br /><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><br />
		</tr><br />
		<tr bgcolor="white" class="TableRowColor" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; "><br />
			<td align="right" valign="top" width="1%"><br />
				<font size="-1"><code>static&nbsp;<a href="http://www.androidjavadoc.com/1.1_r1_src/android/net/Uri.html" title="class in android.net">Uri</a></code></font></td><br />
			<td><br />
				<code><b><a href="http://www.androidjavadoc.com/1.1_r1_src/android/provider/Calendar.html#CONTENT_URI">CONTENT_URI</a></b></code>&nbsp;<br /><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The content:// style URL for the top-level calendar authority</td><br />
		</tr><br />
		<tr bgcolor="white" class="TableRowColor" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; "><br />
			<td align="right" valign="top" width="1%"><br />
				<font size="-1"><code>static&nbsp;<a href="http://www.androidjavadoc.com/1.1_r1_src/java/lang/String.html" title="class in java.lang">String</a></code></font></td><br />
			<td><br />
				<code><b><a href="http://www.androidjavadoc.com/1.1_r1_src/android/provider/Calendar.html#EVENT_BEGIN_TIME">EVENT_BEGIN_TIME</a></b></code>&nbsp;<br /><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;These are the symbolic names for the keys used in the extra data passed in the intent for event reminders.</td><br />
		</tr><br />
		<tr bgcolor="white" class="TableRowColor" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; "><br />
			<td align="right" valign="top" width="1%"><br />
				<font size="-1"><code>static&nbsp;<a href="http://www.androidjavadoc.com/1.1_r1_src/java/lang/String.html" title="class in java.lang">String</a></code></font></td><br />
			<td><br />
				<code><b><a href="http://www.androidjavadoc.com/1.1_r1_src/android/provider/Calendar.html#EVENT_END_TIME">EVENT_END_TIME</a></b></code>&nbsp;<br /><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><br />
		</tr><br />
		<tr bgcolor="white" class="TableRowColor" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; "><br />
			<td align="right" valign="top" width="1%"><br />
				<font size="-1"><code>static&nbsp;<a href="http://www.androidjavadoc.com/1.1_r1_src/java/lang/String.html" title="class in java.lang">String</a></code></font></td><br />
			<td><br />
				<code><b><a href="http://www.androidjavadoc.com/1.1_r1_src/android/provider/Calendar.html#EVENT_REMINDER_ACTION">EVENT_REMINDER_ACTION</a></b></code>&nbsp;<br /><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Broadcast Action: An event reminder.</td><br />
		</tr><br />
		<tr bgcolor="white" class="TableRowColor" style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; "><br />
			<td align="right" valign="top" width="1%"><br />
				<font size="-1"><code>static&nbsp;<a href="http://www.androidjavadoc.com/1.1_r1_src/java/lang/String.html" title="class in java.lang">String</a></code></font></td><br />
			<td><br />
				<code><b><a href="http://www.androidjavadoc.com/1.1_r1_src/android/provider/Calendar.html#TAG">TAG</a></b></code>&nbsp;<br /><br />
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><br />
		</tr><br />
	</tbody><br />
</table><br />
<p><br />
	<span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Gulim; font-size: medium; ">&nbsp;</span></p><br />
]]]></description>
		<pubDate>Array</pubDate>
		</item>

		<item>
		<category><![CDATA[[]]]></category>
		<title><![CDATA[[json to str, str to json]]]></title>
		<link>http://www.sarangnamu.net/basic/basic_view.php?no=5189</link>
		<description><![CDATA[[https://github.com/douglascrockford/JSON-js<br />
<br />
[code]<br />
var data = {<br />
	"startTime": 1323298800000,<br />
	"summary": "8dayyear",<br />
	"ObigoID": "429",<br />
	"duration": 0,<br />
	"recurrence": 4,<br />
	"interval": 1,<br />
	"status": 0,<br />
	"location": "",<br />
	"byday": [],<br />
	"description": "",<br />
	"alarmTrigger": 0<br />
};<br />
<br />
alert(data);<br />
var j2str = JSON.stringify(data);<br />
alert(j2str);<br />
var str2j = JSON.parse(j2str);<br />
<br />
alert(str2j.recurrence);<br />
alert(typeof str2j.byday);<br />
alert(str2j.byday.length);<br />
[/code]]]]></description>
		<pubDate>Array</pubDate>
		</item>

		<item>
		<category><![CDATA[[]]]></category>
		<title><![CDATA[[Calendar.AttendeesColumns]]]></title>
		<link>http://www.sarangnamu.net/basic/basic_view.php?no=5188</link>
		<description><![CDATA[[http://www.androidjavadoc.com/1.1_r1_src/android/provider/Calendar.AttendeesColumns.html]]]></description>
		<pubDate>Array</pubDate>
		</item>

	</channel>
</rss>


