Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Basic Setup of the Sensor Configuration #35

Open
wants to merge 3 commits into
base: install-ui
Choose a base branch
from

Conversation

msk610
Copy link

@msk610 msk610 commented Apr 6, 2017

I added a new fragment class called ConfigFragment. This fragment is going to deal with updating the sensor settings. I utilized the SensorService class to get the list of sensors. I parsed the JSON array to get the sensor name and added it to a scroll view inside of the fragment. I added to a scroll view so you can scroll down the list of sensors. Each sensor has a seek bar/slider along with it. For now, when the app is opened, the slider is set to the power value of the sensor and the listener for the slider does not do anything. After determining how to update the sensor settings using the slider, that functionality will be added and pushed to the config-ui feature branch. Screenshot:
image

@lukpueh
Copy link
Collaborator

lukpueh commented Apr 6, 2017

This is great!

Let's keep in mind that we will need a mapping of generic sensor types known to the clearinghouse and the actual sensors available on the device, i.e.:

if an experimenter requests devices with accelerometer, the clearinghouse should serve e.g.: an LG H420 with an ACCELEROMETER, or a Samsung S4 with a K330 3-axis Accelerometer or a Nexus 6 with an Invensense Accelerometer, ...

@msk610
Copy link
Author

msk610 commented Apr 6, 2017

I can get the sensor type from the json I parsed from SensorService. So, I can do that fairly easily. I think the confusing part for me is just determining what to do with the slider when a user moves it and what should it represent.

@msk610
Copy link
Author

msk610 commented Apr 27, 2017

Added layout updates such as two sliders for each sensor. Utilized MiscService to grab networks data such as WIFI and Bluetooth. Separated everything into two categories, for now, networks and sensors. Also added low, medium, high buttons that can be used to automatically reset the sensor and network settings. No functionality added for those buttons or the sliders for now. Screenshot:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants