You are using the same class
Intent intentTrashcanLocation = new Intent(TrashcanLocationActivity.this,
TrashcanLocationActivity.class);
startActivity(intentTrashcanLocation);
should be something along the lines
Intent intentTrashcanLocation = new Intent(TrashcanLocationActivity.this,
TrashcandetailActivity.class);
startActivity(intentTrashcanLocation);