Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 2nd, 2012  |  syntax: None  |  size: 0.48 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. List view row pressed
  2. Intent i = new Intent(this, Item_Activity.class);
  3.        
  4. lv.setOnItemClickListener(new AdapterView.OnItemClickListener() {
  5.          public void onItemClick(AdapterView<?> arg0, View arg1, int position, long arg3) {
  6.              Intent i = new Intent(this, Item_Activity.class);
  7.              Item item = m_items.get(position);
  8.              i.putExtra("object", item);
  9.              startActivity(i);
  10.          }
  11.  
  12.     });
  13.        
  14. Intent i = new Intent(this, Item_Activity.class);