public class EventButton_selector
extends Activity
Activity| Constructor and Description |
|---|
EventButton_selector() |
| Modifier and Type | Method and Description |
|---|---|
void |
onActivityResult(int requestCode,
int resultCode,
Intent data)
Called when returning from another activity - here not doing anything
|
void |
onClick(View v)
Called when button, here the text field, the mood button or the enter button, has been clicked
|
void |
onCreate(Bundle savedInstanceState)
Started when creating the
Activity |
void |
onDestroy()
Called when destroying the
Activty
Here, we save the selections and send a broadcast to the EventButtonHandler |
void |
onItemClick(
Called if a list item has been clicked on, here any of the event annotations
|
boolean |
onItemLongClick(
Called when a button has been long-clicked
Here, it is an item in the event list that we are after
|
boolean |
onOptionsItemSelected(MenuItem item)
Called when a menu item in the Options menu has been selected
|
boolean |
onPrepareOptionsMenu(Menu menu)
Called when the Options menu botton is pressed, inflating the menu to be shown
|
void |
onRestart()
Called when restarting the
Activty |
void |
onStop()
Called when stopping the
Activty |
public void onCreate(Bundle savedInstanceState)
Activityandroid.app.Activity#onCreate(android.os.Bundle)public void onRestart()
Activtyandroid.app.Activity#onRestart()public void onStop()
Activtyandroid.app.Activity#onStop()public void onDestroy()
Activty
Here, we save the selections and send a broadcast to the EventButtonHandlerandroid.app.Activity#onDestroy()public void onActivityResult(int requestCode,
int resultCode,
Intent data)
android.app.Activity#onActivityResult(int, int, android.content.Intent)public boolean onPrepareOptionsMenu(Menu menu)
menu - Reference of the Menu to be shownandroid.app.Activity#onPrepareOptionsMenu(android.view.Menu)public boolean onOptionsItemSelected(MenuItem item)
item - Reference to the MenuItemandroid.app.Activity#onOptionsItemSelected(android.view.MenuItem)public void onClick(View v)
v - Reference of the {android.view.View} being clickedView.OnClickListenerpublic boolean onItemLongClick(av, View v, int arg2, long arg3)
av - Reference to the parent viewv - Reference to the View being clicked onarg2 - don't carearg3 - the selected entry in the listAdapterView.OnItemLongClickListenerpublic void onItemClick(av, View v, int arg2, long arg3)
av - Reference to the parent viewv - Reference to the View being clicked onarg2 - don't carearg3 - index of the list items being clicked onAdapterView.OnItemClickListener