On Fri, Dec 10, 2010 at 2:17 PM, Ken Cross
<[email protected]> wrote:
> We use the proximity sensor to detect when the phone is or is not near
> the ear.

I have always wondered how the proximity sensor can determine that it
is an ear. Versus, say, other body parts. Or whose ear it is, or where
the ear is. I mean, if Vincent Van Gogh had an Android phone...

:-)

> The problem comes in if the proximity is in a FAR state and the user
> begins opening the notification drawer.  If, during the process of
> opening the drawer, the proximity sensor triggers a NEAR condition and
> then FAR again, the notification drawer can get left in a partially
> open state.  While in this state, touch remains disabled for our
> application.  Touching the partially open drawer will clear the
> condition.

Have you temporarily disabled your FLAG_FULLSCREEN /
FLAG_NOT_TOUCHABLE logic to see if it is the presence of those flags
that is causing the problem?

That would help determine how much control you have over the
situation. For example, I could certainly see where toggling
fullscreen mode on and off in tandem with the user trying to slide
open the notification drawer could cause things to get mighty
confuzzled.

> The solution I am looking for is a way to tell the handler of the
> notification bar/drawer to close the drawer if the near state is
> detected.

I'm not aware of a way to do that.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android App Developer Books: http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to