Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

converted tabs to spaces

  • Loading branch information...
commit 7083f69c6c619ac6687a1c1f470fc3db0506f202 1 parent a8f991e
Mark Murphy authored July 23, 2011

Showing 301 changed files with 13,379 additions and 13,379 deletions. Show diff stats Hide diff stats

  1. 32  02-SimpleForm/LunchList/AndroidManifest.xml
  2. 100  02-SimpleForm/LunchList/build.xml
  3. 78  02-SimpleForm/LunchList/res/layout/main.xml
  4. 2  02-SimpleForm/LunchList/res/values/strings.xml
  5. 42  02-SimpleForm/LunchList/src/apt/tutorial/LunchList.java
  6. 36  02-SimpleForm/LunchList/src/apt/tutorial/Restaurant.java
  7. 32  03-FancierForm/LunchList/AndroidManifest.xml
  8. 100  03-FancierForm/LunchList/build.xml
  9. 66  03-FancierForm/LunchList/res/layout/main.xml
  10. 2  03-FancierForm/LunchList/res/values/strings.xml
  11. 74  03-FancierForm/LunchList/src/apt/tutorial/LunchList.java
  12. 54  03-FancierForm/LunchList/src/apt/tutorial/Restaurant.java
  13. 32  04-ListView/LunchList/AndroidManifest.xml
  14. 100  04-ListView/LunchList/build.xml
  15. 90  04-ListView/LunchList/res/layout/main.xml
  16. 2  04-ListView/LunchList/res/values/strings.xml
  17. 96  04-ListView/LunchList/src/apt/tutorial/LunchList.java
  18. 62  04-ListView/LunchList/src/apt/tutorial/Restaurant.java
  19. 32  05-FancyList/LunchList/AndroidManifest.xml
  20. 100  05-FancyList/LunchList/build.xml
  21. 90  05-FancyList/LunchList/res/layout/main.xml
  22. 70  05-FancyList/LunchList/res/layout/row.xml
  23. 2  05-FancyList/LunchList/res/values/strings.xml
  24. 200  05-FancyList/LunchList/src/apt/tutorial/LunchList.java
  25. 62  05-FancyList/LunchList/src/apt/tutorial/Restaurant.java
  26. 32  06-Tabs/LunchList/AndroidManifest.xml
  27. 100  06-Tabs/LunchList/build.xml
  28. 114  06-Tabs/LunchList/res/layout/main.xml
  29. 70  06-Tabs/LunchList/res/layout/row.xml
  30. 2  06-Tabs/LunchList/res/values/strings.xml
  31. 284  06-Tabs/LunchList/src/apt/tutorial/LunchList.java
  32. 62  06-Tabs/LunchList/src/apt/tutorial/Restaurant.java
  33. 32  07-MenusMessages/LunchList/AndroidManifest.xml
  34. 100  07-MenusMessages/LunchList/build.xml
  35. 142  07-MenusMessages/LunchList/res/layout/main.xml
  36. 70  07-MenusMessages/LunchList/res/layout/row.xml
  37. 8  07-MenusMessages/LunchList/res/menu/option.xml
  38. 2  07-MenusMessages/LunchList/res/values/strings.xml
  39. 338  07-MenusMessages/LunchList/src/apt/tutorial/LunchList.java
  40. 80  07-MenusMessages/LunchList/src/apt/tutorial/Restaurant.java
  41. 32  08-Threads/LunchList/AndroidManifest.xml
  42. 100  08-Threads/LunchList/build.xml
  43. 142  08-Threads/LunchList/res/layout/main.xml
  44. 70  08-Threads/LunchList/res/layout/row.xml
  45. 16  08-Threads/LunchList/res/menu/option.xml
  46. 2  08-Threads/LunchList/res/values/strings.xml
  47. 406  08-Threads/LunchList/src/apt/tutorial/LunchList.java
  48. 80  08-Threads/LunchList/src/apt/tutorial/Restaurant.java
  49. 32  09-Lifecycle/LunchList/AndroidManifest.xml
  50. 100  09-Lifecycle/LunchList/build.xml
  51. 142  09-Lifecycle/LunchList/res/layout/main.xml
  52. 70  09-Lifecycle/LunchList/res/layout/row.xml
  53. 16  09-Lifecycle/LunchList/res/menu/option.xml
  54. 2  09-Lifecycle/LunchList/res/values/strings.xml
  55. 460  09-Lifecycle/LunchList/src/apt/tutorial/LunchList.java
  56. 80  09-Lifecycle/LunchList/src/apt/tutorial/Restaurant.java
  57. 32  10-Resources/LunchList/AndroidManifest.xml
  58. 100  10-Resources/LunchList/build.xml
  59. 182  10-Resources/LunchList/res/layout-land/main.xml
  60. 142  10-Resources/LunchList/res/layout/main.xml
  61. 70  10-Resources/LunchList/res/layout/row.xml
  62. 16  10-Resources/LunchList/res/menu/option.xml
  63. 2  10-Resources/LunchList/res/values/strings.xml
  64. 460  10-Resources/LunchList/src/apt/tutorial/LunchList.java
  65. 80  10-Resources/LunchList/src/apt/tutorial/Restaurant.java
  66. 32  11-Database/LunchList/AndroidManifest.xml
  67. 100  11-Database/LunchList/build.xml
  68. 182  11-Database/LunchList/res/layout-land/main.xml
  69. 152  11-Database/LunchList/res/layout/main.xml
  70. 70  11-Database/LunchList/res/layout/row.xml
  71. 16  11-Database/LunchList/res/menu/option.xml
  72. 2  11-Database/LunchList/res/values/strings.xml
  73. 308  11-Database/LunchList/src/apt/tutorial/LunchList.java
  74. 98  11-Database/LunchList/src/apt/tutorial/RestaurantHelper.java
  75. 34  12-Activities/LunchList/AndroidManifest.xml
  76. 100  12-Activities/LunchList/build.xml
  77. 94  12-Activities/LunchList/res/layout/detail_form.xml
  78. 24  12-Activities/LunchList/res/layout/main.xml
  79. 70  12-Activities/LunchList/res/layout/row.xml
  80. 8  12-Activities/LunchList/res/menu/option.xml
  81. 2  12-Activities/LunchList/res/values/strings.xml
  82. 168  12-Activities/LunchList/src/apt/tutorial/DetailForm.java
  83. 200  12-Activities/LunchList/src/apt/tutorial/LunchList.java
  84. 140  12-Activities/LunchList/src/apt/tutorial/RestaurantHelper.java
  85. 36  13-Prefs/LunchList/AndroidManifest.xml
  86. 100  13-Prefs/LunchList/build.xml
  87. 94  13-Prefs/LunchList/res/layout/detail_form.xml
  88. 24  13-Prefs/LunchList/res/layout/main.xml
  89. 70  13-Prefs/LunchList/res/layout/row.xml
  90. 16  13-Prefs/LunchList/res/menu/option.xml
  91. 28  13-Prefs/LunchList/res/values/arrays.xml
  92. 2  13-Prefs/LunchList/res/values/strings.xml
  93. 16  13-Prefs/LunchList/res/xml/preferences.xml
  94. 170  13-Prefs/LunchList/src/apt/tutorial/DetailForm.java
  95. 12  13-Prefs/LunchList/src/apt/tutorial/EditPreferences.java
  96. 252  13-Prefs/LunchList/src/apt/tutorial/LunchList.java
  97. 140  13-Prefs/LunchList/src/apt/tutorial/RestaurantHelper.java
  98. 36  14-Rotation/LunchList/AndroidManifest.xml
  99. 100  14-Rotation/LunchList/build.xml
  100. 106  14-Rotation/LunchList/res/layout-land/detail_form.xml
  101. 94  14-Rotation/LunchList/res/layout/detail_form.xml
  102. 24  14-Rotation/LunchList/res/layout/main.xml
  103. 70  14-Rotation/LunchList/res/layout/row.xml
  104. 16  14-Rotation/LunchList/res/menu/option.xml
  105. 28  14-Rotation/LunchList/res/values/arrays.xml
  106. 2  14-Rotation/LunchList/res/values/strings.xml
  107. 16  14-Rotation/LunchList/res/xml/preferences.xml
  108. 208  14-Rotation/LunchList/src/apt/tutorial/DetailForm.java
  109. 12  14-Rotation/LunchList/src/apt/tutorial/EditPreferences.java
  110. 252  14-Rotation/LunchList/src/apt/tutorial/LunchList.java
  111. 140  14-Rotation/LunchList/src/apt/tutorial/RestaurantHelper.java
  112. 42  15-Internet/LunchList/AndroidManifest.xml
  113. 100  15-Internet/LunchList/build.xml
  114. 116  15-Internet/LunchList/res/layout-land/detail_form.xml
  115. 96  15-Internet/LunchList/res/layout/detail_form.xml
  116. 24  15-Internet/LunchList/res/layout/main.xml
  117. 70  15-Internet/LunchList/res/layout/row.xml
  118. 8  15-Internet/LunchList/res/menu/details_option.xml
  119. 16  15-Internet/LunchList/res/menu/option.xml
  120. 28  15-Internet/LunchList/res/values/arrays.xml
  121. 2  15-Internet/LunchList/res/values/strings.xml
  122. 16  15-Internet/LunchList/res/xml/preferences.xml
  123. 246  15-Internet/LunchList/src/apt/tutorial/DetailForm.java
  124. 12  15-Internet/LunchList/src/apt/tutorial/EditPreferences.java
  125. 272  15-Internet/LunchList/src/apt/tutorial/FeedActivity.java
  126. 252  15-Internet/LunchList/src/apt/tutorial/LunchList.java
  127. 152  15-Internet/LunchList/src/apt/tutorial/RestaurantHelper.java
  128. 44  16-Service/LunchList/AndroidManifest.xml
  129. 100  16-Service/LunchList/build.xml
  130. 116  16-Service/LunchList/res/layout-land/detail_form.xml
  131. 100  16-Service/LunchList/res/layout/detail_form.xml
  132. 24  16-Service/LunchList/res/layout/main.xml
  133. 70  16-Service/LunchList/res/layout/row.xml
  134. 8  16-Service/LunchList/res/menu/details_option.xml
  135. 16  16-Service/LunchList/res/menu/option.xml
  136. 28  16-Service/LunchList/res/values/arrays.xml
  137. 2  16-Service/LunchList/res/values/strings.xml
  138. 16  16-Service/LunchList/res/xml/preferences.xml
  139. 246  16-Service/LunchList/src/apt/tutorial/DetailForm.java
  140. 12  16-Service/LunchList/src/apt/tutorial/EditPreferences.java
  141. 254  16-Service/LunchList/src/apt/tutorial/FeedActivity.java
  142. 62  16-Service/LunchList/src/apt/tutorial/FeedService.java
  143. 252  16-Service/LunchList/src/apt/tutorial/LunchList.java
  144. 152  16-Service/LunchList/src/apt/tutorial/RestaurantHelper.java
  145. 46  17-Location/LunchList/AndroidManifest.xml
  146. 100  17-Location/LunchList/build.xml
  147. 136  17-Location/LunchList/res/layout-land/detail_form.xml
  148. 100  17-Location/LunchList/res/layout/detail_form.xml
  149. 24  17-Location/LunchList/res/layout/main.xml
  150. 70  17-Location/LunchList/res/layout/row.xml
  151. 16  17-Location/LunchList/res/menu/details_option.xml
  152. 16  17-Location/LunchList/res/menu/option.xml
  153. 28  17-Location/LunchList/res/values/arrays.xml
  154. 2  17-Location/LunchList/res/values/strings.xml
  155. 16  17-Location/LunchList/res/xml/preferences.xml
  156. 354  17-Location/LunchList/src/apt/tutorial/DetailForm.java
  157. 12  17-Location/LunchList/src/apt/tutorial/EditPreferences.java
  158. 254  17-Location/LunchList/src/apt/tutorial/FeedActivity.java
  159. 62  17-Location/LunchList/src/apt/tutorial/FeedService.java
  160. 252  17-Location/LunchList/src/apt/tutorial/LunchList.java
  161. 204  17-Location/LunchList/src/apt/tutorial/RestaurantHelper.java
  162. 50  18-Map/LunchList/AndroidManifest.xml
  163. 100  18-Map/LunchList/build.xml
  164. 136  18-Map/LunchList/res/layout-land/detail_form.xml
  165. 100  18-Map/LunchList/res/layout/detail_form.xml
  166. 24  18-Map/LunchList/res/layout/main.xml
  167. 12  18-Map/LunchList/res/layout/map.xml
  168. 70  18-Map/LunchList/res/layout/row.xml
  169. 24  18-Map/LunchList/res/menu/details_option.xml
  170. 16  18-Map/LunchList/res/menu/option.xml
  171. 28  18-Map/LunchList/res/values/arrays.xml
  172. 2  18-Map/LunchList/res/values/strings.xml
  173. 16  18-Map/LunchList/res/xml/preferences.xml
  174. 388  18-Map/LunchList/src/apt/tutorial/DetailForm.java
  175. 12  18-Map/LunchList/src/apt/tutorial/EditPreferences.java
  176. 254  18-Map/LunchList/src/apt/tutorial/FeedActivity.java
  177. 62  18-Map/LunchList/src/apt/tutorial/FeedService.java
  178. 252  18-Map/LunchList/src/apt/tutorial/LunchList.java
  179. 204  18-Map/LunchList/src/apt/tutorial/RestaurantHelper.java
  180. 142  18-Map/LunchList/src/apt/tutorial/RestaurantMap.java
  181. 68  19-Alarm/LunchList/AndroidManifest.xml
  182. 100  19-Alarm/LunchList/build.xml
  183. 136  19-Alarm/LunchList/res/layout-land/detail_form.xml
  184. 12  19-Alarm/LunchList/res/layout/alarm.xml
  185. 100  19-Alarm/LunchList/res/layout/detail_form.xml
  186. 24  19-Alarm/LunchList/res/layout/main.xml
  187. 12  19-Alarm/LunchList/res/layout/map.xml
  188. 70  19-Alarm/LunchList/res/layout/row.xml
  189. 24  19-Alarm/LunchList/res/menu/details_option.xml
  190. 16  19-Alarm/LunchList/res/menu/option.xml
  191. 28  19-Alarm/LunchList/res/values/arrays.xml
  192. 2  19-Alarm/LunchList/res/values/strings.xml
  193. 36  19-Alarm/LunchList/res/xml/preferences.xml
  194. 10  19-Alarm/LunchList/src/apt/tutorial/AlarmActivity.java
  195. 388  19-Alarm/LunchList/src/apt/tutorial/DetailForm.java
  196. 108  19-Alarm/LunchList/src/apt/tutorial/EditPreferences.java
  197. 254  19-Alarm/LunchList/src/apt/tutorial/FeedActivity.java
  198. 62  19-Alarm/LunchList/src/apt/tutorial/FeedService.java
  199. 252  19-Alarm/LunchList/src/apt/tutorial/LunchList.java
  200. 16  19-Alarm/LunchList/src/apt/tutorial/OnAlarmReceiver.java
  201. 70  19-Alarm/LunchList/src/apt/tutorial/OnBootReceiver.java
  202. 204  19-Alarm/LunchList/src/apt/tutorial/RestaurantHelper.java
  203. 142  19-Alarm/LunchList/src/apt/tutorial/RestaurantMap.java
  204. 144  19-Alarm/LunchList/src/apt/tutorial/TimePreference.java
  205. 68  20-Notification/LunchList/AndroidManifest.xml
  206. 100  20-Notification/LunchList/build.xml
  207. 136  20-Notification/LunchList/res/layout-land/detail_form.xml
  208. 12  20-Notification/LunchList/res/layout/alarm.xml
  209. 100  20-Notification/LunchList/res/layout/detail_form.xml
  210. 24  20-Notification/LunchList/res/layout/main.xml
  211. 12  20-Notification/LunchList/res/layout/map.xml
  212. 70  20-Notification/LunchList/res/layout/row.xml
  213. 24  20-Notification/LunchList/res/menu/details_option.xml
  214. 16  20-Notification/LunchList/res/menu/option.xml
  215. 28  20-Notification/LunchList/res/values/arrays.xml
  216. 2  20-Notification/LunchList/res/values/strings.xml
  217. 48  20-Notification/LunchList/res/xml/preferences.xml
  218. 10  20-Notification/LunchList/src/apt/tutorial/AlarmActivity.java
  219. 388  20-Notification/LunchList/src/apt/tutorial/DetailForm.java
  220. 108  20-Notification/LunchList/src/apt/tutorial/EditPreferences.java
  221. 254  20-Notification/LunchList/src/apt/tutorial/FeedActivity.java
  222. 62  20-Notification/LunchList/src/apt/tutorial/FeedService.java
  223. 252  20-Notification/LunchList/src/apt/tutorial/LunchList.java
  224. 62  20-Notification/LunchList/src/apt/tutorial/OnAlarmReceiver.java
  225. 72  20-Notification/LunchList/src/apt/tutorial/OnBootReceiver.java
  226. 204  20-Notification/LunchList/src/apt/tutorial/RestaurantHelper.java
  227. 142  20-Notification/LunchList/src/apt/tutorial/RestaurantMap.java
  228. 144  20-Notification/LunchList/src/apt/tutorial/TimePreference.java
  229. 88  21-AppWidget/LunchList/AndroidManifest.xml
  230. 100  21-AppWidget/LunchList/build.xml
  231. 136  21-AppWidget/LunchList/res/layout-land/detail_form.xml
  232. 12  21-AppWidget/LunchList/res/layout/alarm.xml
  233. 100  21-AppWidget/LunchList/res/layout/detail_form.xml
  234. 24  21-AppWidget/LunchList/res/layout/main.xml
  235. 12  21-AppWidget/LunchList/res/layout/map.xml
  236. 70  21-AppWidget/LunchList/res/layout/row.xml
  237. 38  21-AppWidget/LunchList/res/layout/widget.xml
  238. 24  21-AppWidget/LunchList/res/menu/details_option.xml
  239. 16  21-AppWidget/LunchList/res/menu/option.xml
  240. 28  21-AppWidget/LunchList/res/values/arrays.xml
  241. 4  21-AppWidget/LunchList/res/values/strings.xml
  242. 48  21-AppWidget/LunchList/res/xml/preferences.xml
  243. 8  21-AppWidget/LunchList/res/xml/widget_provider.xml
  244. 10  21-AppWidget/LunchList/src/apt/tutorial/AlarmActivity.java
  245. 12  21-AppWidget/LunchList/src/apt/tutorial/AppWidget.java
  246. 388  21-AppWidget/LunchList/src/apt/tutorial/DetailForm.java
  247. 108  21-AppWidget/LunchList/src/apt/tutorial/EditPreferences.java
  248. 254  21-AppWidget/LunchList/src/apt/tutorial/FeedActivity.java
  249. 62  21-AppWidget/LunchList/src/apt/tutorial/FeedService.java
  250. 252  21-AppWidget/LunchList/src/apt/tutorial/LunchList.java
  251. 62  21-AppWidget/LunchList/src/apt/tutorial/OnAlarmReceiver.java
  252. 72  21-AppWidget/LunchList/src/apt/tutorial/OnBootReceiver.java
  253. 204  21-AppWidget/LunchList/src/apt/tutorial/RestaurantHelper.java
  254. 142  21-AppWidget/LunchList/src/apt/tutorial/RestaurantMap.java
  255. 144  21-AppWidget/LunchList/src/apt/tutorial/TimePreference.java
  256. 118  21-AppWidget/LunchList/src/apt/tutorial/WidgetService.java
  257. 94  22-HCAppWidget/LunchList/AndroidManifest.xml
  258. 100  22-HCAppWidget/LunchList/build.xml
  259. 136  22-HCAppWidget/LunchList/res/layout-land/detail_form.xml
  260. 10  22-HCAppWidget/LunchList/res/layout-v11/widget.xml
  261. 12  22-HCAppWidget/LunchList/res/layout/alarm.xml
  262. 100  22-HCAppWidget/LunchList/res/layout/detail_form.xml
  263. 24  22-HCAppWidget/LunchList/res/layout/main.xml
  264. 12  22-HCAppWidget/LunchList/res/layout/map.xml
  265. 70  22-HCAppWidget/LunchList/res/layout/row.xml
  266. 38  22-HCAppWidget/LunchList/res/layout/widget.xml
  267. 36  22-HCAppWidget/LunchList/res/layout/widget_row.xml
  268. 24  22-HCAppWidget/LunchList/res/menu/details_option.xml
  269. 16  22-HCAppWidget/LunchList/res/menu/option.xml
  270. 28  22-HCAppWidget/LunchList/res/values/arrays.xml
  271. 4  22-HCAppWidget/LunchList/res/values/strings.xml
  272. 10  22-HCAppWidget/LunchList/res/xml-v11/widget_provider.xml
  273. 48  22-HCAppWidget/LunchList/res/xml/preferences.xml
  274. 8  22-HCAppWidget/LunchList/res/xml/widget_provider.xml
  275. 10  22-HCAppWidget/LunchList/src/apt/tutorial/AlarmActivity.java
  276. 72  22-HCAppWidget/LunchList/src/apt/tutorial/AppWidget.java
  277. 388  22-HCAppWidget/LunchList/src/apt/tutorial/DetailForm.java
  278. 108  22-HCAppWidget/LunchList/src/apt/tutorial/EditPreferences.java
  279. 254  22-HCAppWidget/LunchList/src/apt/tutorial/FeedActivity.java
  280. 62  22-HCAppWidget/LunchList/src/apt/tutorial/FeedService.java
  281. 130  22-HCAppWidget/LunchList/src/apt/tutorial/ListViewsFactory.java
  282. 10  22-HCAppWidget/LunchList/src/apt/tutorial/ListWidgetService.java
  283. 252  22-HCAppWidget/LunchList/src/apt/tutorial/LunchList.java
  284. 62  22-HCAppWidget/LunchList/src/apt/tutorial/OnAlarmReceiver.java
  285. 72  22-HCAppWidget/LunchList/src/apt/tutorial/OnBootReceiver.java
  286. 204  22-HCAppWidget/LunchList/src/apt/tutorial/RestaurantHelper.java
  287. 142  22-HCAppWidget/LunchList/src/apt/tutorial/RestaurantMap.java
  288. 144  22-HCAppWidget/LunchList/src/apt/tutorial/TimePreference.java
  289. 114  22-HCAppWidget/LunchList/src/apt/tutorial/WidgetService.java
  290. 96  23-Honeycomb/LunchList/AndroidManifest.xml
  291. 100  23-Honeycomb/LunchList/build.xml
  292. 128  23-Honeycomb/LunchList/res/layout-land/detail_form.xml
  293. 12  23-Honeycomb/LunchList/res/layout-v11/widget.xml
  294. 12  23-Honeycomb/LunchList/res/layout/alarm.xml
  295. 8  23-Honeycomb/LunchList/res/layout/detail_activity.xml
  296. 100  23-Honeycomb/LunchList/res/layout/detail_form.xml
  297. 8  23-Honeycomb/LunchList/res/layout/main.xml
  298. 12  23-Honeycomb/LunchList/res/layout/map.xml
  299. 70  23-Honeycomb/LunchList/res/layout/row.xml
  300. 38  23-Honeycomb/LunchList/res/layout/widget.xml
