这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@Auxilus
Copy link
Contributor

@Auxilus Auxilus commented Oct 22, 2017

No description provided.

This was referenced Oct 22, 2017
@Auxilus
Copy link
Contributor Author

Auxilus commented Oct 25, 2017

Unlike #101 in this PR mSensorManager.registerListener(this, mProximity, SensorManager.SENSOR_DELAY_NORMAL); will call the sensor to listen and unregister it as soon as the task is finished.

@fornwall
Copy link
Member

Looks promising! Is this missing code though? I don't see where the event variable is declared.

@fornwall
Copy link
Member

Also, I think we should just return the distance in centimeters instead of just "Near" and "Far" - so perhaps out.name("distance").value(event.values[0]);?

@Auxilus
Copy link
Contributor Author

Auxilus commented Oct 26, 2017

@fornwall check now..

@Auxilus
Copy link
Contributor Author

Auxilus commented Oct 26, 2017

I guess we can access the values by sensorEvent.values[0]

@Auxilus
Copy link
Contributor Author

Auxilus commented Apr 9, 2018

closing in favor of #147

@Auxilus Auxilus closed this Apr 9, 2018
@Auxilus Auxilus deleted the patch-7 branch April 9, 2018 12:38
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