On 3月23日, 下午5時51分, Chinmay S <[email protected]> wrote:
> As far as i have seen, even thought multiple apps (apks) register for sensor
> data,
> ONLY one app at a time will be in the "foreground" i.e. it will be active.

Hmm, it seems not.

> So ideally, we should never have two apps competing for events as you
> observe.

I modified the open function according your suggestion,
now two instances get the same events simultaneously.
Is it the desired behavior?
Anyway, it works better now.
Thanks!

> Can you please elaborate what your setup is doing.
> I am particularly interested in "KbdSensor".
> 1. What is it supposed to do? &

As I said in another post,
the sensor generates keyboard events on rotating.
So I monitor the input queue in my libsensors,
convert the events to an acceleration vector,
similar to qemu's sensors.
(so I'm able to rotate 90 or 270, but no 180)

> 2. How have you implemented it in the existing FroYo framework?

If you want to read, I can send you my code.
Please kindly give me some comments.
Thanks!

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to