32  02-SimpleForm/LunchList/AndroidManifest.xml 100755 → 100644
... ...
@@ -1,19 +1,19 @@
1 1
 <?xml version="1.0" encoding="utf-8"?>
2 2
 <manifest android:versionCode="1"
3  
-					android:versionName="1.0"
4  
-					package="apt.tutorial"
5  
-					xmlns:android="http://schemas.android.com/apk/res/android">
6  
-					
7  
-	<supports-screens android:largeScreens="true"
8  
-										android:normalScreens="true"
9  
-										android:smallScreens="false" />
10  
-	<application android:label="@string/app_name">
11  
-		<activity android:label="@string/app_name"
12  
-							android:name=".LunchList">
13  
-			<intent-filter>
14  
-				<action android:name="android.intent.action.MAIN" />
15  
-				<category android:name="android.intent.category.LAUNCHER" />
16  
-			</intent-filter>
17  
-		</activity>
18  
-	</application>
  3
+          android:versionName="1.0"
  4
+          package="apt.tutorial"
  5
+          xmlns:android="http://schemas.android.com/apk/res/android">
  6
+          
  7
+  <supports-screens android:largeScreens="true"
  8
+                    android:normalScreens="true"
  9
+                    android:smallScreens="false" />
  10
+  <application android:label="@string/app_name">
  11
+    <activity android:label="@string/app_name"
  12
+              android:name=".LunchList">
  13
+      <intent-filter>
  14
+        <action android:name="android.intent.action.MAIN" />
  15
+        <category android:name="android.intent.category.LAUNCHER" />
  16
+      </intent-filter>
  17
+    </activity>
  18
+  </application>
19 19
 </manifest>
100  02-SimpleForm/LunchList/build.xml
... ...
@@ -1,67 +1,67 @@
1 1
 <?xml version="1.0" encoding="UTF-8"?>
2 2
 <project name="LunchList" default="help">
3 3
 
4  
-		<!-- The local.properties file is created and updated by the 'android' tool.
5  
-				 It contains the path to the SDK. It should *NOT* be checked in in Version
6  
-				 Control Systems. -->
7  
-		<property file="local.properties" />
  4
+    <!-- The local.properties file is created and updated by the 'android' tool.
  5
+         It contains the path to the SDK. It should *NOT* be checked in in Version
  6
+         Control Systems. -->
  7
+    <property file="local.properties" />
8 8
 
9  
-		<!-- The build.properties file can be created by you and is never touched
10  
-				 by the 'android' tool. This is the place to change some of the default property values
11  
-				 used by the Ant rules.
12  
-				 Here are some properties you may want to change/update:
  9
