This repository has been archived by the owner on Jan 17, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 75
/
fragment.java
235 lines (198 loc) · 15.3 KB
/
fragment.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
<!DOCTYPE html>
<html>
<head>
<!--
Copyright notice:
This file and all linked documents are, unless otherwise specified, authored by Marty Stepp and/or Stanford University, and may not be copied, redistributed, or modified without explicit permission of the course instructor.
-->
<title>CS 193A: Android Application Development</title>
<meta charset="utf-8" />
<meta name="author" content="Marty Stepp" />
<meta name="description" content="Course web site for CS 193A, a course on Android app development." />
<meta name="keywords" content="Marty Stepp, CS 193A, Stanford University, computer science, Android, Java, app" />
<meta name="HandheldFriendly" content="true" />
<meta name="viewport" content="width=device-width, height=device-height, user-scalable=no" />
<meta id="WEEK1_SUN" name="WEEK1_SUN" content="Jan 4 2015 12:00 AM" />
<!-- stop the web browser from ever caching this page or its images -->
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<link href="style.css" tppabs="http://web.stanford.edu/class/cs193a/style.css" type="text/css" rel="stylesheet" />
<link href="images/stanford-favicon.png" type="image/png" rel="shortcut icon" />
<link href="images/stanford-favicon.png" type="image/png" rel="icon" />
<script src="../../../ajax.googleapis.com/ajax/libs/prototype/1.7.0.0/prototype.js" tppabs="http://ajax.googleapis.com/ajax/libs/prototype/1.7.0.0/prototype.js" type="text/javascript"></script>
<script src="../../../ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/scriptaculous.js" tppabs="http://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/scriptaculous.js" type="text/javascript"></script>
<script src="sorttable.js" tppabs="http://web.stanford.edu/class/cs193a/sorttable.js" type="text/javascript"></script>
<script src="cs.js" tppabs="http://web.stanford.edu/class/cs193a/cs.js" type="text/javascript"></script>
</head>
<body>
<div id="container">
<div id="header" class="contentsection">
<div class="titles">
<div class="logo">
<a href="javascript:if(confirm(%27http://www.cs.stanford.edu/ \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?%27))window.location=%27http://www.cs.stanford.edu/%27" tppabs="http://www.cs.stanford.edu/"><img src="images/stanford-cs-logo.png.jpg" tppabs="http://web.stanford.edu/class/cs193a/images/stanford-cs-logo.png" alt="Stanford CS logo" /></a>
</div>
<h1>
CS 193A: Android App Development <br />
Winter 2015
</h1>
</div>
</div>
<hr class="stanfordhr1" />
<hr class="stanfordhr2" />
<div id="sidebar">
<ul>
<li><a href="index.shtml.htm" tppabs="http://web.stanford.edu/class/cs193a/index.shtml"><img src="images/home_icon.png" tppabs="http://web.stanford.edu/class/cs193a/images/home_icon.png" class="sidebaricon" alt="main" /> Home</a></li>
<li><a href="handouts/course-information.pdf" tppabs="http://web.stanford.edu/class/cs193a/handouts/course-information.pdf"><img src="images/syllabus_icon.png" tppabs="http://web.stanford.edu/class/cs193a/images/syllabus_icon.png" class="icon" alt="icon" /> Course Info</a></li>
<li><a href="lectures.shtml.htm" tppabs="http://web.stanford.edu/class/cs193a/lectures.shtml"><img src="images/lectures_icon.png" tppabs="http://web.stanford.edu/class/cs193a/images/lectures_icon.png" class="sidebaricon" alt="lectures" /> Lectures</a></li>
<li><a href="homework.shtml.htm" tppabs="http://web.stanford.edu/class/cs193a/homework.shtml"><img src="images/homework_icon.png" tppabs="http://web.stanford.edu/class/cs193a/images/homework_icon.png" class="sidebaricon" alt="homework" /> Homework</a></li>
<li><a class="popup" href="javascript:if(confirm(%27https://piazza.com/class/i43gbjj4o0w6as \n\nThis file was not retrieved by Teleport Pro, because it is addressed using an unsupported protocol (e.g., gopher). \n\nDo you want to open it from the server?%27))window.location=%27https://piazza.com/class/i43gbjj4o0w6as%27" tppabs="https://piazza.com/class/i43gbjj4o0w6as"><img src="images/piazza-icon.png" tppabs="http://web.stanford.edu/class/cs193a/images/piazza-icon.png" class="sidebaricon" alt="message board" /> Piazza</a></li>
<li><a href="working-at-home.shtml.htm" tppabs="http://web.stanford.edu/class/cs193a/working-at-home.shtml"><img src="images/working_at_home_icon.png" tppabs="http://web.stanford.edu/class/cs193a/images/working_at_home_icon.png" class="sidebaricon" alt="working at home" /> Work@Home</a></li>
<li><a href="videos.shtml.htm" tppabs="http://web.stanford.edu/class/cs193a/videos.shtml"><img src="images/icon_yt.png" tppabs="http://web.stanford.edu/class/cs193a/images/icon_yt.png" class="sidebaricon" alt="icon" /> Videos</a></li>
<li><a href="links.shtml.htm" tppabs="http://web.stanford.edu/class/cs193a/links.shtml"><img src="images/links_icon.png" tppabs="http://web.stanford.edu/class/cs193a/images/links_icon.png" class="sidebaricon" alt="links" /> Links</a></li>
<li><a class="popup" href="javascript:if(confirm(%27https://developer.android.com/reference/ \n\nThis file was not retrieved by Teleport Pro, because it is addressed using an unsupported protocol (e.g., gopher). \n\nDo you want to open it from the server?%27))window.location=%27https://developer.android.com/reference/%27" tppabs="https://developer.android.com/reference/"><img src="images/icon_android.gif" tppabs="http://web.stanford.edu/class/cs193a/images/icon_android.gif" class="sidebaricon" alt="api" /> API</a></li>
</ul>
<!--
<li><a class="popup" href="http://stanford.edu/~stepp/cppdoc/"><img src="images/stanford-favicon.png" class="icon" alt="icon" /> <strong>Stanford C++ Lib</strong></a></li>
<li><a class="popup" href="http://www.cppreference.com/"><img src="images/icon_cppreference.gif" class="icon" alt="icon" /> CppReference.com</a></li>
<li><a class="popup" href="http://www.cplusplus.com/reference/"><img src="images/icon_cplusplus.gif" class="icon" alt="icon" /> CPlusPlus.com</a></li>
<li><a href="styleguide.shtml"><img src="images/gradeit_icon.gif" class="icon" alt="icon" /> 193A Style Guide</a></li>
-->
</div>
</div>
<noscript>
<div class="error">
<p>
ERROR: This site requires JavaScript in order to function properly.
You seem to be using a web browser that does not support JavaScript, or you may have a JavaScript blocker such as NoScript installed in your browser.
In order to use this course web site, you must enable JavaScript in your browser for this site.
</p>
</div>
</noscript>
<div class="centerpane">
<!--
<div class="excitingnews" style="text-align: center">
<strong>Lecture canceled</strong>:
Our CS 193A lecture is canceled for Tue Feb 3 due to instructor illness.
Marty's office hours for that day are also canceled.
Sorry for the inconvenience.
See the <a href="lectures.shtml">Lectures page</a> later today for a slide deck that you can browse on your own time.
</div>
<div class="excitingnews" style="text-align: center">
<strong>Final Exam Reminder</strong>:
Our midterm is on <strong>Wed Dec 10</strong> at 12:15pm - 3:15pm in <span class="building">Dinkelspiel Auditorium</span>.
</div>
<div class="excitingnews" style="text-align: center">
<strong>The class is full</strong>.
There is already a long waiting list (over 100 students).
If you aren't already enrolled in the course, <strong>you will not be able to get in.</strong>
Please do not email asking about enrolling or getting on the wait list.
The room has only 52 chairs and we have 50 officially enrolled students, so there will not be any space for people to "sit in" on the lectures.
Thank you for understanding.
</div>
-->
<p>
This course provides an introduction to developing applications for the Android mobile platform.
Prerequisite: CS 106B or equivalent.
Lectures take place in <span class="building">Art4</span> (Cummings Art Building 03-010).
</p>
<table id="instructor" class="stafftable color_alternating_rows">
<thead>
<tr>
<th> </th>
<th>pic</th>
<th>name</th>
<th>email</th>
<th>phone</th>
<th>office</th>
<th>hours</th>
</tr>
</thead>
<tbody>
<tr>
<th>Instructor:</th>
<td><img src="images/marty-stepp.jpg" tppabs="http://web.stanford.edu/class/cs193a/images/marty-stepp.jpg" alt="staff icon" class="stafficon" /></td>
<td><a href="javascript:if(confirm(%27http://martystepp.com/ \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?%27))window.location=%27http://martystepp.com/%27" tppabs="http://martystepp.com/">Marty Stepp</a></td>
<td>
<span class="ema">stepp</span>
<p>
<a class="popup" href="javascript:if(confirm(%27http://www.facebook.com/stepp \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?%27))window.location=%27http://www.facebook.com/stepp%27" tppabs="http://www.facebook.com/stepp">
<img src="images/fceb_icon.png" tppabs="http://web.stanford.edu/class/cs193a/images/fceb_icon.png" alt="icon" class="icon" /></a>
<a class="popup" href="javascript:if(confirm(%27http://instagram.com/martystepp \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?%27))window.location=%27http://instagram.com/martystepp%27" tppabs="http://instagram.com/martystepp">
<img src="images/ig.png" tppabs="http://web.stanford.edu/class/cs193a/images/ig.png" alt="icon" class="icon" /></a>
<a class="popup" href="javascript:if(confirm(%27http://twitter.com/martystepp \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?%27))window.location=%27http://twitter.com/martystepp%27" tppabs="http://twitter.com/martystepp">
<img src="images/ttr_icon.gif" tppabs="http://web.stanford.edu/class/cs193a/images/ttr_icon.gif" alt="icon" class="icon" /></a>
<a class="popup" href="javascript:if(confirm(%27http://www.justyo.co/martystepp \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?%27))window.location=%27http://www.justyo.co/martystepp%27" tppabs="http://www.justyo.co/martystepp">
<img src="images/yo.png" tppabs="http://web.stanford.edu/class/cs193a/images/yo.png" alt="icon" class="icon" /></a>
</p>
</td>
<td>(650) 723-6602</td>
<td>
<strong><span class="building">Gates 195</span></strong>
</td>
<td>
Tue noon - 2pm; <br />
or by appointment
</td>
</tr>
</tbody>
</table>
<ul>
<li><a class="popup" href="javascript:if(confirm(%27http://sayat.me/martystepp \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?%27))window.location=%27http://sayat.me/martystepp%27" tppabs="http://sayat.me/martystepp">Send anonymous feedback to Marty</a> (I won't be able to reply, though)</li>
</ul>
<div id="announcementsarea">
<h3>Announcements</h3>
<ul class="announcements">
<li>[03/03]
If you had trouble setting up the Android emulator or want to try a faster one, check out <a href="javascript:if(confirm(%27https://www.genymotion.com/ \n\nThis file was not retrieved by Teleport Pro, because it is addressed using an unsupported protocol (e.g., gopher). \n\nDo you want to open it from the server?%27))window.location=%27https://www.genymotion.com/%27" tppabs="https://www.genymotion.com/">Genymotion</a>.
</li>
<li>[02/26]
<a href="homework.shtml.htm" tppabs="http://web.stanford.edu/class/cs193a/homework.shtml">Homework 5</a> (2D Graphics; Swiping; Maps) spec has now been posted.
</li>
<li>[02/12]
<a href="homework.shtml.htm" tppabs="http://web.stanford.edu/class/cs193a/homework.shtml">Homework 4</a> (Lists; Text-to-speech; Fragments) spec has now been posted.
</li>
<li>[01/28]
<a href="homework.shtml.htm" tppabs="http://web.stanford.edu/class/cs193a/homework.shtml">Homework 3</a> (Multiple Activities; State; Data Files) spec has now been posted.
</li>
<li>[01/24]
<a href="javascript:if(confirm(%27http://web.stanford.edu/class/cs193a/peer-evaluation.shtml \n\nThis file was not retrieved by Teleport Pro, because it is linked too far away from its Starting Address. If you increase the in-domain depth setting for the Starting Address, this file will be queued for retrieval. \n\nDo you want to open it from the server?%27))window.location=%27http://web.stanford.edu/class/cs193a/peer-evaluation.shtml%27" tppabs="http://web.stanford.edu/class/cs193a/peer-evaluation.shtml">Peer Evaluation instructions</a> for grading other students' homework have now been posted.
Each student is expected to complete their evaluations for HW1 and HW2 by <strong>Sun 2/1 at 11:59pm</strong>.
</li>
<li>[01/15]
<a href="homework.shtml.htm" tppabs="http://web.stanford.edu/class/cs193a/homework.shtml">Homework 2</a> (Layout) spec has now been posted.
</li>
<li>[01/13]
Instructions for how to turn in assignments are now posted in the <a href="homework.shtml.htm" tppabs="http://web.stanford.edu/class/cs193a/homework.shtml">Homework page</a>.
</li>
<li>[01/13]
Instructions for how to <a href="javascript:if(confirm(%27http://web.stanford.edu/class/cs193a/deploy-to-phone.shtml \n\nThis file was not retrieved by Teleport Pro, because it is linked too far away from its Starting Address. If you increase the in-domain depth setting for the Starting Address, this file will be queued for retrieval. \n\nDo you want to open it from the server?%27))window.location=%27http://web.stanford.edu/class/cs193a/deploy-to-phone.shtml%27" tppabs="http://web.stanford.edu/class/cs193a/deploy-to-phone.shtml">deploy an Android App to your phone</a> have now been posted.
</li>
<li>[01/07]
<a href="homework.shtml.htm" tppabs="http://web.stanford.edu/class/cs193a/homework.shtml">Homework 1</a> (First Android App) spec has now been posted.
</li>
<li>[12/24]
Course web site created.
</li>
</ul>
</div>
<div id="w3c">
<div class="copyrightnotice">
This document and its content are copyright © Marty Stepp, 2015.
All rights reserved.
Any redistribution, reproduction, transmission, or storage of part or all of the contents in any form is prohibited without the authors' expressed written permission.
</div>
</div>
</div>
</div>
<script>
// Google Analytics
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','../../../www.google-analytics.com/analytics.js'/*tpa=http://www.google-analytics.com/analytics.js*/,'ga');
ga('create', 'UA-2729135-9', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>