Simple Android widget application for viewing bus arrival times on Android homescreen. Uses TransLoc Public API
I decided to make it open-source because the Android documentation and online tutorials are very lacking in terms of developing Android widgets. The source may be useful as reference for the following...
- Material design with appcompat libraries
- Service calls using RxAndroid
- Making a widget with a widget configuration activity
- Responsive layouts for widgets
- Using an appwidgetmanager
- Updating a widget when its tapped
- Fragment communication
- PendingIntent, RemoteViews
- Usage of the libraies below
-
Clone project
-
Get an API key from Mashape for the TransLoc API
-
Go to TransLocWidget/gradle.properties_UPDATEME and add API keys
-
Rename gradle.properties_UPDATEME to gradle.properties
-
Import project into Android Studio and build
All application bus data is from TransLoc and using their data is subject to their Terms of Service
It also uses other libraries and APIs such as:
