PDA

View Full Version : [CLOSED-85][Android] Doubletap on YEAR on Picker widget opens the phone application



Nom4d3
17 Jun 2010, 5:51 AM
I was testing the examples on my Motorola Milestone with Android 2.1 and when I opened the DatePicker widget and tapped 2 times in the Year field, my Dialer application opens with '1980' on the numberfield to call.

I didn't have a chance to test in another phone, but this is a little wierd. I didn't find this behavior in any other widget.

aconran
17 Jun 2010, 10:50 AM
The same issue can be seen in some Android devices for things it recognizes as addresses. It will try to search for it in google maps.

If anyone knows a meta tag or way to prevent this behavior, we'd love to know.

Thanks,

Nom4d3
17 Jun 2010, 11:19 AM
I tried to find something to explain this behavior but did not find. Neither in the Android API and nothing about Webkit.
Addresses and phone numbers are usually detected after pressing the text for a while and the browser asks you what you want to do with that information. But with all pages doubletap change the zoom.

I will continue researching something to prevent this behavior.

aconran
8 Sep 2010, 4:13 PM
This can be done on a per page basis with the meta tag.
http://developer.apple.com/library/safari/#featuredarticles/iPhoneURLScheme_Reference/Articles/PhoneLinks.html

The link is for iOS but it also works in my latest tests on a Droid on Froyo 2.2.