public class MoodButton_selector
extends Activity
Activity| Constructor and Description |
|---|
MoodButton_selector() |
| Modifier and Type | Method and Description |
|---|---|
void |
onActivityResult(int requestCode,
int resultCode,
Intent data)
Called when returning from another activity - here we pick up the selection of the mood icon being chosen when defining one's own mood definition
|
void |
onClick(View v)
Called when button, here the own mood definition field, the delete 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 MoodButtonHandler |
void |
onItemClick(
Called if a list item has been clicked on, here any of the mood annotations
|
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 MoodButtonHandlerandroid.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 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.OnItemClickListenerpublic void onClick(View v)
v - Reference of the {android.view.View} being clickedView.OnClickListener