Disabling highlight on touch in iOS mobile safari web apps

Technical, Android, iPhone, 104 words  

When building web apps for mobile devices such as mobile Safari on iOS and the web browser on Android devices. When implementing web apps, by default any touch events causes a tint sort of highlight on any anchor elements or DOM elements with click events. On Android particularly HTC sense, it creates a green border.

To disable this, you use the webkit CSS attribute -webkit-tap-highlight-color

This overrides the highlight color shown when the user taps a link or a JavaScript clickable element.

Syntax

-webkit-tap-highlight-color: rgba(0,0,0,0);

Note, you’ll need to set the above colour with alpha channel as 0 in order to disable the touch highlight

Playing videos from Windows/Smb share on Android device

Linux/Unix, Android, 353 words  
HTC Desire

There’s not much information about how to do this and while a number of file managers do give access to Windows/Samba network shares, they only allow you to edit open files leaving the application the responsibility of retrieving the file via smb protocol, which usually does not work very well. One such file manager application that I found able to do this is Astro File Manager although you’ll need to also install the SMB module from Market. Both the file manager and the smb module are free (ad supported) which is great. You wont beable to open a video file with this though because the stock video player does not know how to handle smb.

The other option is to copy them to your device if you have plenty of storage.

Read more »

8 reasons I love my Android phone

Technical, Life, Linux/Unix, Android, 495 words  

Just got my HTC Desire for a couple of weeks and boy am I loving it, Android has truly become a geeks dream come true. And there are plenty of reasons why its an iPhone/Crackberry killer and Windows 7 doesn’t stand a chance, but here’s my top 8 reasons why,

Read more »

::

May 2024
Mon Tue Wed Thu Fri Sat Sun
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    
 << <   > >>
Brinley Ang

Brinley Ang is a software engineer, sysadmin, coder, geek boy, jedi knight fragger, caffine addict, deaf meloncholic and rockstar wannabe. Listens to the sex pistols and a wide assortment of heavy metal.

Make payments with PayPal - it's fast, free and secure!
Search
home | portfolio | blog | links | contact
© 2024 - Brinley Ang
Valid xhtml