<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-1193295309527347789.post5755203236629580928..comments</id><updated>2010-03-19T10:16:43.921+08:00</updated><category term='Screen Brightness'/><category term='Activity'/><category term='AbsoluteLayout'/><category term='Google Maps'/><category term='Picture'/><category term='reflection'/><category term='XmlPullParser'/><category term='Notification'/><category term='debugging'/><category term='RadioButton'/><category term='ListActivity'/><category term='MediaStore'/><category term='Google TV'/><category term='ACCESS_NETWORK_STATE'/><category term='Custom Adapter'/><category term='AppEngine'/><category term='Bitmap'/><category term='My Battery Status'/><category term='RadioGroup'/><category term='Announcement'/><category term='SetContentView'/><category term='Programming'/><category term='Speak Up'/><category term='BroadcastReceiver'/><category term='Environment'/><category term='Internal class'/><category term='VIBRATE'/><category term='Ubuntu 9.04'/><category term='WebView'/><category term='AlertDialog'/><category term='Default Fonts'/><category term='Drawing'/><category term='Mobile App Contests'/><category term='GestureDetector'/><category term='Shoot and Learn'/><category term='ACCESS_FINE_LOCATION'/><category term='Android'/><category term='Design Patterns'/><category term='Handler'/><category term='InputFilter'/><category term='Gallery'/><category term='SpeakUp'/><category term='Adobe Air'/><category term='Android Tool'/><category term='Intent'/><category term='TableLayout'/><category term='MediaPlayer'/><category term='TextToSpeech'/><category term='GridView'/><category term='HttpPost'/><category term='RelativeLayout'/><category term='Localization'/><category term='Log Collector'/><category term='Contacts'/><category term='Restart App'/><category term='Google'/><category term='Options Menu'/><category term='Android Video'/><category term='sdcard'/><category term='Android Future'/><category term='Canvas'/><category term='Content Provider'/><category term='App Inventor'/><category term='View Group'/><category term='View'/><category term='LinearLayout'/><category term='IntelliJ'/><category term='Layout'/><category term='RECEIVE_BOOT_COMPLETED'/><category term='StorageState'/><category term='mac'/><category term='Wifi'/><category term='Audio files'/><category term='Hardware'/><category term='EditText'/><category term='ACCESS_COARSE_LOCATION'/><category term='android x86'/><category term='Battery'/><category term='Contact'/><category term='ACCESS_WIFI_STATE'/><title type='text'>Comments on Tutorial For Android: Implement GestureDetector in Android</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.tutorialforandroid.com/feeds/5755203236629580928/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5755203236629580928/comments/default'/><link rel='alternate' type='text/html' href='http://www.tutorialforandroid.com/2009/06/implement-gesturedetector-in-android.html'/><author><name>Almond Joseph Mendoza</name><uri>https://profiles.google.com/101518860229446899809</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh6.googleusercontent.com/-vu8S-gipxJo/AAAAAAAAAAI/AAAAAAABh4k/wEVj5tsyCvc/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1193295309527347789.post-1032606360773984535</id><published>2009-07-14T06:03:41.000+08:00</published><updated>2009-07-14T06:03:41.000+08:00</updated><title type='text'>not really a big fan of OOP,  the tutorial above i...</title><content type='html'>not really a big fan of OOP,  the tutorial above is extending a class and does it mean its okay to override the function coz the GestureDetector does have a onLongPress and onDoubleTap, you just need to enable the longPress and pass a doubleTap listener, you could refer to&lt;a href="http://developer.android.com/reference/android/view/GestureDetector.html#setIsLongpressEnabled%28boolean%29" rel="nofollow"&gt; http://developer.android.com/reference/android/view/GestureDetector.html#setIsLongpressEnabled%28boolean%29&lt;/a&gt; then if the listeners dont  work for this two you could try adding &lt;br&gt;@Override&lt;br&gt;public boolean dispatchTouchEvent(MotionEvent ev){&lt;br&gt;     super.dispatchTouchEvent(ev);&lt;br&gt;     return mGestureDetector.onTouchEvent(ev);&lt;br&gt;}</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5755203236629580928/comments/default/1032606360773984535'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5755203236629580928/comments/default/1032606360773984535'/><link rel='alternate' type='text/html' href='http://www.tutorialforandroid.com/2009/06/implement-gesturedetector-in-android.html?showComment=1247522621000#c1032606360773984535' title=''/><author><name>admin</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.tutorialforandroid.com/2009/06/implement-gesturedetector-in-android.html' ref='tag:blogger.com,1999:blog-1193295309527347789.post-5755203236629580928' source='http://www.blogger.com/feeds/1193295309527347789/posts/default/5755203236629580928' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-979964318'/></entry><entry><id>tag:blogger.com,1999:blog-1193295309527347789.post-7865415693947204174</id><published>2009-07-14T02:02:12.000+08:00</published><updated>2009-07-14T02:02:12.000+08:00</updated><title type='text'>Thanks for the link but in this example the onTouc...</title><content type='html'>Thanks for the link but in this example the onTouch method is overridden as well. Probably I didn&amp;#39;t express myself exactly enough.&lt;br&gt;I mean I want to retain the usual behavior of the webview. So it should keep on handling the onFling-, the onSingleTap-Events, etc. But the onLongPress- and the onDoubleTap-Events that are also provided by GestureDetector.OnGestureListener aren´t handled originally. So I want to implement them without having to inplement the other Events again. That&amp;#39;s what i meant with &amp;quot;extend the onTouchListener&amp;quot;. Is there a way to reach this? Thanks</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5755203236629580928/comments/default/7865415693947204174'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5755203236629580928/comments/default/7865415693947204174'/><link rel='alternate' type='text/html' href='http://www.tutorialforandroid.com/2009/06/implement-gesturedetector-in-android.html?showComment=1247508132000#c7865415693947204174' title=''/><author><name>Jan</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.tutorialforandroid.com/2009/06/implement-gesturedetector-in-android.html' ref='tag:blogger.com,1999:blog-1193295309527347789.post-5755203236629580928' source='http://www.blogger.com/feeds/1193295309527347789/posts/default/5755203236629580928' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-979964318'/></entry><entry><id>tag:blogger.com,1999:blog-1193295309527347789.post-1780157522655682511</id><published>2009-07-13T13:40:50.000+08:00</published><updated>2009-07-13T13:40:50.000+08:00</updated><title type='text'>Im not sure if i quite understand your requirement...</title><content type='html'>Im not sure if i quite understand your requirement/s but you could refer to this &lt;a href="http://www.google.com/codesearch/p?hl=en&amp;amp;sa=N&amp;amp;cd=2&amp;amp;ct=rc#HqP5OxuOo3c/src/codefidence/droidpal/Droidpal.java&amp;amp;q=%22extends%20webview%22%20touch%20lang:java" rel="nofollow"&gt;http://www.google.com/codesearch/p?hl=en&amp;amp;sa=N&amp;amp;cd=2&amp;amp;ct=rc#HqP5OxuOo3c/src/codefidence/droidpal/Droidpal.java&amp;amp;q=%22extends%20webview%22%20touch%20lang:java&lt;/a&gt; and see if its the one you need. Thanks</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5755203236629580928/comments/default/1780157522655682511'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5755203236629580928/comments/default/1780157522655682511'/><link rel='alternate' type='text/html' href='http://www.tutorialforandroid.com/2009/06/implement-gesturedetector-in-android.html?showComment=1247463650000#c1780157522655682511' title=''/><author><name>admin</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.tutorialforandroid.com/2009/06/implement-gesturedetector-in-android.html' ref='tag:blogger.com,1999:blog-1193295309527347789.post-5755203236629580928' source='http://www.blogger.com/feeds/1193295309527347789/posts/default/5755203236629580928' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-979964318'/></entry><entry><id>tag:blogger.com,1999:blog-1193295309527347789.post-2908831758907361921</id><published>2009-07-13T13:27:54.000+08:00</published><updated>2009-07-13T13:27:54.000+08:00</updated><title type='text'>Hello,&lt;br&gt;&lt;br&gt;thanks this works perfectly. But is ...</title><content type='html'>Hello,&lt;br&gt;&lt;br&gt;thanks this works perfectly. But is there a way to extend the usual onTouchListener instead of overriding it? I want to extend a webview by longPress and doubleTap but keep the usual behavior of flinging and handling links. Thanks in advance.&lt;br&gt;&lt;br&gt;Jan</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5755203236629580928/comments/default/2908831758907361921'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1193295309527347789/5755203236629580928/comments/default/2908831758907361921'/><link rel='alternate' type='text/html' href='http://www.tutorialforandroid.com/2009/06/implement-gesturedetector-in-android.html?showComment=1247462874000#c2908831758907361921' title=''/><author><name>Jan</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.tutorialforandroid.com/2009/06/implement-gesturedetector-in-android.html' ref='tag:blogger.com,1999:blog-1193295309527347789.post-5755203236629580928' source='http://www.blogger.com/feeds/1193295309527347789/posts/default/5755203236629580928' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-979964318'/></entry></feed>
