Creating the User Interface

Copy sample files to create the user interface for the SUP101Sample application.

Prerequisites
Obtain the text files that contain the code snippets you need to build the user interface from the SUP_Android_Custom_Dev_Tutorial_code.zip file. The code snippets are used 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, paste the copied Java files into the src\com.sybase.sup.samples.objectapi directory in the SUP101Sample project folder. Choose to copy over any existing files.
  4. If you installed the Sybase Unwired Platform server on a system other than the localhost, you need to 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. Paste the copied XML files into the res\layout directory in the SUP101Sample project folder. Choose to copy over any existing files.

    Android Tutorial Expanded Sample Project File Image