mobile-website

How to start the camera directly from a web page in android

寵の児 提交于 2019-11-28 04:29:11
问题 Im trying to make a webapp for Android in which i can upload pictures. I have a web page with a fileupload field. When I push the button I can choose which app i would like to use to choose the file to upload. Is it posible (and how) to have the camera app in this list? Or do I maybe need a special app for this? Thanks in advance! 回答1: Here is the code to get access to the new camera api's in android 3+ and iOS 6. <input type="file" accept="image/*" capture="camera"> This will allow you to

Tooltips for mobile browsers

雨燕双飞 提交于 2019-11-28 03:48:06
I currently set the title attribute of some HTML if I want to provide more information: <p>An <span class="more_info" title="also called an underscore">underline</span> character is used here</p> Then in CSS: .more_info { border-bottom: 1px dotted; } Works very nice, visual indicator to move the mouse over and then a little popup with more information. But on mobile browsers, I don't get that tooltip. title attributes don't seem to have an effect. What's the proper way to give more information on a piece of text in a mobile browser? Same as above but use Javascript to listen for a click and

“Add to homescreen” button in Android does not show website as a Web App

陌路散爱 提交于 2019-11-28 03:29:48
I've created a mobile-friendly web site with jQuery Mobile and added some meta info so that it should be pinned to iOS and Android homescreens and should be launched as a web app (in other words: in a browser, but without browser navigation elements). It works fine for iOS, but it doesn't work for Android 4.4.2. I followed this tutorial for creating Android-Compatible web apps: Despite adding all the meta info as listed in the tutorial, Android does show the "Add to homescreen" button for my web site, but it does not launch the website without browser navigation elements as described in the

Responsive design with media query : screen size?

隐身守侯 提交于 2019-11-28 03:21:23
I'm working on responsive designed web site using media queries. But i do not know how to take a good width set. As you can see on this table, there is a lot of different resolution even for a single type of device. And as resolution is coming bigger and bigger on mobile device, it is hard to know what design to apply for a specific resolution. For now, I'm using this : Mobile First @media screen and (min-width:720px) => Phablet @media screen and (min-width:768px) => Tablet @media screen and (min-width:1024px) => Desktop Thank you for any advice or recomendations ! Responsive Web design (RWD)

CakePHP website mobile version

爷,独闯天下 提交于 2019-11-28 03:21:16
I have developed a full website with CakePHP framework and we'd like to make a very light version of the website for mobile devices (mainly iPhone/iPad). Is there a way to use the existing website with a new sub domain (for instance mobile.mywebsite.com) which will render specific views? I would like to avoid copying and simplifying the current one to match the new one requirements. I do not want to have to "re-develop" a new CakePHP website and do the changes twice every time I need to change a controller action. Dan Berlyoung I've done this using a quick addition to the beforeFilter() in my

how to prevent iOS safari alert when trying to open non-installed native app?

随声附和 提交于 2019-11-28 03:08:49
I've been looking for a way to open a native iOS app from the browser. I found a decent solution here: Is it possible to register a http+domain-based URL Scheme for iPhone apps, like YouTube and Maps? This solution works great when you have the app installed. but when a user doesn't have this app installed - safari fires an error message which says "Safari cannot open the page because the address is invalid." Is there a way to prevent this behaviour and instead to prompt the user to download the app? Here is a solution that works for me: var timeout; function preventPopup() { clearTimeout

Change Django Templates Based on User-Agent

丶灬走出姿态 提交于 2019-11-28 03:08:45
I've made a Django site, but I've drank the Koolaid and I want to make an IPhone version. After putting much thought into I've come up with two options: Make a whole other site, like i.xxxx.com. Tie it into the same database using Django's sites framework. Find some time of middleware that reads the user-agent, and changes the template directories dynamically. I'd really prefer option #2, however; I have some reservations, mainly because the Django documentation discourages changing settings on the fly . I found a snippet that would do the what I'd like. My main issue is having it as seamless

Meta-tags for mobile – should they be used?

我与影子孤独终老i 提交于 2019-11-28 03:08:00
Meta-tags "Viewport", "MobileOptimized" and "HandheldFriendly" can be used to provide appropriately formatted HTML-content to mobile devices. Are these tags good things? They seem pretty platform specific in many cases, and even when not platform specific (viewport), they seem to require device specific attributes in order to work properly. Should they be used? Where and when is it appropriate to use them? Are there alternatives (without user-agent recognition)? Note: I have been using CSS media queries to achieve mobile-support, but this requires some UAR in order to get optimize font size.

Content Management System targeting Mobile Devices

ε祈祈猫儿з 提交于 2019-11-28 02:13:45
问题 If I want to implement CMS for Mobile Devices, what kind of points should take into account? For example, make page size smaller, use optimized (small) pictures. Any other ideas? Also what kind of rules can be applied while converting web-pages that WERE designed for Desktop Browsers, to the ones that are easily displayed in Mobile Browsers. I know that Mobile Devices widely vary in there capacity and property, but still trying list out some rules. Also any other ideas, suggestions, questions

Mobile CSS Page width

跟風遠走 提交于 2019-11-27 22:08:33
问题 Trying pretty hard to make simple form page viewable in mobile devices. The form is viewable, just that I have to zoom in a lot to read it. Hear is an example: http://200.5.3.20/temp/PocketPC/dispatch.php 回答1: You can add the meta viewport tag that will scale the page to the device width: <meta name="viewport" content="width=device-width, initial-scale=1.0"> You can read up on it here too. 回答2: Apart what jonezy used, meta viewport tag as below will also work: <meta name="viewport" content=