Skip to content
Lrac edited this page Sep 20, 2014 · 1 revision

The following is a brief description of the classes within the Google Glass app, GlassFakeNotifications, and how they interact with the FakeNotifications app.


####BluetoothClient.java Handles the bluetooth connection with android app. At the moment it just attempts to connect to the first Nexus device that it finds. Received data from the android app is sent to the MainActivity, and also sends messages that it receives from MainActivity, back to the android app.


####Settings.java First screen that appears after bluetooth connection has been established, gives users the option to either turn on or off voice commands.


####MainActivity.java Main inbox activity of the app. First card(screen) will show the time, all subsequent cards will show text messages. When it receives a new message from the android app, it will filter the message. Phone call messages will cause it the start the PhoneCall activity. Text messages will cause it to create a new card with the text message contents and insert it next to the time card. Users have the option to tap on any text message and send a preset "reply". They can also reply using their voice if voice commands are enabled.


####PhoneCall.java Activity that emulates a google glass phone call, users can tap on the screen or call out "ok glass" (if voice commands are enabled), to accept, decline, or reply with a preset message.


####TextMessage.java Object that holds the information for each text message. Used by MainActivity to hold all the text messages that are received from the app.


Clone this wiki locally