mobile

Design images for Android screens

被刻印的时光 ゝ 提交于 2019-12-11 06:39:36
问题 I'm designing splash images for an Android app. But when it comes to different screen sizes and resolutions, i'm stuck at the root. I have understood that there should be a 3:4:6:8 ratio in image sizes to fit each screen dpi requirements, so I have designed (designed in Photoshop CS 5) a splash image as below low (ldpi) - 184px X 58px medium (mdpi) - 246px X 78px high (hdpi) - 369px X 117px x-high (xhdpi) - 492px X 156px But the issue is, there are small screen sizes such as 240 x 320 with

HTTP: Most reliable way to determine if device accessing site is mobile

邮差的信 提交于 2019-12-11 06:38:02
问题 What is the most reliable way to determine whether the device accessing a site is a mobile device? There should also be a way to distinguish whether the device is a tablet or smartphone. A tablet can be 10 inches and therefore is capable of displaying a normal web page whereas a smartphone cannot and I want to deliver content specific to smartphones. I guess really what I should be checking is the screen resolution but I wasn't able to find a reliable way of doing that. The screen resolution

Make :focus styling remain there after the user clicks the link

蹲街弑〆低调 提交于 2019-12-11 06:24:44
问题 I have created a mobile hamburger menu with several links. You can examine the source code here: <div class="elementor-widget-wrap"> <div data-id="da3c1dd" class="elementor-element elementor-element-da3c1dd elementor-widget elementor-widget-spacer" data-element_type="spacer.default"> <div class="elementor-widget-container"> <div class="elementor-spacer"> <div class="elementor-spacer-inner"></div> </div> </div> </div> <div data-id="5fa72fd" class="elementor-element elementor-element-5fa72fd

Jquery mobile: how to execute custom jquery code in page

懵懂的女人 提交于 2019-12-11 06:24:30
问题 I am currently developing a mobile site using jQuery mobile. I have one simple piece of jQuery that i would like to execute on a button click eg: Click button, show div. This works fine on the first page, or any page which is directly accessed by url. However, wherever there is page history (ie url contains the a #) the custom snippet of jQuery simply doesn't execute. I'm assuming it's something to do with the location.hash I've had a good trawl through the jQuery mobile docs and google but

No midp20.jar in J2ME SDK 8.3

走远了吗. 提交于 2019-12-11 06:09:30
问题 I downloaded Oracle Java ME SDK 8.3 for Ubuntu Linux . To create Java midlets I need the midp api which was supposed to be in lib directory. Currently I am having just these files in lib directory Has Oracle stopped support for J2ME mobile devices ? 回答1: Haven't looked into it too much, but I'm fairly sure you just need SDK 3.4 The problem is that JavaME isn't just one thing. Most people think "cellphones" (MIDlets) when they hear JavaME, but it's actually a lot of other things too, like for

Html video autoplay issue for all browsers

纵饮孤独 提交于 2019-12-11 06:04:48
问题 I have an issue with autoplaying html video on mobile browsers. At first, I did it with autoplay and playsinline attributes. It worked but a few days ago it stopped working on mobile devices. First time I've tried, it was not working on mobile safari actually but was ok for CriOs (chrome in ios). Now I tried some solutions and noticed those : -If I use MP4 video for my source, it works on desktop Chrome and Safari. -If I use WebM, it works on just Desktop Chrome. -I've tried to play the video

Javascript code not fetching location longitude and latitude for mobile browser

别等时光非礼了梦想. 提交于 2019-12-11 05:59:05
问题 My javascript code not fetching longitude and latitude from mobile chrome browser. the below-given code is working for laptop or desktop browser but not mobile <script> if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(showPosition); } function showPosition(position) { alert(position.coords.latitude); alert(position.coords.longitude); document.getElementById("input1").value = position.coords.latitude; document.getElementById("input2").value = position.coords.longitude; } <

Redirect from mobile site (jQuery mobile) to main site styles linger

梦想与她 提交于 2019-12-11 05:58:26
问题 I am using jQuery mobile and MVC 2.0 for my mobile site. I have a link on the mobile site to go to the main site. The problem is that when I land on the main site my styles still look like jQuery mobile styles. If I refresh the page then it correctly shows the main site's styles. I am wondering how to force out the jQuery mobile styles and/or make sure that I get my main site styles when I land on the (login) page. Details: Sites served under IIS 7.5. Main Site in Classic 2.0 (VB.NET) with

Single code base for mobile and desktop app

时间秒杀一切 提交于 2019-12-11 05:43:47
问题 We have a requirement to work on an application which should run on mobile devices (iPhone/Android and Windows Phone) and Desktop browsers. Can anyone please suggest me the technology stack to be used? Thanks. Suhas 回答1: Cross-platform HTML-app solutions seem like a good fit for this. They are cross platform app development platforms that are composed of HTML, CSS and JavaScript. They would allow you to compile for many platforms from a single codebase. Here's a few of the popular ones:

Can't find the script redirecting mobile traffic in WP self-hosted site

不问归期 提交于 2019-12-11 05:38:35
问题 I'm trying to fix a self-hosted WP site that uses a twenty twelve theme with minor customizaction (mainly CSS, not much php, all written by the previous webmaster). I'm having trouble with mobile devices access. They all get redirected to a URI outside the site. I have already "reseted" the htacces files. They looked like this: RewriteEngine On RewriteCond %{HTTP_USER_AGENT} ^1207. (lot of other devices) RewriteCond %{HTTP_ACCEPT} text\/vnd\.wap\.wml|application\/vnd\.wap\.xhtml\+xml [NC,OR]