This is the official Android app for OneBusAway!
OneBusAway for Android provides:
- Real-time bus arrival information for public transit
- A browse-able map of nearby stops
- The ability to search for nearby stops or routes
OneBusAway for Android automatically keeps track of your most used stops and routes, and allows you to put shortcuts on your phone's Main Menu for any stop or route you choose.
It's available on the Play Store: https://play.google.com/store/apps/details?id=com.joulespersecond.seattlebusbot
- Download and install the Android SDK. Make sure to install the Google APIs for your API level (e.g., 17), and the Android Support Repository and Google Repository.
- Set the "ANDROID_HOME" environmental variable to your Android SDK location.
- Set the "JAVA_HOME" environmental variables to point to your JDK folder (e.g., "C:\Program Files\Java\jdk1.6.0_27")
- Download and install the latest version of Android Studio.
- In Android Studio, choose "Import Project" at the welcome screen.
- Browse to the location of the project, and double-click on the "settings.gradle" file in the root (NOT the project directory).
- Check "Use auto-import", and select "Use default gradle wrapper (recommended)". Click "Ok".
- Click the green play button (or 'Shift->F10') to run the project!
- To build and push the app to the device, run
gradlew installDebug
from the command line at the root of the project - To start the app, run
adb shell am start -n com.joulespersecond.seattlebusbot/.HomeActivity
(alternately, you can manually start the app)
When importing to Android Studio, I get an error "You are using an old, unsupported version of Gradle..."
When importing, please be sure to select the "settings.gradle" file in the root, NOT the project directory. You will get the above error if you select the project directory / name of the project.
Open Android SDK Manager, and under the "Extras" category make sure you've installed both the "Android Support Repository" (in addition to the "Android Support library") as well as the "Google Repository". Also, make sure you have the Google API installed for the API level that you're working with in the "/build.gradle" file.
Make sure that you're consistently using the same Android SDK throughout Android Studio and your environmental variables. Android Studio comes bundled with an Android SDK, and can get confused if you're pointing to this SDK within Android Studio but have your environmental variables pointed elsewhere. Click "File->Project Structure", and then under "Android SDK" make sure you "Android SDK Location" is the correct location of your Android SDK.
Also, make sure you've set the "ANDROID_HOME" environmental variable to your Android SDK location and the "JAVA_HOME" environmental variables to point to your JDK folder.
Want to learn more about the OneBusAway project? Read up on the entire Application Suite here:
https://github.com/OneBusAway/onebusaway-application-modules/wiki
You can also learn more about the mobile apps here: