Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private ArrayList<Place> nearbyPlaces;
- button_list.setOnClickListener(new View.OnClickListener() {
- @Override
- public void onClick(View view) {
- if(nearbyPlaces.size() > 0){
- Intent intent = new Intent(MainActivity.this, PlaceList.class);
- intent.putExtra("nearbyPlaces", nearbyPlaces);
- startActivity(intent);
- }
- else{
- debugMessage("No establishment to show");
- }
- }
- });
Add Comment
Please, Sign In to add comment