Monday, December 6, 2010

[android-developers] Re: How to differentiate a tap event generated by system or by user

Hi,

I have come across one situation where it is required to know.

I'm using a check-box to handle turning on/off bluetooth. In case the
bluetooth is already on (through Wireless & Network -> Bluetooth ->
turn On), then in my custom application the check-box should be
checked indicating blueooth is already on.

So setting the check-box checked programatically will again trrigger
the event handler.

Even I would like to know how I can differentiate even being generated
by system and user. I think java swings does support that, but dont
know if some thing such is available with android sdk..

Vinay.

On Dec 6, 10:07 pm, Leon Moreyn-Android Development
<lmor...@earthcam.com> wrote:
> when you drop the phone?
>
> On Dec 6, 12:16 am, XC He <schosnab...@gmail.com> wrote:
>
>
>
> > is there any tap event generated not by user's taping behavior?
>
> > 2010/12/6 ankit <ankit.ag...@gmail.com>:
>
> > > Hi All,
>
> > > Urgently needed help on this.
> > > Actually i am recording and playing a sequence of events using
> > > getevent and sendevent class,
> > > now while playing the recorded events. Now while playing the recorded
> > > events i want to know if any new tap event is generated by user. So is
> > > there any way to differentiate a tap event generated by system or by
> > > user. Also is there any way to decode the raw data provide by the
> > > kernel to get this information.
>
> > > Any Kind of suggestions would be of great help to me..
> > > Thanks in advance....
>
> > > regards
> > > Ankit
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscribe@googlegroups.com
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en- Hide quoted text -
>
> - Show quoted text -

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

No comments:

Post a Comment