+    <!-- The build.properties file can be created by you and is never touched
  10
+         by the 'android' tool. This is the place to change some of the default property values
  11
+         used by the Ant rules.
  12
+         Here are some properties you may want to change/update:
13 13
 
14  
-				 application.package
15  
-						 the name of your application package as defined in the manifest. Used by the
16  
-						 'uninstall' rule.
17  
-				 source.dir
18  
-						 the name of the source directory. Default is 'src'.
19  
-				 out.dir
20  
-						 the name of the output directory. Default is 'bin'.
  14
+         application.package
  15
+             the name of your application package as defined in the manifest. Used by the
  16
+             'uninstall' rule.
  17
+         source.dir
  18
+             the name of the source directory. Default is 'src'.
  19
+         out.dir
  20
+             the name of the output directory. Default is 'bin'.
21 21
 
22  
-				 Properties related to the SDK location or the project target should be updated
23  
-					using the 'android' tool with the 'update' action.
  22
+         Properties related to the SDK location or the project target should be updated
  23
+          using the 'android' tool with the 'update' action.
24 24
 
25  
-				 This file is an integral part of the build system for your application and
26  
-				 should be checked in in Version Control Systems.
  25
+         This file is an integral part of the build system for your application and
  26
+         should be checked in in Version Control Systems.
27 27
 
28  
-				 -->
29  
-		<property file="build.properties" />
  28
+         -->
  29
+    <property file="build.properties" />
30 30
 
31  
-		<!-- The default.properties file is created and updated by the 'android' tool, as well
32  
-				 as ADT.
33  
-				 This file is an integral part of the build system for your application and
34  
-				 should be checked in in Version Control Systems. -->
35  
-		<property file="default.properties" />
  31
+    <!-- The default.properties file is created and updated by the 'android' tool, as well
  32
+         as ADT.
  33
+         This file is an integral part of the build system for your application and
  34
+         should be checked in in Version Control Systems. -->
  35
+    <property file="default.properties" />
36 36
 
37  
-		<!-- Custom Android task to deal with the project target, and import the proper rules.
38  
-				 This requires ant 1.6.0 or above. -->
39  
-		<path id="android.antlibs">
40  
-				<pathelement path="${sdk.dir}/tools/lib/anttasks.jar" />
41  
-				<pathelement path="${sdk.dir}/tools/lib/sdklib.jar" />
42  
-				<pathelement path="${sdk.dir}/tools/lib/androidprefs.jar" />
43  
-				<pathelement path="${sdk.dir}/tools/lib/apkbuilder.jar" />
44  
-				<pathelement path="${sdk.dir}/tools/lib/jarutils.jar" />
45  
-		</path>
  37
+    <!-- Custom Android task to deal with the project target, and import the proper rules.
  38
+         This requires ant 1.6.0 or above. -->
  39
+    <path id="android.antlibs">
  40
+        <pathelement path="${sdk.dir}/tools/lib/anttasks.jar" />
  41
+        <pathelement path="${sdk.dir}/tools/lib/sdklib.jar" />
  42
+        <pathelement path="${sdk.dir}/tools/lib/androidprefs.jar" />
  43
+        <pathelement path="${sdk.dir}/tools/lib/apkbuilder.jar" />
  44
+        <pathelement path="${sdk.dir}/tools/lib/jarutils.jar" />
  45
+    </path>
46 46
 
47  
-		<taskdef name="setup"
48  
-				classname="com.android.ant.SetupTask"
49  
-				classpathref="android.antlibs" />
  47
+    <taskdef name="setup"
  48
+        classname="com.android.ant.SetupTask"
  49
+        classpathref="android.antlibs" />
50 50
 
51  
-		<!-- Execute the Android Setup task that will setup some properties specific to the target,
52  
-				 and import the build rules files.
  51
+    <!-- Execute the Android Setup task that will setup some properties specific to the target,
  52
+         and import the build rules files.
53 53
 
54  
-				 The rules file is imported from
55  
-						<SDK>/platforms/<target_platform>/templates/android_rules.xml
  54
+         The rules file is imported from
  55
+            <SDK>/platforms/<target_platform>/templates/android_rules.xml
56 56
 
57  
-				 To customize some build steps for your project:
58  
-				 - copy the content of the main node <project> from android_rules.xml
59  
-				 - paste it in this build.xml below the <setup /> task.
60  
-				 - disable the import by changing the setup task below to <setup import="false" />
  57
+         To customize some build steps for your project:
  58
+         - copy the content of the main node <project> from android_rules.xml
  59
+         - paste it in this build.xml below the <setup /> task.
  60
+         - disable the import by changing the setup task below to <setup import="false" />
61 61
 
62  
-				 This will ensure that the properties are setup correctly but that your customized
63  
-				 build steps are used.
64  
-		-->
65  
-		<setup />
  62
+         This will ensure that the properties are setup correctly but that your customized
  63
+         build steps are used.
  64
+    -->
  65
+    <setup />
66 66
 
67 67
 </project>
78  02-SimpleForm/LunchList/res/layout/main.xml 100755 → 100644
... ...
@@ -1,42 +1,42 @@
1 1
 <?xml version="1.0" encoding="utf-8"?>
