Skip to content

shyamu/TransLoc-Android-Widget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

390 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TransLoc Widget

Simple Android widget application for viewing bus arrival times on Android homescreen. Uses TransLoc Public API

Google Play

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

Building

  1. Clone project

  2. Get an API key from Mashape for the TransLoc API

  3. Go to TransLocWidget/gradle.properties_UPDATEME and add API keys

  4. Rename gradle.properties_UPDATEME to gradle.properties

  5. Import project into Android Studio and build

Acknowledgements

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:

About

Android widget application for TransLoc bus tracking

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages