package com.example.fcmam5.out_n_dor;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

    }

    public void rsel(View view) {
        Intent intent = new Intent(MainActivity.this, ListPlaces.class);
        startActivity(intent);
    }
}

@@ -218,16 +218,279 @@
 tivity %7B
+%0A     Button boutonSport= (Button)findViewById(R.id.buttonSport);%0A    Button boutonPark= (Button)findViewById(R.id.buttonPark);%0A    Button boutonLibrary= (Button)findViewById(R.id.buttonLibrary);%0A    Button boutonTourism= (Button)findViewById(R.id.buttonTourism);
 %0A%0A    @O
@@ -674,12 +674,21 @@
 oid 
-rsel
+clickFunction
 (Vie
@@ -770,16 +770,16 @@
 class);%0A
-
         
@@ -797,20 +797,677 @@
 ty(intent);%0A
+         switch(view.getId())%7B%0A            case R.id.buttonSport:%0A                intent.putExtra(%22sport%22,boutonSport.getText().toString().toLowerCase());%0A                break;%0A            case R.id.buttonLibrary:%0A                intent.putExtra(%22library%22,boutonLibrary.getText().toString().toLowerCase());%0A                break;%0A%0A            case R.id.buttonPark:%0A                intent.putExtra(%22park%22,boutonPark.getText().toString().toLowerCase());%0A                break;%0A            case R.id.buttonTourism:%0A                intent.putExtra(%22tourism%22,boutonTourism.getText().toString().toLowerCase());%0A                break;%0A        %7D%0A        %0A        %0A
     %7D%0A%7D%0A

Update clickFunction