Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2014
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. public void onListItemClick(ListView parent, View v, int position, long id) {
  2. Toast.makeText(this, "You have selected " + exhibits.get(position), Toast.LENGTH_SHORT).show();
  3. //Intent i = new Intent(this, ExhibitOpen.class);
  4. Intent i = new Intent(this, edu.foothill.junk.ExhibitOpen.class);
  5. Log.d("DUDUDUDU", exhibits.get(position).getName());
  6.  
  7. Bundle bundle = new Bundle();
  8. bundle.putSerializable("MyClass", (Serializable) exhibits.get(position));
  9. i.putExtras(bundle);
  10. startActivity(i);
  11. }
  12.  
  13. Intent i = getIntent();
  14. dene = (Exhibit)i.getSerializableExtra("MyClass");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement