Click events on List on List

Connect ListView to UI

Use a built-in list layout public void onItemClick (AdapterView parent, View v, int position, long id) { <-

JobEntry je = _j oblist. get Job (position) ; <1-

Log.i("CH12", "job clicked! [" + je.get_jobid() + "]");

Intent jobintent = new Intent (this, ShowJob.class) ; <1-

Bundle b = j e . toBundle () ; Q Use a Bundle to j obintent .putExtras (b) ; y store Job data startActivityForResult(jobintent, SHOWJOB); <—. } | Prepare Intent for

0 0

Post a comment