Creating the User Interface

Copy sample files from the ZIP archive to the SUP101Sample application. The files provide the functionality and layout of the user interface.

Prerequisites
Locate the files you extracted from the SUP_Android_Custom_Dev_Tutorial_code.zip file. You will use the text files, which contain code snippets, to build the user interface. You copy and paste the code snippets to create these classes: CustomerListAdapter, DetailActivity, and SUP101SampleActivity.
Task
  1. In Windows Explorer, browse to the directory where you saved the ZIP file.
  2. Copy these Java files: CustomerListAdapter.java, DetailActivity.java, and SUP101SampleActivity.java.
  3. In Package Explorer, go to SUP101Sample\src\com.sybase.sup.samples.objectapi. Paste the copied Java files. Copy over any existing files.
  4. If you installed the Sybase Unwired Platform 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.
    1. In Package Explorer, expand the SUP101Sample project.
    2. Under the \src\com.sybase.sup.samples.objectapi folder, double-click the SUP101SampleActivity.java file.
    3. Modify the HOST IP address, and Save.
  5. Browse to the directory where you saved the ZIP file.
  6. Copy the sample layout XML files: customer.xml, detail.xml, and main.xml.
  7. In the SUP101Sample project folder, go to the res\layout directory and paste the copied XML files. Copy over any existing files.

    Android Tutorial Expanded Sample Project File Image