2 2
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3  
-	android:orientation="vertical"
4  
-	android:layout_width="match_parent"
5  
-	android:layout_height="match_parent"
6  
-	>
7  
-	<LinearLayout
8  
-		android:orientation="horizontal"
9  
-		android:layout_width="match_parent"
10  
-		android:layout_height="wrap_content"
11  
-		>
12  
-		<TextView	
13  
-			android:layout_width="wrap_content" 
14  
-			android:layout_height="wrap_content" 
15  
-			android:text="Name:"
16  
-			/>
17  
-		<EditText android:id="@+id/name"
18  
-			android:layout_width="match_parent" 
19  
-			android:layout_height="wrap_content" 
20  
-			/>
21  
-	</LinearLayout>
22  
-	<LinearLayout
23  
-		android:orientation="horizontal"
24  
-		android:layout_width="match_parent"
25  
-		android:layout_height="wrap_content"
26  
-		>
27  
-		<TextView	
28  
-			android:layout_width="wrap_content" 
29  
-			android:layout_height="wrap_content" 
30  
-			android:text="Address:"
31  
-			/>
32  
-		<EditText android:id="@+id/addr"
33  
-			android:layout_width="match_parent" 
34  
-			android:layout_height="wrap_content" 
35  
-			/>
36  
-	</LinearLayout>
37  
-	<Button android:id="@+id/save"
38  
-		android:layout_width="match_parent"
39  
-		android:layout_height="wrap_content"
40  
-		android:text="Save"
41  
-	/>
  3
+  android:orientation="vertical"
  4
+  android:layout_width="match_parent"
  5
+  android:layout_height="match_parent"
  6
+  >
  7
+  <LinearLayout
  8
+    android:orientation="horizontal"
  9
+    android:layout_width="match_parent"
  10
+    android:layout_height="wrap_content"
  11
+    >
  12
+    <TextView 
  13
+      android:layout_width="wrap_content" 
  14
+      android:layout_height="wrap_content" 
  15
+      android:text="Name:"
  16
+      />
  17
+    <EditText android:id="@+id/name"
  18
+      android:layout_width="match_parent" 
  19
+      android:layout_height="wrap_content" 
  20
+      />
  21
+  </LinearLayout>
  22
+  <LinearLayout
  23
+    android:orientation="horizontal"
  24
+    android:layout_width="match_parent"
  25
+    android:layout_height="wrap_content"
  26
+    >
  27
+    <TextView 
  28
+      android:layout_width="wrap_content" 
  29
+      android:layout_height="wrap_content" 
  30
+      android:text="Address:"
  31
+      />
  32
+    <EditText android:id="@+id/addr"
  33
+      android:layout_width="match_parent" 
  34
+      android:layout_height="wrap_content" 
  35
+      />
  36
+  </LinearLayout>
  37
+  <Button android:id="@+id/save"
  38
+    android:layout_width="match_parent"
  39
+    android:layout_height="wrap_content"
  40
+    android:text="Save"
  41
+  />
42 42
 </LinearLayout>
2  02-SimpleForm/LunchList/res/values/strings.xml 100755 → 100644
... ...
@@ -1,4 +1,4 @@
1 1
 <?xml version="1.0" encoding="utf-8"?>
2 2
 <resources>
3  
-		<string name="app_name">LunchList</string>
  3
+    <string name="app_name">LunchList</string>
4 4
 </resources>
42  02-SimpleForm/LunchList/src/apt/tutorial/LunchList.java 100755 → 100644
@@ -7,25 +7,25 @@
7 7
 import android.widget.EditText;
8 8
 
9 9
 public class LunchList extends Activity {
10  
-	Restaurant r=new Restaurant();
11  
-	
12  
-	@Override
13  
-	public void onCreate(Bundle savedInstanceState) {
14  
-		super.onCreate(savedInstanceState);
15  
-		setContentView(R.layout.main);
16  
-		
17  
-		Button save=(Button)findViewById(R.id.save);
18  
-		
19  
-		save.setOnClickListener(onSave);
20  
-	}
21  
-	
22  
-	private View.OnClickListener onSave=new View.OnClickListener() {
23  
-		public void onClick(View v) {
24  
-			EditText name=(EditText)findViewById(R.id.name);
25  
-			EditText address=(EditText)findViewById(R.id.addr);
26  
-			
27  
-			r.setName(name.getText().toString());
28  
-			r.setAddress(address.getText().toString());
29  
-		}
30  
-	};
  10
+  Restaurant r=new Restaurant();
  11
+  
  12
+  @Override
  13
+  public void onCreate(Bundle savedInstanceState) {
  14
+    super.onCreate(savedInstanceState);
  15
+    setContentView(R.layout.main);
  16
+    
  17
+    Button save=(Button)findViewById(R.id.save);
  18
+    
  19
+    save.setOnClickListener(onSave);
  20
+  }
  21
+  
  22
+  private View.OnClickListener onSave=new View.OnClickListener() {
  23
+    public void onClick(View v) {
  24
+      EditText name=(EditText)findViewById(R.id.name);
  25
+      EditText address=(EditText)findViewById(R.id.addr);
  26
+      
  27
+      r.setName(name.getText().toString());
  28
+      r.setAddress(address.getText().toString());
  29
+    }
  30
+  };
31 31
 }
36  02-SimpleForm/LunchList/src/apt/tutorial/Restaurant.java 100755 → 100644
... ...
@@ -1,22 +1,22 @@
1 1
 package apt.tutorial;
2 2
 
3 3
 public class Restaurant {
4  
-	private String name="";
5  
-	private String address="";
6  
-	
7  
-	public String getName() {
8  
-		return(name);
9  
-	}
10  
-	
11  
-	public void setName(String name) {
12  
-		this.name=name;
13  
-	}
14  
-	
15  
-	public String getAddress() {
16  
-		return(address);
17  
-	}
18  
-	
19  
-	public void setAddress(String address) {
20  
-		this.address=address;
21  
-	}
  4
+  private String name="";
  5
+  private String address="";
  6
+  
  7
+  public String getName() {
  8
+    return(name);
  9
+  }
  10
+  
  11
+  public void setName(String name) {
  12
+    this.name=name;
  13
+  }
  14
+  
  15
+  public String getAddress() {
  16
+    return(address);
  17
+  }
  18
+  
  19
+  public void setAddress(String address) {
  20
+    this.address=address;
  21
+  }
22 22
 }
32  03-FancierForm/LunchList/AndroidManifest.xml 100755 → 100644
... ...
@@ -1,19 +1,19 @@
1 1
 <?xml version="1.0" encoding="utf-8"?>
2 2
 <manifest android:versionCode="1"
3  
-					android:versionName="1.0"
4  
-					package="apt.tutorial"
5  
-					xmlns:android="http://schemas.android.com/apk/res/android">
6  
-					
7  
-	<supports-screens android:largeScreens="true"
8  
-										android:normalScreens="true"
9  
-										android:smallScreens="false" />
10  
-	<application android:label="@string/app_name">
11  
-		<activity android:label="@string/app_name"
12  
-							android:name=".LunchList">
13  
-			<intent-filter>
14  
-				<action android:name="android.intent.action.MAIN" />
15  
-				<category android:name="android.intent.category.LAUNCHER" />
16  
-			</intent-filter>
17  
-		</activity>
18  
-	</application>
  3
+          android:versionName="1.0"
  4
+          package="apt.tutorial"
  5
+          xmlns:android="http://schemas.android.com/apk/res/android">
  6
+          
  7
+  <supports-screens android:largeScreens="true"
  8
+                    android:normalScreens="true"
  9
+                    android:smallScreens="false" />
  10
+  <application android:label="@string/app_name">
  11
+    <activity android:label="@string/app_name"
  12
+              android:name=".LunchList">
  13
+      <intent-filter>
  14
+        <action android:name="android.intent.action.MAIN" />
  15
+        <category android:name="android.intent.category.LAUNCHER" />
  16
+      </intent-filter>
  17
+    </activity>
  18
+  </application>
19 19
 </manifest>
100  03-FancierForm/LunchList/build.xml 100755 → 100644
... ...
@@ -1,67 +1,67 @@
1 1
 <?xml version="1.0" encoding="UTF-8"?>
2 2
 <project name="LunchList" default="help">
3 3
 
