bessey / flatmate-android Goto Github PK
View Code? Open in Web Editor NEWMobile and Ubiquitous project.
Mobile and Ubiquitous project.
At the moment unapproved flat members, while not in the approved members UI, can still see the approved members UI.
I can improve the rails logic such that an unapproved flat member can't do or see shit, but the app still needs a slight rework so that when:
flat_id
assignedflat_approved
set to falseA different layout renders which basically says "You need to get a flatmate to approve you in their flat settings page before you can access the data"
Use the WifiManager library to get current network's Mac address, and compare it against the Mac address recorded as belonging to the flat.
The code for this is literally:
WifiManager wifiMan = (WifiManager) this.getSystemService(
Context.WIFI_SERVICE);
WifiInfo wifiInf = wifiMan.getConnectionInfo();
String macAddr = wifiInf.getMacAddress();
Replicate by switching to map view, then to list view, then scroll down a bit. You'll see there is another row of users behind the front one.
Specifically when the asked for their authentication key.
With the only buttons on the login screen saying "Login" and "Register" anyway, I think we can lose the "Login" label at the top as well.
Open to discussion.
Perhaps a pale blue would be better?
Sorting these out now, just wanted to record it so no one else does.
UI done, needs to connect to server.
Think I can do this after all.
Not clear whether there was a connection problem or I entered invalid login information.
Also, what does the cross mean? I have paid for it? What about when no one has put a price in yet?
It's very opaque and so seems to cover most of the screen!
I just registered a new user and joined the flat, I can see my old user is in a very accurate location, yet when I was logged in as them (and I get the same thing on this new user) my location was very roughly estimated to be anywhere within a 1mile radius of central bristol!
It seems the server understands my location accurately, but GMaps's estimate is inaccurate.
Making UI
Hook up to server.
Having them scroll up a fixed amount is not a good solution as different screen resolutions and keyboard solutions will cause unpredictability.
In addition, (correct me if I'm wrong!) the norm for opening an un-logged in app is not for the first field to take focus, thus opening the software keyboard, but instead to let the user do it. This gives a moment of the entire apps opening screen UI to err, "stun" the user!
Proposed solution:
Should be able to
Confirm whether this can be done.
Can we get opening times?
Should be the same size as the flat's name imo. Not sure how to work it into the design, maybe an iOS style badge? so something like "My Flat (4)"?
Reads as
Sear ch
Having "BALLING-OCTO-HIPSTER STUDIOS" in all caps on the main screen is a bit unsightly in my opinion anyway.
WE'RE SO BOSS
UI done, real information needed.
First letter at least. Pretty sure there is a field type that will do this for us.
Something nice and iconic, consistent with the Holo app design.
Email further to the right
So you end up with:
`Email
Password
Find Flat
PostCode`
(In flat settings page)
Ensure we know how to update location in the background, without forcing the app itself to stay open.
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.