package jett_apps.grouvie;

import android.bluetooth.le.ScanRecord;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListAdapter;
import android.widget.ListView;

import java.util.ArrayList;
import java.util.Arrays;

import static jett_apps.grouvie.LandingPage.DATA;
import static jett_apps.grouvie.LandingPage.PLAN_MESSAGE;

public class GroupView extends AppCompatActivity {

    private Plan p;

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

        p = (Plan) getIntent().getSerializableExtra(PLAN_MESSAGE);

        final ArrayList<String> chosenFriends = new ArrayList<>(Arrays.asList(p.getEventMembers()));

        ListAdapter groupAdapter = new ArrayAdapter<>(this,
                android.R.layout.simple_list_item_1, chosenFriends);
        ListView groupListView = (ListView) findViewById(R.id.groupView);
        groupListView.setAdapter(groupAdapter);

        groupListView.setOnItemClickListener(
                new AdapterView.OnItemClickListener() {

                    @Override
                    public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
                        String chosenFriend = chosenFriends.get(position);

                        //Sending the current plan to the final planning page

                        startActivity(intent);
                    }
                }
        );


    }
}

@@ -1551,16 +1551,18 @@
 g page%0A%0A
+//
         

Comment added.