Acclerometer controlled screen lock? - G1 Android Development

So my buddy was just showing me his iPhone and one thing I LOVE and ENVY... He puts the phone to his ear and the keypad locks out...pulls it away? Comes back on (in order to dial for automated systems)
Could we set something up like this using the accelerometer? Perhaps when it lies flat-X number degrees, screen is on?
Know this *could* be an applications, however, being it is something that would need to be integrated into the OS itself, figured I would post it here. Mods move accordingly. Thx!

the iPhone has a..for lack of a better term... "Proximity sensor" that let's it know your head is close to the phone, I don't think you can simulate that with just an accelerometer. People aren't always standing upright while answering the phone.
The G1, in case you didn't notice, does do something similar, it turns off the screen so your ear doesn't accidentally do something, and if you have the lock set up you have to unlock the phone if you want to do anything other than use the keypad.

punkzanyj said:
the iPhone has a..for lack of a better term... "Proximity sensor" that let's it know your head is close to the phone, I don't think you can simulate that with just an accelerometer. People aren't always standing upright while answering the phone.
The G1, in case you didn't notice, does do something similar, it turns off the screen so your ear doesn't accidentally do something, and if you have the lock set up you have to unlock the phone if you want to do anything other than use the keypad.
Click to expand...
Click to collapse
Suppose you're right, but I loathe having to unlock it every 5 seconds to enter new numbers. Perhaps an adjustable time-out? The time it takes to auto lock seems way too short.

momentarylapseofreason said:
Suppose you're right, but I loathe having to unlock it every 5 seconds to enter new numbers. Perhaps an adjustable time-out? The time it takes to auto lock seems way too short.
Click to expand...
Click to collapse
Wouldn't your cheek make a much larger contact then a finger? I would think the most efficient would be to have the screen not recognize an large prolonged touch.
That and have it display the keypad to begin with and not lock.

punkzanyj said:
the iPhone has a..for lack of a better term... "Proximity sensor" that let's it know your head is close to the phone, I don't think you can simulate that with just an accelerometer. People aren't always standing upright while answering the phone.
The G1, in case you didn't notice, does do something similar, it turns off the screen so your ear doesn't accidentally do something, and if you have the lock set up you have to unlock the phone if you want to do anything other than use the keypad.
Click to expand...
Click to collapse
The Diamond and Omnia use a light sensor to turn off or lock the screen. When you hold the phone up to your head while in a call, the light sensor, which is next to the earpiece, is covered, and the phone turns the screen off.
Unfortunately, the G1 does not have a light sensor. Which is kind of weird, since almost all HTC devices are shipping with one these days.

On the G1 when you're on the call screen the only thing you can touch is the little tab on the bottom that brings up the dialer... Unless you're doing something really odd in your phone call your face probably isn't going to accidentally swipe it enough to have the dialer come up. Which brings me to the point that locking the phone when it goes to a phone call is completely unnecessary.

Related

screen not really locked HD2 TMO and ...

