How to differentiate a tap event generated by system or by user

by ankit » Mon, 06 Dec 2010 12:57:09 GMT


Sponsored Links
 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

-- 



How to differentiate a tap event generated by system or by user

by ankit » Mon, 06 Dec 2010 13:06:25 GMT


 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

-- 


Sponsored Links


Re: How to differentiate a tap event generated by system or by user

by XC He » Mon, 06 Dec 2010 13:16:32 GMT


 is there any tap event generated not by user's taping behavior?

2010/12/6 ankit <ankit.ag...@gmail.com>:

-- 



Re: How to differentiate a tap event generated by system or by user

by Leon Moreyn-Android Development » Tue, 07 Dec 2010 01:07:25 GMT


 when you drop the phone?




-- 



Re: How to differentiate a tap event generated by system or by user

by Vinay » Tue, 07 Dec 2010 10:57:36 GMT


 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:07pm, Leon Moreyn-Android Development




-- 



Re: Re: How to differentiate a tap event generated by system or by user

by Frank Weiss » Tue, 07 Dec 2010 12:41:16 GMT


 Sounds a bit like an MVC problem. If the checkbox view is bound to a model
(adapter), only the user should be creating tap events. To programmatically
change the checkbox, change its state in the model.

-- 



Other Threads

1. Closed -> WTA: email settings di Android

Akhirnyaaa,
Setelah 2 hari ngulik sukses juga.
Heheheee...
Terima kasih banyak para suhu... :)

Regards,
Enya
~sent from ma Android~




tul, ikutan save juga ah

Salam -widi-
Powered by IPOT - The Best Online Trading in Indonesia



Mantep....save ah Te...




Date: Sat, 16 Jan 201...

[id-android]" group. > > ...

-- ========================= Google Groups "Indonesian Android Community
[id-android]" group. To...

--
=========================
Google Groups "Indonesian Android Community [id-android]" group.

To post to this group, send email to id-android@googlegroups.com

To request to subscribe to this group:

Click  

2. How to port Android Application in HTC Hero Device.

You shouldn't need to port an application to it; it is a regular
Android-compatible device.

On Fri, Jan 15, 2010 at 12:21 AM, jaydip makadia <



> website: 

3. CropToPadding

4. TouchPal : android alternative keyboard

5. Gallery View with Text: Styling

6. magic tambah lemot

7. Best way to reload overlay on map