event handling

by dmtrl...@gmail.com » Sat, 27 Feb 2010 05:29:17 GMT


Sponsored Links
 Hello all.

I have one question about event handling in View. If my onTouchEvent
method will return false when ACTION_DOWN appears - I can't get
ACTION_UP for my view ?

--



event handling

by dmtrl...@gmail.com » Sat, 27 Feb 2010 16:46:17 GMT


 In documentation I see -
        "So, if you return false when the down action event is
received, you indicate that you have not consumed the event and are
also not interested in subsequent actions from this event.Thus, you
will not be called for any other actions within the event, such as a
finger gesture, or the eventual up action event" .
  This means that I will not receive any motion events until the next
ACTION_DOWN?

--


Sponsored Links


Other Threads

1. USB ADB Device connected notification icon still present even after device removed

Hi,

I am running USB ADB on my development platform, am using 2.6.29
kernel. If i insert the USB cable after kernel
boot-up, after UI comes (after ADB daemon is started in the init.rc) ,
then ADB work perfectly fine and if i remove the cable, then
disconnect event is notified properly to the ADB driver (on the
device) and the "USB device connected icon" on the device disappears.

If I plug-in the USB cable before board power-on (before kernel boot -
up),even then ADB works fine, but if I remove the USB cable, then the
device disconnect notification is not sent to the ADB driver and the
"USB connected" icon still remains on the device.

I dont think its my controller driver problem because it works fine if
i run file storage (UMS) . one more thing that I observed is in case
ADB the device is getting enumerated twice, once at the kernel boot up
and once after init.rc is executed.

Does any one know what can be the problem ?

Thanks in advance

regards,
Girish

-- 
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: 

2. Cannot receive UDP in mobile network

I am writing a UDP client/server application.
The android phone (client) can send and receive UDP packets if
connected to wi-fi. When using mobile network (2G), however, it can
send packets to the server, but cannot receive packets. The server
does receive and send back packets in all cases.

The client side code is as follows:
  byte[] buf = new byte[4096];
  DatagramPacket packet = new DatagramPacket(buf, buf.length);
  while (true) {
    packet.setData(buf);
    socket.receive(packet);
    ...
  }

Can anyone give advice? Thanks.

Costa

-- 

3. Does Android has a Touchscreen requirement?

4. Compiling Android Kernel For X86

5. Programmatic dithering on android

6. Is there a way to print the activity stack ?

7. Accessing Contact Data Base for adding,deleting,updating contact using Native code