• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Wear app to check UK train times

aparkin

Member
Dec 21, 2016
58
29
I created an app that enables you to check UK train times from your watch. I wrote it after being out late one evening after work and was heading back to the station, but I was reluctant to get my phone out as I was walking briskly and didn't want to drop the phone, also it was pretty late and with all the phone snatching robberies going on in London I felt reluctant to get my phone out so late...wouldn't it be useful if I could just check the time of the next train home from my watch?

So I wrote this app...you install it onto your phone and the wearable app is installed automatically. You have to set up the from station and to station on the phone in advance (it's not really practical to enter them on the watch),then when the watch app is opened you simply click the desired route and it tells you when the next few trains are, or whether they are cancelled or late. Please note this app only works for UK stations, and the wear app requires the phone to be nearby e. g. in your bag or pocket as the actual timetable query is done on the phone.

I would appreciate any feedback on how usable the wear app is from anyone using a watch with a round face, as my Sony Smartwatch 3 has a square face and I can't seem to get the Android wear emulator working to test it against round faces.

https://play.google.com/store/apps/details?id=com.aparkin.nexttrain

http://www.apdroid.byethost5.com/nexttrain/nexttrain.html
 
I've got this basically working, and tested it this morning when I drove past 4 stations and it correctly picked up the nearest one each time. It should be ready for release in the next week, I usually prefer to do a fair amount of testing before releasing a change, but if you would like to help test it I can release a beta version immediately. Let me know if you're interested. One thing I was wondering about was whether just showing the nearest station would be too restrictive, i.e. if you were close to more than one station it might be better to show the 2 or 3 nearest ones...any thoughts?

Looks great!

Can you make it show departures from the nearest station, using your current location?
 
  • Like
Reactions: psionandy
Upvote 0
An update with this feature is now available via Google Play (and at the address listed at the top of this thread). Including nearby stations is disabled by default, but can be enabled using a checkbox. The number of nearby stations to include defaults to 1, but this can be changed by selecting the number to the right of the checkbox (up to 5 stations can be included). Please let me know if you run into any issues.
 
Upvote 0
I'm adding another feature that enables a widget to be added to your phone's home screen. The reason for this is that the National Rail app's widget is completely unreliable and hardly ever works these days, which is a shame as it used to be a handy feature. The widget in Next Train will allow you to specify when a particular route is displayed on the widget, for example you can have your morning home-to-work route appear on weekdays in the mornings, and the return journey appear in the evenings. You can also specify the days of the week a particular route will appear, and the max number of departures.

This should be ready for release in about 1 week, but if anyone wants to test the beta version please send me a message.
 
  • Like
Reactions: psionandy
Upvote 0
Just added a new feature - when the widget is getting departures, if it detects a cancellation or delay it will display a notification. If you don't want this behaviour it can be disabled from a new Settings screen I added (this also contains the "Add nearest stations" checkbox that was previously on the home screen). You can also now set the font size of the mobile + wear app and the widget.
 
Upvote 0
Trying to get this functionally working on Galaxy Watch 4.

I have extracted the Next Train Wear OS apk and installed it manually (the Galaxy Watch 4 does not use the Wear OS app so therefore will not synchronise the app automatically - could be worth uploading the Wear OS app individually to avoid this issue?)

Now the app is installed I have to say it works very intermittently, the scrolling only works via touch not via the bezel on the Galaxy Watch 4 Classic and when clicking on a station I have to sometimes click it a few times and then click on the back button a few times to make it display.

Currently I am using Wearable Widgets to display the phone version of the widget on the watches home screen as I think this is more informative at a glance. Is there a possibility to make a home screen widget native to Wear OS like this?

Please don't take this as a criticism, this app is great and is so close to being exactly what I need that I felt it worth pointing out the issues I have got.

I tried to use the widget on my phone by the way and it somehow created over 100 requests and I got blocked temporarily from communicating with the train time servers. I'm not sure if this is a known bug? I deleted the widget so unsure if it was just a one off.

Thanks for all your work
 
Upvote 0
Hi, thanks for the feedback. Unfortunately it's going to be difficult to help with the scrolling as I don't have a Galaxy Watch, I use a Fossil Explorist which doesn't even have a scrollable bezel. The Galaxy Watch 4 Classic does look very good though so when my current watch packs up I would definitely consider getting something like this.

I don't have any plans at the moment to create a watch widget, although I might look at the "tiles" feature at some point (when I originally wrote Next Train there was no way to create these but it looks like this is now possible).

I've added a link to the Wear OS APK as per your suggestion.

Regarding the issue of the widget creating too many requests, I can only apologise for this - I did see this happen once a long time ago but I put in a fix and it hasn't happened to me since (I use a Google Pixel). Which version do you have? If you open the About page it should show at least version 29. If you see the option again please send me the app log files (there's a menu option for this) and I'll take a look.
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones