Listing 1214 managejobsxml

<?xml version="1.0" encoding="utf-8 " ?>

<LinearLayout xmlns:android="" android:id="@+id/joblistview" android:orientation="vertical" android:layout_width="fill_parent"

Figure 12.9 MangeJobs Activity lists downloaded jobs.


android:scrollbars="vertical" >

<TextView android:id="@+id/statuslabel" android:text="list jobs here " android:layout_height="wrap_content" android:layout_width="fill_parent" />

<ListView android:id="@+id/j oblist" android:layout_height="fill_parent" android:layout_width="fill_parent" />


The code in listing 12.15 for the ManageJobs Activity connects a JobList to the GUI as well as reacts to the selection of a particularjob from the ListView. In addition, this class demonstrates taking the result from another, synchronously invoked Activity and processing it according to its specific requirement. For example, when a job is completed and closed, that JobEntry is updated to reflect its new status.

Was this article helpful?

0 0

Post a comment