simongray / rejsekort-reminder Goto Github PK
View Code? Open in Web Editor NEWContext-aware Android app that automatically reminds users of the Rejsekort to check out at the right time.
License: GNU General Public License v3.0
Context-aware Android app that automatically reminds users of the Rejsekort to check out at the right time.
License: GNU General Public License v3.0
each requires additional features to be developed.
16/4 around 15
16/4 at 8:35
Should clear the label after receiving a SIGNAL_LOST, but it doesn't seem to happen.
10/04 17:43:05, SENSOR, WIFI (BUS): NEW_SIGNAL -68 00:24:21:46:3d:8f
10/04 17:43:08, SENSOR, TIME (timer): TICK
10/04 17:43:16, SENSOR, TIME (timer): TICK
10/04 17:43:18, SENSOR, TIME (timer): TICK
10/04 17:43:19, SENSOR, ACTIVITY (): UNKNOWN
10/04 17:43:31, SENSOR, TIME (timer): TICK
10/04 17:43:31, SENSOR, TIME (timer): TICK
10/04 17:43:33, SENSOR, TIME (timer): TICK
10/04 17:43:34, SENSOR, WIFI (BUS): SIGNAL_FOUND -84 00:24:21:46:3d:8f
10/04 17:43:38, SENSOR, TIME (timer): TICK
10/04 17:43:46, SENSOR, TIME (timer): TICK
10/04 17:43:48, SENSOR, TIME (timer): TICK
10/04 17:43:53, SENSOR, TIME (timer): TICK
10/04 17:43:55, SENSOR, WIFI (BUS): SIGNAL_LOST
10/04 17:43:58, SENSOR, TIME (timer): TICK
10/04 17:44:06, SENSOR, TIME (timer): TICK
10/04 17:44:08, SENSOR, TIME (timer): TICK
10/04 17:44:20, SENSOR, TIME (timer): TICK
10/04 17:44:20, SENSOR, TIME (timer): TICK
10/04 17:44:23, SENSOR, TIME (timer): TICK
10/04 17:44:24, SENSOR, WIFI (BUS): NOTHING_FOUND
10/04 17:44:25, SENSOR, ACTIVITY (): ON_FOOT
10/04 17:44:35, SENSOR, TIME (timer): TICK
10/04 17:44:35, SENSOR, TIME (timer): TICK
10/04 17:44:38, SENSOR, TIME (timer): TICK
10/04 17:44:49, SENSOR, TIME (timer): TICK
10/04 17:44:49, SENSOR, TIME (timer): TICK
10/04 17:44:52, SENSOR, CELL (TRAIN_TUNNEL): NOTHING_FOUND
10/04 17:44:52, SENSOR, CELL (METRO_TUNNEL): NOTHING_FOUND
10/04 17:44:53, SENSOR, TIME (timer): TICK
10/04 17:44:56, SENSOR, WIFI (BUS): NOTHING_FOUND
Opening the app, the onOffButton is always on and the tracker service does not seem to stay switched off.
Use a persistent notification for the TrackerService rather than the widget to save space and lower the change of being autokilled by the process manager.
Should be able to immediately restart service with same state. Use SharedPrefs (similar to final version on Google Code).
useful log info:
Should check that Play Services are available on the device and quit if not as per: http://developer.android.com/google/play-services/setup.html
16/4 at 14:44 arriving at Islands Brygge. Received metro notification while going into tunnel. Still in metro mode afterwards.
While walking on a street
Likely due to using onClick rather than onCheckedChanged listener.
When in waiting/still mode, the app should routinely poll for nearby wifi and/or cells to learn if there are any specific wifi SSIDS or MAC addresses that are uniquely connected to the phone being in waiting mode. This could be work or home wifi, where the phone may lie still for an extended period of time, multiple times a week.
These zones should then be considered in default mode as an automatic trigger into WaitingMode. Perhaps WaitingMode constructor could be amended to allow for a Mac Address identifier to keep the phone in WaitingMode despite being moved around. This would potentially result in greater battery-savings.
11/4 16:13 still thought it was on metro when getting off at Svanemøllen despite getting a notification less than 10 minutes earlier coming up from metro and being on s-train since Nørreport.
04-16 15:33:35.904: E/AndroidRuntime(13645): FATAL EXCEPTION: main
04-16 15:33:35.904: E/AndroidRuntime(13645): java.lang.NullPointerException
04-16 15:33:35.904: E/AndroidRuntime(13645): at com.example.publictransportation.service.TrackerService.changeMode(TrackerService.java:111)
04-16 15:33:35.904: E/AndroidRuntime(13645): at com.example.publictransportation.modes.AbstractMode.changeMode(AbstractMode.java:39)
04-16 15:33:35.904: E/AndroidRuntime(13645): at com.example.publictransportation.modes.MetroMode.evaluate(MetroMode.java:58)
04-16 15:33:35.904: E/AndroidRuntime(13645): at com.example.publictransportation.modes.MetroMode.input(MetroMode.java:52)
04-16 15:33:35.904: E/AndroidRuntime(13645): at com.example.publictransportation.sensors.AbstractSensor.output(AbstractSensor.java:16)
04-16 15:33:35.904: E/AndroidRuntime(13645): at com.example.publictransportation.sensors.ActivitySensor$1.onReceive(ActivitySensor.java:94)
04-16 15:33:35.904: E/AndroidRuntime(13645): at android.support.v4.content.LocalBroadcastManager.executePendingBroadcasts(LocalBroadcastManager.java:297)
04-16 15:33:35.904: E/AndroidRuntime(13645): at android.support.v4.content.LocalBroadcastManager.access$000(LocalBroadcastManager.java:46)
04-16 15:33:35.904: E/AndroidRuntime(13645): at android.support.v4.content.LocalBroadcastManager$1.handleMessage(LocalBroadcastManager.java:116)
04-16 15:33:35.904: E/AndroidRuntime(13645): at android.os.Handler.dispatchMessage(Handler.java:99)
04-16 15:33:35.904: E/AndroidRuntime(13645): at android.os.Looper.loop(Looper.java:176)
04-16 15:33:35.904: E/AndroidRuntime(13645): at android.app.ActivityThread.main(ActivityThread.java:5419)
04-16 15:33:35.904: E/AndroidRuntime(13645): at java.lang.reflect.Method.invokeNative(Native Method)
04-16 15:33:35.904: E/AndroidRuntime(13645): at java.lang.reflect.Method.invoke(Method.java:525)
04-16 15:33:35.904: E/AndroidRuntime(13645): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1046)
04-16 15:33:35.904: E/AndroidRuntime(13645): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:862)
04-16 15:33:35.904: E/AndroidRuntime(13645): at dalvik.system.NativeStart.main(Native Method)
Don't track when charging. Show on screen that tracking has been paused.
http://developer.android.com/training/monitoring-device-state/battery-monitoring.html
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.