opengress / slimgress Goto Github PK
View Code? Open in Web Editor NEWThis project forked from norman0406/slimgress
Dev/Testing/PoC Client for the Opengress Scanner API
License: Other
This project forked from norman0406/slimgress
Dev/Testing/PoC Client for the Opengress Scanner API
License: Other
Problem:
Activities in Android aren't guaranteed to remain alive when they're not being used. Slimgress switches to an OPS activity to show inventory (etc) and it switches to a PORTAL activity to show portal information. In some cases, the Scanner activity can be killed when the user is in OPS/PORTAL, which will result in a crash, loss of sync, or undefined behaviour.
I think that you can test it by turning on "do not keep background activities" in Developer Tools.
Proposed solution 1:
Convert OPS, PORTAL and any future game child-screens to dialogs, make the game run in a single activity. Doing this would remove the hassle of inter-activity communication, and allow the map to be drawn in DEPLOY/RECHARGE screens, which would be handy. It could also solve the problem of remote portal viewing.
Not sure about downsides of this method. Memory use, etc? Also, potentially a lot of work once remote viewing/recharging becomes possible. Then again, remote viewing/recharging are in the future at the moment so maybe not really relevant to analysis of this solution.
Proposed solution 2:
Do nothing. The problem will generally go unnoticed, and this client is intended for PoC/development, so making it run perfectly in all situations is out of scope
In any event, I'm aware of this potential problem and making a note of it here for later.
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.