Comments (5)
The passive/active state is based on the day as reported from the system, so I'm not sure how this could come about. Sometimes the display will show the last state it was in for a few frames before switching, so perhaps that was the case?
from avatarwallpaper.
I woke up this morning and it was in the active state. First avatar was running for a while, then biking. It stayed in active state at least until the last time I checked at 11:40am. Next time I checked after 12:30pm, and it was in the passive state (watching TV). It's still in the passive state now.
I noticed this the other day, too, but I wasn't sure if I was just remembering the day's animation state (passive or active) wrong.
On Aug 11, 2012, at 1:01 PM, Tylar <[email protected]mailto:[email protected]> wrote:
The passive/active state is based on the day as reported from the system, so I'm not sure how this could come about. Sometimes the display will show the last state it was in for a few frames before switching, so perhaps that was the case?
—
Reply to this email directly or view it on GitHubhttps://github.com/7yl4r/MirrorMe-Avatar/issues/7#issuecomment-7668306.
from avatarwallpaper.
I can't reproduce this issue, but my best guess on this is that the time zone is not coming through correctly somehow. I am thinking that since we are -6 UTC, somewhere this is being interpreted as +6, causing the 12 hour shift. I'll see if there is anything I can do about it in the code.
from avatarwallpaper.
Ooops. Eastern time is -4... That makes this error even more baffling.
The shift between active and passive hinges on this one line of code:
int today = Time.getJulianDay( System.currentTimeMillis(), TimeZone.getDefault().getRawOffset() );
That value is then checked for even/oddness with if(today%2 == 0)
This use seems to be correct according to the Time and TimeZone documentation.
I have also verified that System.currentTimeMillis()
does return in UTC myself, since the documentation felt a little ambiguous.
...From some added debugging code it seems that TimeZone.getDefault().getRawOffset()
is the problem here, since values logged from that method are not as expected. No clue why though. I'll continue trying to figure it out or find an alternative.
from avatarwallpaper.
The code has changed a lot since this bug surfaced, hopefully this bug is fixed.
from avatarwallpaper.
Related Issues (20)
- No way to get back to initial setup screen after first run HOT 1
- contact email in settings menu is not correct HOT 1
- body but not head shrinks every time I press 'set wallpaper'
- initial setup avatar display does not size correctly
- selection of large face image causes vm budget to run out
- where is the data going for Android 4.0+ devices? HOT 1
- camera and gallery photo get fails on Xperia Ray Android 4.0
- visibility logging does not handle animation change during view
- can't get to options sub-menu in Android 4.1.2
- starting up wallpaper with sdcard unavailable fails silently HOT 1
- changing the 'animation behavior' setting does not seem to do anything
- changing the 'even/odd day' setting does not seem to do anything
- no data warning seems to display more often than it should. HOT 1
- more data logging is needed for better debugging
- wallpaper crash during wifi changes?
- activity logger activity not stopped after app is closed. HOT 1
- android external storage handling confuses dataLogger
- UID needs to start with a letter or underscore
- sensor service stops sometimes
- storage failure on Android 4+
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from avatarwallpaper.