@Override
  public View getView(final int position, View convertView, ViewGroup parent) {
    final Context ctx = getContext();

    TextView textView = new TextView(parent.getContext());
    JobParameters job = getItem(position).job;
    List<Uri> uris =
        job.getTriggerReason() != null
            ? job.getTriggerReason().getTriggeredContentUris()
            : Collections.<Uri>emptyList();
    textView.setText(String.format(Locale.US, CELL_FORMAT, job.getTag(), job.getService(), uris));

    textView.setOnClickListener(
        new View.OnClickListener() {
          @Override
          public void onClick(View v) {
            Intent i = new Intent(ctx, JobDetailActivity.class);
            i.putExtra("pos", position);
            ctx.startActivity(i);
          }
        });

    return textView;
  }
An adapter between a JobStore and the list view that displays its contents.
testapp/src/main/java/com/firebase/jobdispatcher/testapp/JobStoreAdapter.java