Public Member Functions | Protected Member Functions | Private Attributes
edu.nimbus.glass.MenuActivity Class Reference
Inheritance diagram for edu.nimbus.glass.MenuActivity:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

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.


Member Function Documentation

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.

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.

Definition at line 94 of file MenuActivity.java.


Member Data Documentation

ServiceConnection edu.nimbus.glass.MenuActivity.mConnection [private]
Initial value:
 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.

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.


The documentation for this class was generated from the following file:


ros_glass_tools
Author(s):
autogenerated on Thu Aug 27 2015 14:47:21