CreateEventActivity

public class CreateEventActivity extends AppCompatActivity

Screen through which users can create an event in their currently selected network

Methods

createEvent

public void createEvent(View v)

Create an event based on the entered data after validating it

Parameters:
  • v – The button that was clicked to create the event

isValid

public boolean isValid()

Check whether the data entered by the user (if any) is valid and complete

Returns:true if the entered data is valid and complete, false otherwise

onCreate

protected void onCreate(Bundle savedInstanceState)

Initialize activity with saved state

Parameters:
  • savedInstanceState – State to use for initialization

showDatePickerDialog

public void showDatePickerDialog(View v)

Show the calendar dialog to let the user select the event date Intended to be called when the user presses button to set date

Parameters:
  • v – The button that was clicked to show the date picker

showTimePickerDialog

public void showTimePickerDialog(View v)

Show the clock dialog to let the user select the event start time Intended to be called when user presses button to set time

Parameters:
  • v – The button that was clicked to show the time picker