mobile-phones
Blocking device rotation on mobile web pages
New API’s are developing (and are currently available)! screen.orientation.lock(); // webkit only and screen.lockOrientation(“orientation”); Where “orientation” can be any of the following: portrait-primary – It represents the orientation of the screen when it is in its primary portrait mode. A screen is considered in its primary portrait mode if the device is held in its … Read more
Embedding ads on Android app?
I have personally used both Admob and Adsense. I was wary when I first implemented ads thinking that my users would be upset, but I have not received one complaint from over 500,000 active installations. The only permission that you need to add for either ad SDK to work is the android.permission.INTERNET permission. Admob is … Read more
How to trigger a phone call when clicking a link in a web page on mobile phone
Most modern devices support the tel: scheme. So use <a href=”tel:555-555-5555″>555-555-5555</a> and you should be good to go. If you want to use it for an image, the <a> tag can handle the <img/> placed in it just like other normal situations with : <a href=”tel:555-555-5555″><img src=”path/to/phone/icon.jpg” alt=”Call 555-555-5555″ /></a>