public static String formatReservation(Reservation r) {
    String str = r.toString();
    String formatted = str.substring(0, str.indexOf(" "));
    int period = daySchedule[SchoolCalendar.dates[r.month - 1][r.date - 1] - 'a'][r.period];
    formatted +=
        (period == 0 ? " after school" : " during period " + period) + " " + roomInfo[r.roomID];

    return formatted;
  }
  /*
   * (non-Javadoc)
   *
   * @see android.app.Activity#onCreate(android.os.Bundle)
   */
  @Override
  public final void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.bidding_main);

    // How to get values from intent call
    Bundle b = getIntent().getExtras();

    final Reservation obj = (Reservation) b.getSerializable("SelectedList");
    myCoins = (TextView) findViewById(R.id.tvTotCoins);
    buttonBid = (Button) findViewById(R.id.buttonBid);
    bAmount = (Button) findViewById(R.id.BarGraph);
    // testButton = (Button) findViewById(R.id.test);
    display = (TextView) findViewById(R.id.tvDisplay);
    // userEmail = (TextView) findViewById(R.id.)
    display.setText(obj.toString());
    temp_1 = (EditText) findViewById(R.id.etTemp);
    coins_1 = (EditText) findViewById(R.id.etCoins);
    currentWinner = (EditText) findViewById(R.id.etWinTempVal);

    showPrevWinner(obj);
    // Intent m = new Intent(this, UserPreferencesController.class);
    // startActivity(m);

    buttonBid.setOnClickListener(
        new View.OnClickListener() {

          @Override
          public void onClick(View v) {

            sendData(obj);
          }
        });
    bAmount.setOnClickListener(
        new View.OnClickListener() {
          @Override
          public void onClick(View v) {

            showGraph(v);
          }
        });
  }