4  
-		<!-- The local.properties file is created and updated by the 'android' tool.
5  
-				 It contains the path to the SDK. It should *NOT* be checked in in Version
6  
-				 Control Systems. -->
7  
-		<property file="local.properties" />
  4
+    <!-- The local.properties file is created and updated by the 'android' tool.
  5
+         It contains the path to the SDK. It should *NOT* be checked in in Version
  6
+         Control Systems. -->
  7
+    <property file="local.properties" />
8 8
 
9  
-		<!-- The build.properties file can be created by you and is never touched
10  
-				 by the 'android' tool. This is the place to change some of the default property values
11  
-				 used by the Ant rules.
12  
-				 Here are some properties you may want to change/update:
  9
+    <!-- The build.properties file can be created by you and is never touched
  10
+         by the 'android' tool. This is the place to change some of the default property values
  11
+         used by the Ant rules.
  12
+         Here are some properties you may want to change/update:
13 13
 
14  
-				 application.package
15  
-						 the name of your application package as defined in the manifest. Used by the
16  
-						 'uninstall' rule.
17  
-				 source.dir
18  
-						 the name of the source directory. Default is 'src'.
19  
-				 out.dir
20  
-						 the name of the output directory. Default is 'bin'.
  14
+         application.package
  15
+             the name of your application package as defined in the manifest. Used by the
  16
+             'uninstall' rule.
  17
+         source.dir
  18
+             the name of the source directory. Default is 'src'.
  19
+         out.dir
  20
+             the name of the output directory. Default is 'bin'.
21 21
 
22  
-				 Properties related to the SDK location or the project target should be updated
23  
-					using the 'android' tool with the 'update' action.
  22
+         Properties related to the SDK location or the project target should be updated
  23
+          using the 'android' tool with the 'update' action.
24 24
 
25  
-				 This file is an integral part of the build system for your application and
26  
-				 should be checked in in Version Control Systems.
  25
+         This file is an integral part of the build system for your application and
  26
+         should be checked in in Version Control Systems.
27 27
 
28  
-				 -->
29  
-		<property file="build.properties" />
  28
+         -->
  29
+    <property file="build.properties" />
30 30
 
31  
-		<!-- The default.properties file is created and updated by the 'android' tool, as well
32  
-				 as ADT.
33  
-				 This file is an integral part of the build system for your application and
34  
-				 should be checked in in Version Control Systems. -->
35  
-		<property file="default.properties" />
  31
+    <!-- The default.properties file is created and updated by the 'android' tool, as well
  32
+         as ADT.
  33
+         This file is an integral part of the build system for your application and
  34
+         should be checked in in Version Control Systems. -->
  35
+    <property file="default.properties" />
36 36
 
37  
-		<!-- Custom Android task to deal with the project target, and import the proper rules.
38  
-				 This requires ant 1.6.0 or above. -->
39  
-		<path id="android.antlibs">
40  
-				<pathelement path="${sdk.dir}/tools/lib/anttasks.jar" />
41  
-				<pathelement path="${sdk.dir}/tools/lib/sdklib.jar" />
42  
-				<pathelement path="${sdk.dir}/tools/lib/androidprefs.jar" />
43  
-				<pathelement path="${sdk.dir}/tools/lib/apkbuilder.jar" />
44  
-				<pathelement path="${sdk.dir}/tools/lib/jarutils.jar" />
45  
-		</path>
  37
+    <!-- Custom Android task to deal with the project target, and import the proper rules.
  38
+         This requires ant 1.6.0 or above. -->
  39
+    <path id="android.antlibs">
  40
+        <pathelement path="${sdk.dir}/tools/lib/anttasks.jar" />
  41
+        <pathelement path="${sdk.dir}/tools/lib/sdklib.jar" />
  42
+        <pathelement path="${sdk.dir}/tools/lib/androidprefs.jar" />
  43
+        <pathelement path="${sdk.dir}/tools/lib/apkbuilder.jar" />
  44
+        <pathelement path="${sdk.dir}/tools/lib/jarutils.jar" />
  45
+    </path>
46 46
 
47  
-		<taskdef name="setup"
48  
-				classname="com.android.ant.SetupTask"
49  
-				classpathref="android.antlibs" />
  47
+    <taskdef name="setup"
  48
+        classname="com.android.ant.SetupTask"
  49
+        classpathref="android.antlibs" />
50 50
 
51  
-		<!-- Execute the Android Setup task that will setup some properties specific to the target,
52  
-				 and import the build rules files.
  51
+    <!-- Execute the Android Setup task that will setup some properties specific to the target,
  52
+         and import the build rules files.
53 53
 
54  
-				 The rules file is imported from
55  
-						<SDK>/platforms/<target_platform>/templates/android_rules.xml
  54
+         The rules file is imported from
  55
+            <SDK>/platforms/<target_platform>/templates/android_rules.xml
56 56
 
57  
-				 To customize some build steps for your project:
58  
-				 - copy the content of the main node <project> from android_rules.xml
59  
-				 - paste it in this build.xml below the <setup /> task.
60  
-				 - disable the import by changing the setup task below to <setup import="false" />
  57
+         To customize some build steps for your project:
  58
+         - copy the content of the main node <project> from android_rules.xml
  59
+         - paste it in this build.xml below the <setup /> task.
  60
+         - disable the import by changing the setup task below to <setup import="false" />
61 61
 
62  
-				 This will ensure that the properties are setup correctly but that your customized
63  
-				 build steps are used.
64  
-		-->
65  
-		<setup />
  62
+         This will ensure that the properties are setup correctly but that your customized
  63
+         build steps are used.
  64
+    -->
  65
+    <setup />
66 66
 
67 67
 </project>
66  03-FancierForm/LunchList/res/layout/main.xml 100755 → 100644
... ...
@@ -1,36 +1,36 @@
1 1
 <?xml version="1.0" encoding="utf-8"?>
2 2
 <TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
3  
-	android:layout_width="match_parent"
4  
-	android:layout_height="match_parent"
5  
-	android:stretchColumns="1"
6  
-	android:shrinkColumns="1"
7  
-	>
8  
-	<TableRow>
9  
-		<TextView android:text="Name:" />
10  
-		<EditText android:id="@+id/name" />
11  
-	</TableRow>
12  
-	<TableRow>
13  
-		<TextView android:text="Address:" />
14  
-		<EditText android:id="@+id/addr" />
15  
-	</TableRow>
16  
-	<TableRow>
17  
-		<TextView android:text="Type:" />
18  
-		<RadioGroup android:id="@+id/types">
19  
-			<RadioButton android:id="@+id/take_out"
20  
-				android:text="Take-Out"
21  
-				android:checked="true"
22  
-			/>
23  
-			<RadioButton android:id="@+id/sit_down"
24  
-				android:text="Sit-Down"
25  
-			/>
26  
-			<RadioButton android:id="@+id/delivery"
27  
-				android:text="Delivery"
28  
-			/>
29  
-		</RadioGroup>
30  
-	</TableRow>
31  
-	<Button android:id="@+id/save"
32  
-		android:layout_width="match_parent"
33  
-		android:layout_height="wrap_content"
34  
-		android:text="Save"
35  
-	/>
  3
+  android:layout_width="match_parent"
  4
+  android:layout_height="match_parent"
  5
+  android:stretchColumns="1"
  6
+  android:shrinkColumns="1"
  7
+  >
  8
+  <TableRow>
  9
+    <TextView android:text="Name:" />
  10
+    <EditText android:id="@+id/name" />
  11
+  </TableRow>
  12
+  <TableRow>
  13
+    <TextView android:text="Address:" />
  14
+    <EditText android:id="@+id/addr" />
  15
+  </TableRow>
  16
+  <TableRow>
  17
+    <TextView android:text="Type:" />
  18
+    <RadioGroup android:id="@+id/types">
  19
+      <RadioButton android:id="@+id/take_out"
  20
+        android:text="Take-Out"
  21
+        android:checked="true"
  22
+      />
  23
+      <RadioButton android:id="@+id/sit_down"
  24
+        android:text="Sit-Down"
  25
+      />
  26
+      <RadioButton android:id="@+id/delivery"
  27
+        android:text="Delivery"
  28
+      />
  29
+    </RadioGroup>
  30
+  </TableRow>
  31
+  <Button android:id="@+id/save"
  32
+    android:layout_width="match_parent"
  33
+    android:layout_height="wrap_content"
  34
+    android:text="Save"
  35
+  />
36 36
 </TableLayout>
2  03-FancierForm/LunchList/res/values/strings.xml 100755 → 100644
... ...
@@ -1,4 +1,4 @@
1 1
 <?xml version="1.0" encoding="utf-8"?>
2 2
 <resources>
3  
-		<string name="app_name">LunchList</string>
  3
+    <string name="app_name">LunchList</string>
4 4
 </resources>
74  03-FancierForm/LunchList/src/apt/tutorial/LunchList.java 100755 → 100644
@@ -8,41 +8,41 @@
8 8
 import android.widget.RadioGroup;
9 9
 
10 10
 public class LunchList extends Activity {
11  
-	Restaurant r=new Restaurant();
12  
-	
13  
-	@Override
14  
-	public void onCreate(Bundle savedInstanceState) {
15  
-		super.onCreate(savedInstanceState);
16  
-		setContentView(R.layout.main);
17  
-		
18  
-		Button save=(Button)findViewById(R.id.save);
19  
-		
20  
-		save.setOnClickListener(onSave);
21  
-	}
22  
-	
23  
-	private View.OnClickListener onSave=new View.OnClickListener() {
24  
-		public void onClick(View v) {
25  
-			EditText name=(EditText)findViewById(R.id.name);
26  
-			EditText address=(EditText)findViewById(R.id.addr);
27  
-			
28  
-			r.setName(name.getText().toString());
29  
-			r.setAddress(address.getText().toString());
30  
-			
31  
-			RadioGroup types=(RadioGroup)findViewById(R.id.types);
32  
-			
33  
-			switch (types.getCheckedRadioButtonId()) {
34  
-				case R.id.sit_down:
35  
-					r.setType("sit_down");
36  
-					break;
37  
-					
38  
-				case R.id.take_out:
39  
-					r.setType("take_out");
40  
-					break;
41  
-					
42  
-				case R.id.delivery:
43  
-					r.setType("delivery");
44  
-					break;
45  
-			}
46  
-		}
47  
-	};
  11
+  Restaurant r=new Restaurant();
  12
+  
  13
+  @Override
  14
+  public void onCreate(Bundle savedInstanceState) {
  15
+    super.onCreate(savedInstanceState);
  16
+    setContentView(R.layout.main);
  17
+    
  18
+    Button save=(Button)findViewById(R.id.save);
  19
+    
  20
+    save.setOnClickListener(onSave);
  21
+  }
  22
+  
  23
+  private View.OnClickListener onSave=new View.OnClickListener() {
  24
+    public void onClick(View v) {
  25
+      EditText name=(EditText)findViewById(R.id.name);
  26
+      EditText address=(EditText)findViewById(R.id.addr);
  27
+      
  28
+      r.setName(name.getText().toString());
  29
+      r.setAddress(address.getText().toString());
  30
+      
  31
+      RadioGroup types=(RadioGroup)findViewById(R.id.types);
  32
+      
  33
+      switch (types.getCheckedRadioButtonId()) {
  34
+        case R.id.sit_down:
  35
+          r.setType("sit_down");
  36
+          break;
  37
+          
  38
+        case R.id.take_out:
  39
+          r.setType("take_out");
  40
+          break;
  41
+          
  42
+        case R.id.delivery:
  43
+          r.setType("delivery");
  44
+          break;
  45
+      }
  46
+    }
  47
+  };
48 48
 }
54  03-FancierForm/LunchList/src/apt/tutorial/Restaurant.java 100755 → 100644
... ...
@@ -1,31 +1,31 @@
1 1
 package apt.tutorial;
2 2
 
3 3
 public class Restaurant {
4  
-	private String name="";
5  
-	private String address="";
6  
-	private String type="";
7  
-	
8  
-	public String getName() {
9  
-		return(name);
10  
-	}
11  
-	
12  
-	public void setName(String name) {
13  
-		this.name=name;
14  
-	}
15  
-	
16  
-	public String getAddress() {
17  
-		return(address);
18  
-	}
19  
-	
20  
-	public void setAddress(String address) {
21  
-		this.address=address;
22  
-	}
23  
-	
24  
-	public String getType() {
25  
-		return(type);
26  
-	}
27  
-	
28  
-	public void setType(String type) {
29  
-		this.type=type;
30  
-	}
  4
+  private String name="";
  5
+  private String address="";
  6
+  private String type="";
  7
+  
  8
+  public String getName() {
  9
+    return(name);
  10
+  }
  11
+  
  12
+  public void setName(String name) {
  13
+    this.name=name;
  14
+  }
  15
+  
  16
+  public String getAddress() {
  17
+    return(address);
  18
+  }
  19
+  
  20
+  public void setAddress(String address) {
  21
+    this.address=address;
  22
+  }
  23
+  
  24
+  public String getType() {
  25
+    return(type);
  26
+  }
  27
+  
  28
+  public void setType(String type) {
  29
+    this.type=type;
  30
+  }
31 31
 }
32  04-ListView/LunchList/AndroidManifest.xml 100755 → 100644
... ...
@@ -1,19 +1,19 @@
1 1
 <?xml version="1.0" encoding="utf-8"?>
2 2
 <manifest android:versionCode="1"
3  
-					android:versionName="1.0"
4  
-					package="apt.tutorial"
5  
-					xmlns:android="http://schemas.android.com/apk/res/android">
6  
-					
7  
-	<supports-screens android:largeScreens="true"
8  
-										android:normalScreens="true"
9  
-										android:smallScreens="false" />
10  
-	<application android:label="@string/app_name">
11  
-		<activity android:label="@string/app_name"
12  
-							android:name=".LunchList">
13  
-			<intent-filter>
14  
-				<action android:name="android.intent.action.MAIN" />
15  
-				<category android:name="android.intent.category.LAUNCHER" />
16  
-			</intent-filter>
17  
-		</activity>
18  
-	</application>
  3
+          android:versionName="1.0"
  4
+          package="apt.tutorial"
  5
+          xmlns:android="http://schemas.android.com/apk/res/android">
  6
+          
  7
+  <supports-screens android:largeScreens="true"
  8
+                    android:normalScreens="true"
  9
+                    android:smallScreens="false" />
  10
+  <application android:label="@string/app_name">
  11
+    <activity android:label="@string/app_name"
  12
+              android:name=".LunchList">
  13
+      <intent-filter>
  14
+        <action android:name="android.intent.action.MAIN" />
  15
+        <category android:name="android.intent.category.LAUNCHER" />
  16
+      </intent-filter>
  17
+    </activity>
  18
+  </application>
19 19
 </manifest>
100  04-ListView/LunchList/build.xml 100755 → 100644
... ...
@@ -1,67 +1,67 @@
1 1
 <?xml version="1.0" encoding="UTF-8"?>
2 2
 <project name="LunchList" default="help">
3 3
 
4  
-		<!-- The local.properties file is created and updated by the 'android' tool.
5  
-				 It contains the path to the SDK. It should *NOT* be checked in in Version
6  
-				 Control Systems. -->
7  
-		<property file="local.properties" />
  4
+    <!-- The local.properties file is created and updated by the 'android' tool.
  5
+         It contains the path to the SDK. It should *NOT* be checked in in Version
  6
+         Control Systems. -->
  7
+    <property file="local.properties" />
8 8
 
9  
-		<!-- The build.properties file can be created by you and is never touched
10  
-				 by the 'android' tool. This is the place to change some of the default property values
11  
-				 used by the Ant rules.
12  
-				 Here are some properties you may want to change/update:
  9
+    <!-- The build.properties file can be created by you and is never touched
  10
