Public Member Functions | |
boolean | onCreateOptionsMenu (Menu menu) |
boolean | onOptionsItemSelected (MenuItem item) |
void | onOptionsMenuClosed (Menu menu) |
void | openOptionsMenu () |
Protected Member Functions | |
void | onCreate (Bundle savedInstanceState) |
void | onPause () |
void | onResume () |
Private Attributes | |
ServiceConnection | mConnection |
boolean | mResumed |
ROSMonitorService.ROSMonitorBinder | mService |
This activity manages the options menu that appears when the user taps on the live card display. The menu allows them to dismiss current card or stop the service.
Definition at line 48 of file MenuActivity.java.
void edu.nimbus.glass.MenuActivity.onCreate | ( | Bundle | savedInstanceState | ) | [inline, protected] |
Definition at line 72 of file MenuActivity.java.
boolean edu.nimbus.glass.MenuActivity.onCreateOptionsMenu | ( | Menu | menu | ) | [inline] |
Definition at line 102 of file MenuActivity.java.
boolean edu.nimbus.glass.MenuActivity.onOptionsItemSelected | ( | MenuItem | item | ) | [inline] |
This method here will either kill the live card or kill the service
Definition at line 111 of file MenuActivity.java.
void edu.nimbus.glass.MenuActivity.onOptionsMenuClosed | ( | Menu | menu | ) | [inline] |
Definition at line 130 of file MenuActivity.java.
void edu.nimbus.glass.MenuActivity.onPause | ( | ) | [inline, protected] |
Definition at line 87 of file MenuActivity.java.
void edu.nimbus.glass.MenuActivity.onResume | ( | ) | [inline, protected] |
Definition at line 79 of file MenuActivity.java.
void edu.nimbus.glass.MenuActivity.openOptionsMenu | ( | ) | [inline] |
Definition at line 94 of file MenuActivity.java.
ServiceConnection edu.nimbus.glass.MenuActivity.mConnection [private] |
new ServiceConnection() { @Override public void onServiceConnected(ComponentName name, IBinder service) { if (service instanceof ROSMonitorService.ROSMonitorBinder) { mService = (ROSMonitorService.ROSMonitorBinder) service; openOptionsMenu(); } } @Override public void onServiceDisconnected(ComponentName name) { } }
Definition at line 56 of file MenuActivity.java.
boolean edu.nimbus.glass.MenuActivity.mResumed [private] |
Definition at line 52 of file MenuActivity.java.
ROSMonitorService.ROSMonitorBinder edu.nimbus.glass.MenuActivity.mService [private] |
Binder and boolen
Definition at line 51 of file MenuActivity.java.