MessengerPigeon/app2/src/main/java/com/epicstudios/messengerpigeon/MainActivity.java
public void displayGroup(View view) {
        int id = view.getId();
        Intent intent = new Intent(this, DisplayGroupActivity.class);
        intent.putExtra("index", id);
        intent.putExtra("Groups", (ArrayList<String>) presenter.getGroups());
        intent.putExtra("GroupIDs", (ArrayList<String>) presenter.getGroupIDs());
        /*Gson gson = new Gson();
        Log.d(TAG, "gson created");
        String json = gson.toJson(presenter);
        Log.d(TAG, "json created");
        Log.d(TAG, json);
        intent.putExtra("Presenter", json);*/
        startActivity(intent);
    }
/**
     * Called by ListAdapter Buttons to display specific groups.
     * @param view the button
     */
Called by ListAdapter Buttons to display specific groups.
@param view the button
Called by ListAdapter Buttons to display specific groups . @param view the button
public void displayGroup(View view) {
        int id = view.getId();
        Intent intent = new Intent(this, DisplayGroupActivity.class);
        intent.putExtra("index", id);
        intent.putExtra("Groups", (ArrayList<String>) presenter.getGroups());
        intent.putExtra("GroupIDs", (ArrayList<String>) presenter.getGroupIDs());
        /*Gson gson = new Gson();
        Log.d(TAG, "gson created");
        String json = gson.toJson(presenter);
        Log.d(TAG, "json created");
        Log.d(TAG, json);
        intent.putExtra("Presenter", json);*/
        startActivity(intent);
    }
public void displayGroup ( View view ) { int id = view . getId ( ) ; Intent intent = new Intent ( this , DisplayGroupActivity . class ) ; intent . putExtra ( "index" , id ) ; intent . putExtra ( "Groups" , ( ArrayList < String > ) presenter . getGroups ( ) ) ; intent . putExtra ( "GroupIDs" , ( ArrayList < String > ) presenter . getGroupIDs ( ) ) ; /*Gson gson = new Gson();
        Log.d(TAG, "gson created");
        String json = gson.toJson(presenter);
        Log.d(TAG, "json created");
        Log.d(TAG, json);
        intent.putExtra("Presenter", json);*/ startActivity ( intent ) ; }
Called by ListAdapter Buttons to display specific groups.
Called by ListAdapter Buttons to display specific groups .