Guest User

Untitled

a guest
Mar 24th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. private ArrayList<Place> nearbyPlaces;
  2.  
  3. button_list.setOnClickListener(new View.OnClickListener() {
  4. @Override
  5. public void onClick(View view) {
  6. if(nearbyPlaces.size() > 0){
  7. Intent intent = new Intent(MainActivity.this, PlaceList.class);
  8. intent.putExtra("nearbyPlaces", nearbyPlaces);
  9. startActivity(intent);
  10. }
  11. else{
  12. debugMessage("No establishment to show");
  13. }
  14. }
  15. });
Add Comment
Please, Sign In to add comment