Re: [ANNOUNCE] Phone Speaker Switcher - turns speakers on/off during call
Quote:
Originally Posted by hawaii
(Post 573322)
Interested in implementing tapping the power button, to disconnect the call instead of the camera button (which works brilliantly, by the way).
If not, I can localize and make a personal patch.
|
Ya, that would be fine but the thing is when pressing power button it pops up a menu and I don't know how I can cancel that and only do what I want. If you can tell me how, I can implement that and also I'm working on proximity sensor coz the one I'm using at the moment isn't giving stable result - meaning in the day time, night and night time with the room lights on. Maybe because I chose the shorthand (easy way) :D Can anyone plz check this one and report me back?. Coz all I'm doing now is reading the files from /sys/class/hwmon/hwmon1/device/ namely adc0 and adc1 every 1 second and as they return numeric values, I'm just using that to turn speakers on/off. Can someone plz tell what they are actually, coz they are giving random results in different scenarios like I mentioned above and from what I found in the web, it is suppose to give proximity value.
|