HW1 - UCSB SoC Design and Test Lab

wellofflimpetΚινητά – Ασύρματες Τεχνολογίες

14 Δεκ 2013 (πριν από 3 χρόνια και 6 μήνες)

66 εμφανίσεις

Assignment 1

(
Due Wednesday,
Jan. 12 at 10:45
am
)

(1)

Reading assignment:

http://developer.android.com/guide/topics/fundamentals.html

Install Android SDK
:

Follow the instructions in
http://developer.android.com/resources/tutorials/hello
-
world.html

to install Android SDK
and complete the “hello
-
world” tutorial.


(2)
(40%)

Write
an
application
to
display
your nam
e and photo
. Run
this
application
either
on

the

emulator or
an Android
device
.




Hint
: study the ApiDemo in android sdk. Particularly,
read
the

file


{your_
SDK_install_dir
}/samples/android
8/ApiDemos/res/layout/image_view_1.xml


to
learn how to use

TextV
ie
w and ImageView
.

(3
)
(60%)

Application framework: Intent
.

Extend the application of
part

(
2
)

to two activities,
and then use
Intent

to communicate between these two activities.

Add a button

change picture

in your layout.

When

this button

is pressed
,
it a
ctivates

the
second activity. In the second activity, allow
the
user
to
choose
a
picture

from a set of picture
s
.

W
hen
the
user press
es

the button “pick”

in this second activity
,
it
return
s

the chosen picture to
the first activity

which in turn

display
s the

returned picture
.






Hint: use a layout widget “Gallery” to browse photos. Here is an example:
http://developer.android.com/
resources/tutorials/views/hello
-
gallery.html
.


(3)
(
10
%) Extra credit
. Create a short video (~
30
-
45

seconds) demonstrating the apps you
created. An exemplar video of one of last year’s assignments

is available on:
http://www.youtube.com/watch?v=hhHWfKiHf
WQ

(
However,
I expect the video quality
of your
demo

be better than this one
).


Instruction for homework submission

Create a folder for each of
part (2) and part (3). Name the folders as hw1
-
2 and
hw
1
-
3
respectively. Each
of part
-
(2) and part
-
(3)

should be

implemented as one application. Write one
README file that includes your name and brief description of your designs.
If you create a video
demo, include the link in your README file or attach the video file with your submission.
Create
a tar ball (.rar or

.zip) of all folders and the README file, Name the tarball with the prefix of
YourLastName_PermNumber
_HW1
. All the project files (i.e. source codes and resource files)
should be included in the tar ball.


Use Dropbox to submit this single file. Basically

drop this
tarball

into the Public folder of your
Dropbox. Then right
-
click/control
-
click this file, then choose Dropbox > Copy Public Lin
k which copies the
Internet link of the file. Then
.
send an
email
to
the TA at
yichuwang@umail.ucsb.edu

with subject
line “HW1

Submission
” and include the dropbox link

in the body of your email.