HI,
Is there a way to really lock the phone from dialing last number? I mean,if I forgot to lock the phone and put the phone in my pocket. It dials my last number. Is there a way to prevent that besides remembering to lock the phone first.
Also, if its locked in my pocket, can the screen or buttons have a slighter delay from coming on to slide and unlock. I am trying to keep a longer battery life
Lastly, when I am on a call, and I press OK on the call and end up on the main menu while putting the phone back to my face, my face seems like it clicking on stuff. Is there a cab or tool to fix that so when you put the phone back to your face it does not start to engaged stuff.
Thanks
richsark said:
HI,
Is there a way to really lock the phone from dialing last number? I mean,if I forgot to lock the phone and put the phone in my pocket. It dials my last number. Is there a way to prevent that besides remembering to lock the phone first.
Also, if its locked in my pocket, can the screen or buttons have a slighter delay from coming on to slide and unlock. I am trying to keep a longer battery life
Lastly, when I am on a call, and I press OK on the call and end up on the main menu while putting the phone back to my face, my face seems like it clicking on stuff. Is there a cab or tool to fix that so when you put the phone back to your face it does not start to engaged stuff.
Thanks
Click to expand...
Click to collapse
hi, is my question not valid? or am i not explaining it correctly?
1. I think it's easier to just remembering press the "hang up red button" before you put it in your pocket. It is that simple which you do not need an app for that.
2. By doing that will probably not save you much battery power imo.
3. There is a distance detector built-in right next to the battery charging indicator. Your screen is supposed to lock when you picked up a call and put the phone close to your face.
You can do a simple test just to cover the sensor or detector while you are on the phone with others. If your screen does not lock and goes completely blank, there is probably a problem with the sensor.
Hope these help.
zerglisk said:
1. I think it's easier to just remembering press the "hang up red button" before you put it in your pocket. It is that simple which you do not need an app for that.
2. By doing that will probably not save you much battery power imo.
3. There is a distance detector built-in right next to the battery charging indicator. Your screen is supposed to lock when you picked up a call and put the phone close to your face.
You can do a simple test just to cover the sensor or detector while you are on the phone with others. If your screen does not lock and goes completely blank, there is probably a problem with the sensor.
Hope these help.
Click to expand...
Click to collapse
Thank you ! I understand

[Q] How do you make phone button recognition better?

I've really enjoyed my Skyrocket (switched from iPhone 4), but I have to say by far my biggest complaint since using this phone is trying to talk on the phone. I can't talk two minutes without suddenly hitting a bunch of keypad keys, making all kinds of beeping noises, which then typically mutes the line. I take the phone away from my face, wait for the screen to return from black (typically takes about 5 seconds), then I go back and unmute the phone and return to talking. Or it just puts them on hold. This is such a prolific problem that I find myself screaming profanities at my phone on a daily basis lol. It's really extremely frustrating. My google-fu has lead me to NO answers, which amazes me because I figure this HAS to be more common of a problem. I've tried holding my phone so many different ways - making sure my face is making contact with the whole phone and pressing hard, holding just the top half to my ear and holding lightly, attempting to make no contact at all - no matter what I try, I still hit this problem an unfortunate number of times per conversation. Is there no app in the market that tries to improve face-touch recognition or anything like that?
When you make the call push the power button to lock it
xcrazydx said:
When you make the call push the power button to lock it
Click to expand...
Click to collapse
Oh. See, on the iPhone, that ends the call, so I didn't think of that. Thanks!
mrmonkey3319 said:
Oh. See, on the iPhone, that ends the call, so I didn't think of that. Thanks!
Click to expand...
Click to collapse
There is a setting to make the power button end the call as well
shouldn't his proximity sensor kick in? When i make a phone call, as soon as i put the phone to my face the screen shuts off
icenight89 said:
shouldn't his proximity sensor kick in? When i make a phone call, as soon as i put the phone to my face the screen shuts off
Click to expand...
Click to collapse
Yeah that works fine on mine. He may have disabled the sensor in settings, or it wasn't on by default for some reason
Settings/Call/Turn on Proximity Sensor.
If this is checked off your screen should go dark when you put your face up to it (and no buttons getting pushed...)

[Q] Proximity sensor troubles, can it be disabled?

Lately, my proximity sensor has been giving me trouble - at least, I think it's the proximity sensor. The symptoms:
1) I can't unlock the phone unless there is enough ambient light. Generally not a problem, but a little inconvenient.
2) As soon as I start a call, the screen goes black and will not turn back on no matter what, making it impossible to bring up the dialpad or hang up. I've enabled the "power button to hang up" setting, but it doesn't seem to be doing anything. The only way to end a call is to wait for the other side to hang up or remove the battery. The former is fine if I'm actually talking to a person, but if I get into an auto-attendant tree I'm screwed. It happens regardless of whether I'm holding the phone to my face or not. Flat on a table, same behavior.
The phone is rooted, are there any apps or things I can do to verify that it's the proximity sensor? Is there any way to just disable the proximity sensor in software?
Use the hidden menu (3845#*850#) and go into device test.
There is a proximity sensor test there. As you move your hand near the sensor it wall say near and as you move it away it will give you a light reading.
Thanks - the top always says "Proximity: NEAR". The bottom one says "Light: off" If I wave my hand hear the sensor, it turns blue and give me a reading hovering around 10. Closer to the phone and it's red and gives me a lower reading. Holding my finger on the phone, completely blocking the sensor, gives me the "Light: off" reading again.
I'm not quite sure what to make of that.
I've had similar problems with my international version G3. Both times I have had to take off the back cover, remove the various screws around the top half of the phone, pull off the plastic casing, and then use compressed air to spray out the area around the proximity sensor. After this the phone works fine for a month or so.
Somehow dust seems to be getting into the phone quite easily. I'm wondering if the area around the speaker grill is not fully sealed.
I finally took the time to disassemble my phone and sure enough, the proximity sensor was filthy. A couple seconds with a can of compressed air and things seem to be back to normal.
Thanks!
I have a lg g stylo the sensor is so sensitive .. I wave my hand over my phone and the screen goes black I am trying to figure out how to turn it off ..
eriqjaffe said:
Lately, my proximity sensor has been giving me trouble - at least, I think it's the proximity sensor. The symptoms:
1) I can't unlock the phone unless there is enough ambient light. Generally not a problem, but a little inconvenient.
2) As soon as I start a call, the screen goes black and will not turn back on no matter what, making it impossible to bring up the dialpad or hang up. I've enabled the "power button to hang up" setting, but it doesn't seem to be doing anything. The only way to end a call is to wait for the other side to hang up or remove the battery. The former is fine if I'm actually talking to a person, but if I get into an auto-attendant tree I'm screwed. It happens regardless of whether I'm holding the phone to my face or not. Flat on a table, same behavior.
The phone is rooted, are there any apps or things I can do to verify that it's the proximity sensor? Is there any way to just disable the proximity sensor in software?
Click to expand...
Click to collapse
If it does become a problem there is an exposed module just for diabling prox sensor
Proximity Sensor Issue Solved
Just opened the Mobile yesterday night, and after a little hectic; i had managed to clean the dust from board sensors.
Working Perfect now, like a charm !

Issues when locked, in pocket...

Hi all!
I have the fingerprint locked option enabled. I find that sometimes, somehow the phone vibrates when it is in my pocket. When i take the phone out of my pocket, it will say fingerprint lock disabled. It's as though it is detecting the inside of pocket as a print, that's trying to unlock the phone. I also find that the flashlight turns it self on whilst it is in my pocket and also the bluetooth and wifi.
Is anyone having similar issues?
Finding it really annoying.
I've found some of my settings changed before, and I've noticed that the double tap to wake will work through thin material . . . like a jeans pocket.
When you put it in your pocket, turn the screen towards your body and see if that helps. Failing that, try disabling double tap to wake.
I've not had the fingerprint sensor disabled message myself, but the sensor can also trigger through thin material too. It obviously won't read any fingerprint, so if it happens a few times, it just temporarily disables the sensor.
I had to disable the double-tap to wake screen option as it was always triggering in my pocket (screen facing in). I only have screen lock set to swipe though so walking/climbing stairs was waking the screen, pulling down the notification panel and going to town changing settings. I even somehow managed to change the time display setting from 24 hour to 12 hour. I mean, how the hell can that happen in a short few minutes in a pocket?!
Glove mode is/was off if anyone thinks that might be the cause. No screen protector either.
I only have the sensor lock if my finger fails to unlock the phone after a few tries. Every time the fingerprint is not properly read it will vibrate, after about 4 go's, it locks and you need to type in your pin. I'm guessing something is pressing the power button in your pocket and it's trying to scan your finger but failing, so by the time you pull it out, it's locked itself!
I too had to diable double tap to wake because it kept coming on in my pocket. even if it does not get past the fingerpring lock it still wastes some battery.
it would be nice if something could be done in tasker to:
if phone is flat on table(accelerometer)
then enable double tap to wake.
else disable it.
DT2W is wayyy too sensible at the moment. I hope Sony will fix it. A touch or double touch shouldn't be detected through clothes when the screen is off.
That feature was perfectly tweaked on my OnePlus One running CM12.1, and I liked to use it
Yeah I find the screen touch, fingerprint and rotation all way too sensitive. I have already disabled 2 of them, fingerprint is next....
Sent from my E6653
Ditto with the tap to wake frustratingly waking my phone constantly in my pocket. Never had the problem with the Z3. So many issues with this phone that were perfect on the Z3 feel like I've gone backwards.
same issue here, tap to wake activated and called the cops on me LOL...OMG
This is so annoying. My phone always wakes (through dt2w) when in my pocket and does weird stuff: changes settings, calls people, etc...
The one thing I found working for me is keeping the screen facing away from my body while in my pocket. It doesn't wake the phone up then.
I have this problem as well.
Try gravity screen app. It should turn off the screen in 1 second or less should it accidentally turn on while in the pocket.
This has bothered me loads so i've disabled the feature. You'd think they would make use of the light sensor to detect if the phone is in the pocket and then not unlock the phone on double-tab. There's the standard Google 'on-body' feature which can be used to disable security when the phone is detected as on your person.
and this is how a very useful feature quickly became most annoying issue... because of a defective light sensor or its faulty software development.
another thing I don't understand: if screen is locked, why notification access isn't ?!? at least they should put an option to enable or disable it.
sony customer care ?!?
...
sadonlyone said:
another thing I don't understand: if screen is locked, why notification access isn't ?!? at least they should put an option to enable or disable it.
sony customer care ?!?
Click to expand...
Click to collapse
That's actually standard Android behaviour would you believe - both Lollipop and Marshmallow. Don't expect a "fix" for this anytime soon...
It's configurable on iPhone though. Go iOS!
I had to disable the double-tap to wake screen option as it was always triggering in my pocket (screen facing in). I only have screen lock set to swipe though so walking/climbing stairs was waking the screen, pulling down the notification panel and going to town changing settings. I even somehow managed to change the time display setting from 24 hour to 12 hour. I mean, how the hell can that happen in a short few minutes in a pocket?!

"touchless" touch screens

I have tried looking this up on the internet and no matter how I word it I cannot find anything on it. It keeps trying to send me to "air gestures" over your telephone to do certain things like turn off the ringer or send a reply to texts telling them that you will get back to them later or whatever ...
What I am talking about is my finger being .5 to 1 inch away from the touch screen, hovering over a letter on the key board or a link button and it activates whatever I have decided to touch WITHOUT me touching the screen.
I would chalk it up to software/hardware glitches IF it happened to randomly activate a "touch sector" on the screen, but every time it does it chooses EXACTLY the spot I intended to touch AND almost exactly when I decide.... almost instantaneous as if it were a synaptic response. And its not just once or twice each time, it does it dozens of times when it does it happen.
It started with my very first cellphone. A galaxy avant I got from walmart and continues up to this day with my S7.
Am I the only one experiencing this, because it happening more and more and its kinda freaking me out a little. . . Anybody?
(IT JUST DID IT AGAIN AT THE I AM NOT A ROBOT VERIFICATION WINDOW... this really is starting to bug me.)
Its startling and very un-nerving to decide where you are going to touch the screen and glance down and see the area highlighted or activated. It does it faster than I can actually physically move my finger.
I know that its a scientifically proven phenomenon but I am not sure if this may be a factor here or not but my grandfather was one of those people who would make a wrist watch run slow or stop.
Could what I am experiencing be due to some sort of bio current?

Categories

Resources