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);
    }
}

@@ -220,16 +220,278 @@
 vity %7B%0A%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
     @Ove
@@ -642,12 +642,18 @@
 ity_
-main
+principale
 );%0A%0A
@@ -668,23 +668,35 @@
    p
-ublic void rsel
+rotected void clickFunction
 (Vie
@@ -702,17 +702,16 @@
 ew view)
- 
 %7B%0A      
@@ -725,17 +725,16 @@
 t intent
- 
 = new In
@@ -789,34 +789,648 @@
    s
-tartActivity(intent);%0A    %7D
+witch(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%0A   
 %0A%7D%0A

Update MainActivity.java