Copy the Java code files, which provide the functionality and layout
of the user interface, from the
SUP101 Android Project
example project
archive
to the
SUP101Android
project.
- In Windows Explorer, browse to the directory where you saved the
SUP101 Android
Project example
project.
- Copy these Java files: CustomerListAdapter.java,
DetailActivity.java, and
SUP101SampleActivity.java.
- In
Workspace Navigator, go to SUP101Android and expand
\src\com\mycorp\sup101\android\app, then paste the copied
Java files, copying over any existing files.
- Modify
the
host
IP address in the SUP101SampleActivity.java
file to point to the
Unwired Server.
- In
Workspace Navigator, expand the SUP101Android
project.
- Under the
\src\com\mycorp\sup101\android\app folder, double-click
the SUP101SampleActivity.java
file.
- Modify the
host
IP
address,
and verify the username and password are
valid.
- Browse to the directory where you saved the ZIP file.
- From the
ZIP
file, copy the sample layout XML files: customer.xml, detail.xml, and
main.xml.
- In the
SUP101Android project folder, go to the
res\layout directory and paste the copied XML files, copying
over any existing files.
The
SUP101Android project directory should look like this:
