The online racing simulator
LFS Stats for Android (stats, notifications on friends coming online, hotlaps)
(5 posts, started , go to first unread)
LFS Stats for Android (stats, notifications on friends coming online, hotlaps)
LFS Stats for Android

LFS Stats is an app for Android devices which retrieves and shows public LFSW stats, so it can be used on-the-go, without having to open the browser.

The app is not perfect, EXPECT some bugs! I just started to dive in Android development recently. Tilt If you encounter ANY bugs, crashes or errors, please let me know here in this thread (explain the situation - what screen were you on, what did you press last time, screen orientation, connection status, etc.). If you post the error log here (or send the error log in a PM or email: lfsstats.app@gmail.com), I would be grateful for that - it helps me debug and fix errors. If you have any suggestions about features, design or anything related to the app, feel free to post them here as well. It would be nice to hear feedback! Smile I'd like to get this app on Play Store some day, so updates are easier for me and for you as well, but that requires registering a developer account (and paying the registration fee) on Play Store which I currently do not have. For now, I'll post any updates to the app here in this thread. Huge thanks to the LFS developers for their incredible racing simulation, LFSWorld statistics website and the Pubstat system which makes this app work!

LFS Stats is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Features

Current features:
  • background update and notification on:
    • friend joining an online server
    • new hotlaps uploaded to LFSW (notify only on: ALL, WR (default), Top 10 or Top 50 hotlaps)
  • retrieve and list:
    • hotlap upload log (filter by: ALL, WR, Top 10 or Top 50), landscape view recommended to avoid data not showing up, also you can see Splits in landscape mode
    • all hotlaps by a racer
    • online stats of a racer (including current or last status, host and car/track combo)
  • friends list (manage friends)
  • on hotlap lists, WR is highlighted in bold, own hotlaps are highlighted in light green
Background updates notifications are off by default and can be turned on in Settings. Currently, each background update takes about ~35 kilobytes (this may vary in the future, when new notification features get added). The notification also shows the splits of a hotlap (when you expand the notification - drag it down a little - to peek inside). It is possible to restrict the app from using Mobile Data for background notifications only (in the app Settings). You can also choose the background update interval (every 15, 30 minutes and every hour).

Planned features:
  • alert when a friend sets a new hotlap / reaches milestones (stats)
  • friends section in the app, where you can see all your friends' statuses and the server they are on
  • alert for new hotlaps on specific combos
  • hotlap charts (browse hotlaps, see the chart of a specific combo)
  • online PB's of a racer
  • tapping the notification not only opens app but brings you to the hotlap chart for the combo
  • server browser
  • list sorting for hotlaps
  • language selector
  • dark mode
  • teams list
  • ability to open browser to get LFSW Ident-Key so you can copy it and paste it back to the app easily
  • home screen with some online activity graphs / data
  • + I'm open to suggestions!
Install and Setup

As the app is not on Play Store yet (for reasons described in the description above), by default, Android blocks installing third-party apps on devices. You have to allow installing apps from "Unknown sources" in your device settings -> Security -> Unknown sources (Allow installation of apps from sources other than the Play Store). Depending on your device, this switch might be somewhere else in your device settings (under Lock screen and Security; Advanced settings; Apps -> Upper right menu: Special access -> Install unknown apps; etc.).
The first time you start the app, you must enter your 32-chars long Ident-Key that you can generate on LFSWorld: LFSW -> My LFSW Settings -> Pubstat access tab. Make sure to NOT bind the Ident-Key to an IP, and do not allow premium usage (just to make sure your LFS balance remains untouched, as the app can't make use of premium usage right now). You can change your Ident-Key later in Settings in the app.

Download

Current version: 0.6.
See post attachments to download the latest version, in a .zip file. If you install the new version of top of the version on your device, saved settings should be kept (ident-key, username, notification preferences etc.).

Requirements

Android 5.0 and up.

Permissions

Currently, the app doesn't request any special permissions that a user has to grant upon installation or during using the app. The app uses the following permissions, granted automatically by the Android system:
- Network access

Support my efforts

First of all, if you haven't already bought a LFS license, please support the developers of LFS by buying one ( https://www.lfs.net/shop/licenseselect ), so we can enjoy this awesome racing simulator for years to come!
LFS Stats app was developed in my spare time. If you like it and would like to support its development, consider donating to my PayPal address: lfsstats.app@gmail.com . I would be thankful for a cup of coffee! Smile (I couldn't generate a PayPal donation link/button, unfortunately.)
Any feedback is welcome!

Changelog

0.6 (21/05/2020) - Friends list (accessible in Settings - Manage Friends)
- Alert when friends connect to a server
- Ident-Key is now hidden in Settings
- Fixed a crash on Online Racer Stats when player had no stats in some fields
- New HL notifications no longer overwrite previous hotlap notifications
- Removed the big "Refresh" buttons to clean up look
- Minor layout changes
0.5 (18/05/2020) - Initial release

Screenshots

[see attachments]
Attached images
0.5_notif_newhl.png
0.6_hotlapsbyracer.png
0.6_hotlapuploadlog.png
0.6_onlineracerstats.png
0.6_friendnotif.png
0.6_friendslist.png
Attached files
lfsstats-0.6.zip - 2.3 MB - 15 views
Great application thank you Smile
Well done Dan, so far so good!
Thanks for the feedback (both here and on the LFS Discord server's #programming channel)!

Update 0.6
Thanks for trying out the initial release.
New in 0.6, friends management and alert for a friend joining a server is now available! I also included new screenshots where you can see the friend alert and the friends list screen (you can access it in Settings - Manage Friends). Please try it out, and as always, if there are any crashes, please post feedback here. I hope you enjoy the new features. Note: the friend notification isn't instant, as the app is still bound to the 15-min background update interval.
I also plan creating a Friends page in the app, where you can see your friends' statuses and/or current servers which they are connected to.

Check the original post to download the new version.

Changelog:
0.6 (21/05/2020) - Friends list (accessible in Settings - Manage Friends)
- Alert when friends connect to a server
- Ident-Key is now hidden in Settings
- Fixed a crash on Online Racer Stats when player had no stats in some fields
- New HL notifications no longer overwrite previous hotlap notifications
- Removed the big "Refresh" buttons to clean up look
- Minor layout changes

Great Application my man!

Keep up the good work!

LFS Stats for Android (stats, notifications on friends coming online, hotlaps)
(5 posts, started )
FGED GREDG RDFGDR GSFDG