Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
momentarylapseofreason
Old
#1  
momentarylapseofreason's Avatar
Senior Member - OP
Thanks Meter 17
Posts: 1,064
Join Date: Apr 2007
Location: Chicago
Default Acclerometer controlled screen lock?

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!
 
punkzanyj
Old
#2  
Member
Thanks Meter 0
Posts: 93
Join Date: Feb 2008
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.
 
momentarylapseofreason
Old
#3  
momentarylapseofreason's Avatar
Senior Member - OP
Thanks Meter 17
Posts: 1,064
Join Date: Apr 2007
Location: Chicago
Quote:
Originally Posted by punkzanyj View Post
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.
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.
 
benmyers2941
Old
#4  
benmyers2941's Avatar
Senior Member
Thanks Meter 8
Posts: 363
Join Date: Oct 2007
Location: Phoenix, AZ
Quote:
Originally Posted by momentarylapseofreason View Post
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.
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.
 
Koush
Old
(Last edited by Koush; 24th November 2008 at 06:25 PM.)
#5  
Recognized Developer
Thanks Meter 880
Posts: 917
Join Date: Sep 2007
Quote:
Originally Posted by punkzanyj View Post
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.
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.
 
MarcusMaximus04@gmail.com
Old
#6  
Senior Member
Thanks Meter 3
Posts: 1,069
Join Date: Jun 2007
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.
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Gear Up Because it’s Time to Save Earth

*Cue Dramatic Music*Put on your red and blue latex overalls and cape because it’s time to … more

Recognized Contributor Code of Conduct

During the first half of 2012, XDA initiated the Recognized Contributor (RC) program to recognize … more

Careers in Android: What Hiring Managers Won’t Tell You – XDA Developer TV

XDA Developer TV Producer Jayce released a video a … more

Coloring Your Logcat World

Getting feedback for your app during development is as simple as adding logging info where necessary and looking … more