+         by the 'android' tool. This is the place to change some of the default property values
  11
+         used by the Ant rules.
  12
+         Here are some properties you may want to change/update:
13 13
 
14  
-				 application.package
15  
-						 the name of your application package as defined in the manifest. Used by the
16  
-						 'uninstall' rule.
17  
-				 source.dir
18  
-						 the name of the source directory. Default is 'src'.
19  
-				 out.dir
20  
-						 the name of the output directory. Default is 'bin'.
  14
+         application.package
  15
+             the name of your application package as defined in the manifest. Used by the
  16
+             'uninstall' rule.
  17
+         source.dir
  18
+             the name of the source directory. Default is 'src'.
  19
+         out.dir
  20
+             the name of the output directory. Default is 'bin'.
21 21
 
22  
-				 Properties related to the SDK location or the project target should be updated
23  
-					using the 'android' tool with the 'update' action.
  22
+         Properties related to the SDK location or the project target should be updated
  23
+          using the 'android' tool with the 'update' action.
24 24
 
25  
-				 This file is an integral part of the build system for your application and
26  
-				 should be checked in in Version Control Systems.
  25
+         This file is an integral part of the build system for your application and
  26
+         should be checked in in Version Control Systems.
27 27
 
28  
-				 -->
29  
-		<property file="build.properties" />
  28
+         -->
  29
+    <property file="build.properties" />
30 30
 
31  
-		<!-- The default.properties file is created and updated by the 'android' tool, as well
32  
-				 as ADT.
33  
-				 This file is an integral part of the build system for your application and
34  
-				 should be checked in in Version Control Systems. -->
35  
-		<property file="default.properties" />
  31
+    <!-- The default.properties file is created and updated by the 'android' tool, as well
  32
+         as ADT.
  33
+         This file is an integral part of the build system for your application and
  34
+         should be checked in in Version Control Systems. -->
  35
+    <property file="default.properties" />
36 36
 
37  
-		<!-- Custom Android task to deal with the project target, and import the proper rules.
38  
-				 This requires ant 1.6.0 or above. -->
39  
-		<path id="android.antlibs">
40  
-				<pathelement path="${sdk.dir}/tools/lib/anttasks.jar" />
41  
-				<pathelement path="${sdk.dir}/tools/lib/sdklib.jar" />
42  
-				<pathelement path="${sdk.dir}/tools/lib/androidprefs.jar" />
43  
-				<pathelement path="${sdk.dir}/tools/lib/apkbuilder.jar" />
44  
-				<pathelement path="${sdk.dir}/tools/lib/jarutils.jar" />
45  
-		</path>
  37
+    <!-- Custom Android task to deal with the project target, and import the proper rules.
  38
+         This requires ant 1.6.0 or above. -->
  39
+    <path id="android.antlibs">
  40
+        <pathelement path="${sdk.dir}/tools/lib/anttasks.jar" />
  41
+        <pathelement path="${sdk.dir}/tools/lib/sdklib.jar" />
  42
+        <pathelement path="${sdk.dir}/tools/lib/androidprefs.jar" />
  43
+        <pathelement path="${sdk.dir}/tools/lib/apkbuilder.jar" />
  44
+        <pathelement path="${sdk.dir}/tools/lib/jarutils.jar" />
  45
+    </path>
46 46
 
47  
-		<taskdef name="setup"
48  
-				classname="com.android.ant.SetupTask"
49  
-				classpathref="android.antlibs" />
  47
+    <taskdef name="setup"
  48
+        classname="com.android.ant.SetupTask"
  49
+        classpathref="android.antlibs" />
50 50
 
51  
-		<!-- Execute the Android Setup task that will setup some properties specific to the target,
52  
-				 and import the build rules files.
  51
+    <!-- Execute the Android Setup task that will setup some properties specific to the target,
  52
+         and import the build rules files.
53 53
 
54  
-				 The rules file is imported from
55  
-						<SDK>/platforms/<target_platform>/templates/android_rules.xml
  54
+         The rules file is imported from
  55
+            <SDK>/platforms/<target_platform>/templates/android_rules.xml
56 56
 
57  
-				 To customize some build steps for your project:
58  
-				 - copy the content of the main node <project> from android_rules.xml
59  
-				 - paste it in this build.xml below the <setup /> task.
60  
-				 - disable the import by changing the setup task below to <setup import="false" />
  57
+         To customize some build steps for your project:
  58
+         - copy the content of the main node <project> from android_rules.xml
  59
+         - paste it in this build.xml below the <setup /> task.
  60
+         - disable the import by changing the setup task below to <setup import="false" />
61 61
 
62  
-				 This will ensure that the properties are setup correctly but that your customized
63  
-				 build steps are used.
64  
-		-->
65  
-		<setup />
  62
+         This will ensure that the properties are setup correctly but that your customized
  63
+         build steps are used.
  64
+    -->
  65
+    <setup />
66 66
 
67 67
 </project>
90  04-ListView/LunchList/res/layout/main.xml 100755 → 100644
... ...
@@ -1,48 +1,48 @@
1 1
 <?xml version="1.0" encoding="utf-8"?>
2 2
 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3  
-	android:layout_width="match_parent"
4  
-	android:layout_height="match_parent"
5  
-	>							
6  
-	<TableLayout android:id="@+id/details"
7  
-		android:layout_width="match_parent"
8  
-		android:layout_height="wrap_content"
9  
-		android:layout_alignParentBottom="true"
10  
-		android:stretchColumns="1"
11  
-		android:shrinkColumns="1"
12  
-		>
13  
-		<TableRow>
14  
-			<TextView android:text="Name:" />
15  
-			<EditText android:id="@+id/name" />
16  
-		</TableRow>
17  
-		<TableRow>
18  
-			<TextView android:text="Address:" />
19  
-			<EditText android:id="@+id/addr" />
20  
-		</TableRow>
21  
-		<TableRow>
22  
-			<TextView android:text="Type:" />
23  
-			<RadioGroup android:id="@+id/types">
24  
-				<RadioButton android:id="@+id/take_out"
25  
-					android:text="Take-Out"
26  
-					android:checked="true"
27  
-			/>
28  
-				<RadioButton android:id="@+id/sit_down"
29  
-					android:text="Sit-Down"
30  
-				/>
31  
-				<RadioButton android:id="@+id/delivery"
32  
-					android:text="Delivery"
33  
-				/>
34  
-			</RadioGroup>
35  
-		</TableRow>
36  
-		<Button android:id="@+id/save"
37  
-			android:layout_width="match_parent"
38  
-			android:layout_height="wrap_content"
39  
-			android:text="Save"
40  
-		/>
41  
-	</TableLayout>
42  
-	<ListView android:id="@+id/restaurants"
43  
-		android:layout_width="match_parent"
44  
-		android:layout_height="wrap_content"
45  
-		android:layout_alignParentTop="true"
46  
-		android:layout_above="@id/details"
47  
-	/>
  3
+  android:layout_width="match_parent"
  4
+  android:layout_height="match_parent"
  5
+  >             
  6
+  <TableLayout android:id="@+id/details"
  7
+    android:layout_width="match_parent"
  8
+    android:layout_height="wrap_content"
  9
+    android:layout_alignParentBottom="true"
  10
+    android:stretchColumns="1"
  11
+    android:shrinkColumns="1"
  12
+    >
  13
+    <TableRow>
  14
+      <TextView android:text="Name:" />
  15
+      <EditText android:id="@+id/name" />
  16
+    </TableRow>
  17
+    <TableRow>
  18
+      <TextView android:text="Address:" />
  19
+      <EditText android:id="@+id/addr" />
  20
+    </TableRow>
  21
+    <TableRow>
  22
+      <TextView android:text="Type:" />
  23
+      <RadioGroup android:id="@+id/types">
  24
+        <RadioButton android:id="@+id/take_out"
  25
+          android:text="Take-Out"
  26
+          android:checked="true"
  27
+      />
  28
+        <RadioButton android:id="@+id/sit_down"