jimdc / TradeTracker

by Advent Fintech LLC
1 stars 0 forks source link

Discriminate between one stock uniquely not working and network error in general #19

Open jimdc opened 6 years ago

jimdc commented 6 years ago

If one stock has a problem but others are working, it should say error loading price. Should be notified to the user, already has a return value internally.

Email developer automatically if HTML is malformed or if network code gives a redirect (like for NASDAQ, if you use uppercase, because it desires lowercase ticker names).

Resume connection automatically once connection is found, after stopped for error #41

jimdc commented 6 years ago

Looks like Android has a built-in feature to monitor connectivity status using broadcast receivers https://developer.android.com/training/monitoring-device-state/connectivity-monitoring.html

It also pays to be mindful of mobile data connection in addition to WiFi https://stackoverflow.com/a/9754897