WIP - Issue #116 - OBA Google Glass GDK#219
Closed
barbeau wants to merge 42 commits intoOneBusAway:masterfrom
Closed
WIP - Issue #116 - OBA Google Glass GDK#219barbeau wants to merge 42 commits intoOneBusAway:masterfrom
barbeau wants to merge 42 commits intoOneBusAway:masterfrom
Conversation
…odified Activity should work.
…your real-time location. Changed to use ListActivity instead of Fragments, as Fragments don't seem to be well-supported in current GDK. Still need to working on styles.
…quest to execute before regions task finishes, if a region already exists. Added abbreviaton for Downtown.
…ed Glass styles to have prefix of "Glass".
…ven location to the tasks (helps with spoofing location for testing).
…or, since it provides better contrast.
…efactor existing logic in the Service into this Activity, so we no longer need the Service.
…, since the service isn't needed. Add progress messages. Loading arrival times is really slow, need to examine why.
…ly show bus icon after arrival times are obtained.
…ate when a non-production voice trigger is used.
…new build tools version.
…is is required for the app to install on XE16 (a change from behavior on XE12). See http://stackoverflow.com/questions/23135957/failure-install-failed-missing-shared-library-on-glass-xe16-kitkat/
…ems to happen often on XE16).
…o build in Android Studio 0.5.5.
…it times", since this will be the official transit info voice command.
…round to broken swipe-based scrolling in XE16.X.
…ssed in https://developers.google.com/glass/develop/gdk/ui-widgets#main_layout, including more padding on the edges of cards. Make the text slightly smaller to fit in new layout dimensions, and truncate route direction so it doesn't run into the arrival time.
…es wrong accessing the REST APIs.
…w and arrow into its own centralized OrientationManager. TODO - point arrow to nearest stop location, update distance text.
…nstantiated from ArrivalsListActivity, since otherwise its awkward to start/stop updates for onResume and onPause.
…the system classes.
…cation and update other listeners. Revert accidental changes to UIHelp. TODO - point arrow to nearby stop.
…etic correction for compass.
…ating heading differences with magnetic declination and bearing to stop. Force compass redraw when new location is calculated.
glass-progress-bar/build.gradle
Outdated
Contributor
There was a problem hiding this comment.
@barbeau Should we use gradle version 1.0.1 as same with OBA (https://github.com/CUTR-at-USF/onebusaway-android/blob/glass/onebusaway-android/build.gradle)?
Member
Author
There was a problem hiding this comment.
@cagryInside Yes, this (and the Gradle wrapper) likely need to be updated before this will build in the most recent version of Android Studio.
Member
Author
There was a problem hiding this comment.
I'll push an update for this shortly.
…ith Android Studio 1.1.0
Member
Author
|
Thanks for the feedback @cagryInside, just pushed a few commits to fix those items. |
Member
|
Closing. Google Glass has been discontinued. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is somewhat dated now (most recent work mid-2014), but I wanted to open this as a WIP so it doesn't get lost, and is more visible if someone else wants to contribute to the Glass work.
Options to install an alpha version (this PR contents):
gradlew installDebugfrom root of project using command-lineOBA Glassware is activated by using voice commands "ok glass", then "show me transit times".
It will figure out your region (Puget Sound, Tampa, Atlanta, Washington DC, or York Canada):

...find the closest bus stop to your real-time location, and then show you the arrival times for that stop:

Times are refreshed every minute until you dismiss the Activity by swiping down. You can scroll up/down the list of arrival times by tilting your head up and down. You can pause/resume scrolling the list by long pressing with two fingers on the touch pad. Tapping with two fingers will automatically scroll to the top of the list. The arrow points towards your stop from your current position and orientation (so in the example above, you'd turn to your right a little over 90 degrees to face your stop).
Long-term goal is to get the GDK version of OBA Android merged back into the main project, hopefully using Gradle build flavors and/or project modules (see also work related to Wear in #181). Main differences between the main OBA app project and this PR is that Glass does not support the Google APIs add-on (including maps and
GeoPointobject) or Google Play Services, and apparently has poor support for Fragments (hence use of aListActivityinstead ofListFragment). Most of the internal infrastructure for API calls and various utilities are the same, though, and could be shared between projects.I'd like to get feedback from others for what features they'd like to see, so please let me know what features you think would be useful.
See #116 for more details.