Creating the User Interface

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.

  1. In Windows Explorer, browse to the directory where you saved the SUP_Android_Custom_Dev_Tutorial_code.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, then paste the copied Java files, copying over any existing files.
  4. 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.
    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. From the zip file, 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, copying over any existing files.

    Android Tutorial Expanded Sample Project File Image