Comments (6)
This seems to function as intended, but please match the style of the iOS version.
The iOS version uses a dark grey background color and uses the phrase:
"Attempting Connection to Boscloner"
from legacy-boscloner-android-app.
A few things on this:
-
It seems to take nearly 5 seconds or so before it recognizes that the Boscloner has been disconnected. This needs to happen within one second (or as instant as possible)
-
When in a disconnected state and in the History screen, the user should not be able to send any WRITE commands to the board (since it is disconnected). When the user presses on a badge ID from the history file, they should be given a popup that tells them the Boscloner is in a disconnected state...instead of allowing them to proceed as normal.
You can find that code in my iOS version that simply shows a dialog box that tells them the Boscloner is disconnected and does not allow them to proceed with any write commands. Please copy the iOS version functionality.
from legacy-boscloner-android-app.
Ok will change this, but I am not sure if I am able to influence the disconnected thing. Android has timeouts that are still in place and only if you timeout you will be disconnected. I am not sure how is that working on the iOS, but I will check. When it comes to the writing, I was prociding as normal and just disregarding the write to the boscloner board since that was easiest to implement. I will need to change a logic a bit to support this, but will do it.
from legacy-boscloner-android-app.
This should work now, so when you try to write from the history page, you will get a dialog that says boscloner disconnected. The messages are the same as in iOS app.
from legacy-boscloner-android-app.
We can set this issue aside as a low-priority, cause it works well...but it still takes 5 seconds before it recognizes that the Bluetooth board has been disconnected. I'd like to get that down to no more than 1 second. On the iOS, I have a timer running every second to check the Bluetooth connected state.
Essentially,
- every 1 second run this timer()
- the timer executes a function ( func isAliveCheck )
if isAliveCheck sees that the bluetooth status is connected, it returns and no action is taken.
if is AliveCheck sees that the bluetooth status is disconnected, it immediately starts the bluetooth pairing process again from the beginning.
from legacy-boscloner-android-app.
Hi @philimanjaro, as I told you Android has the timers on its own, so even you have the timer to check if the device is disconnected, that might not give you the proper answer like in the ios.
from legacy-boscloner-android-app.
Related Issues (20)
- History View: Change "Custom Write and AutoClone" Options with Share and Delete (See Screenshots)
- Write more than 20 character over BLE Glitch
- Proper Push Notifications HOT 2
- Fix Top Bar / Title - Mirror How it Looks in iOS HOT 1
- AutoClone Button Acts Odd when App Launches HOT 1
- RFID Badge Types in Settings HOT 2
- Set Variable to "0000000000" After a Write from History or Custom Write is performed HOT 5
- Automatically re-establish BT connection in the background HOT 2
- History View Table, switch direction and order HOT 4
- Variable "customWriteGlith" needs to be changed to "customWriteGlitch" HOT 1
- Write From History Confirmation Box - Cancel Button HOT 1
- Custom Write Dialog Box - Text Changes HOT 2
- Colors of Text and Icons - From Purple/blue to Black HOT 5
- App Icon on Device
- Excessive Notifications when the Boscloner has Disconnected HOT 6
- When switching from the History page to the Home page, an alert is given... HOT 3
- Home fragment problems
- Terminal View Does Not Populate / Show Data On Launch HOT 3
- Check Connection Status to Bluetooth Prior to Performing Write Operations HOT 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 legacy-boscloner-android-app.