Copy the Java code files, which provide the functionality and layout
of the user interface, from the SUP_Android_Custom_Dev_Tutorial_code.zip
archive to the SUP101Sample application.
- In Windows Explorer, browse to the directory where you saved the
SUP_Android_Custom_Dev_Tutorial_code.zip file.
- Copy these Java files: CustomerListAdapter.java,
DetailActivity.java, and
SUP101SampleActivity.java.
- In Package Explorer, go to SUP101Sample\src\com.sybase.sup.samples.objectapi, then paste the
copied Java files, copying over any existing files.
- If you installed Unwired Server on a remote system, that is, not on
the local system running Sybase Unwired Platform, you must modify the HOST IP address
in the SUP101SampleActivity.java file to point
to the server.
- In Package Explorer, expand the SUP101Sample
project.
- Under the \src\com.sybase.sup.samples.objectapi folder,
double-click the SUP101SampleActivity.java file.
- Modify the HOST IP address, and
Save.
- 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 SUP101Sample project folder, go to
the res\layout directory and paste the copied
XML files, copying over any existing files.