mobile-devices

How to detect mobile device and get user agent info send and save that information to database on server, only once?

自作多情 提交于 2019-12-17 22:37:03
问题 Is there any script to check user agent then send and save that information to database on server? I'm making mobile website with 2 versions like m.facebook.com and touch.facebook.com and I want to redirect to different mobiles. and I use WURFL device detection. So for example m.html5version.com should be delivered to all HTML5 supported devices and m.mobileversion.com should deliver to all other mobiles. So i need a way to detect device and browser 1st time using any server-side or client

Detect different device platforms using CSS

痞子三分冷 提交于 2019-12-17 10:26:11
问题 I'd like to say that I have read and tried many variations of the instructions here: http://www.cloudfour.com/ipad-css/ Detect iPhone/iPad purely by css Detect Xoom browser (Android) http://www.w3.org/TR/css3-mediaqueries/ http://www.w3schools.com/html5/att_link_media.asp http://en.wikipedia.org/wiki/List_of_Android_devices http://en.wikipedia.org/wiki/File:Vector_Video_Standards2.svg I would like to have my page use different CSS files depending on the device being used. I have seen many

Getting Portable Devices using java

六月ゝ 毕业季﹏ 提交于 2019-12-12 09:09:40
问题 I am trying to access some files in a device (having "windows CE" application in it) that appears as portable device in windows 7 using java applet.... My device path is like "Computer\Attari's Device\myfile.txt" Now i am trying to access file from it using the same address but it gives path error or file not found. Similarly i used "\\.\Attari's Device\myfile.txt" but it resulted in same error tell me how to access portable devices using java applet When i navigate to connected device and

How to use 1080x1920: 420 dpi - Android studio

耗尽温柔 提交于 2019-12-11 08:17:29
问题 I am new in android development. I have created an android application most of the devices design are looking fine. 1080x1920 resolution devices working fine. But, some devices Nexus 5x and LeEco-2 (both having same resolution) the designs (UI) are not looking as expected in these devices. How which resource folder I need to use for these devices ? 回答1: call this method to know which screen size is actually the device is! some devices get value from xxxhdpi some get from sw800dp (or any other

Full screen canvas on mobile-devices

别说谁变了你拦得住时间么 提交于 2019-12-10 20:52:01
问题 I have created a small canvas game and I want it to work both on PCs and mobile devices. On PC the canvas area works as expected but the problem comes when designing for mobile devices. Is there a way (CSS or javascript) so that a canvas area inside a website would become full-screen when the user double-taps it? You can't play the game unless the canvas is large enough to fit the entire screen but I find it difficult to zoom so that the canvas is exactly full-screen on the mobile device. In

My iPhone thinks it's 980px wide

耗尽温柔 提交于 2019-12-10 00:58:33
问题 I'm trying to create a set of three very simple media query's to handle a range of screen sizes. Here's what I came up with, after a bunch of headscratching: @media all and (min-width: 0px) and (max-width: 480px) { styles here } @media all and (min-width: 481px) and (max-width: 1023px) { styles here } @media all and (min-width: 1024px) { styles here } This works as I expected in browsers, but when I point my iphone at it, it insists on displaying the syles for the medium size. Playing with

Detecting android devices connected to Wifi

六眼飞鱼酱① 提交于 2019-12-09 18:38:05
问题 I want to make an android application that connects to a Wifi network, say network SSID = "ABC".Assume that it is connected to the Wifi ABC. After connecting to ABC, i would want my application to display the ips of all the android devices that are connected to the same wifi ABC network. How can i achieve that? Thanks 回答1: Check out the file: /proc/net/arp on your phone. It has the ip and MAC addreses of all the other devices connected to the same network. However I am affraid you wont be

css media queries: target mobile devices without specifying width, pixel ratio, etc

可紊 提交于 2019-12-09 06:33:22
问题 Let's say I just want to target every tablet and phone, regardless of size, is there a media query for this? Is it possible to do this without specifying a size? Or is using a size the only way to target mobile devices, and not desktops? 回答1: In the CSS3 spec, @media handeld is mentioned but it has perhaps no browser support. So, no. However, you might find this site useful, it explains other some media query techniques for mobile. 回答2: I've been struggling with this for a few days, but a

Parsing mobile phone user agent string , good solution or library?

本小妞迷上赌 提交于 2019-12-08 17:30:39
问题 Requirement : To find out which phone the user is using by parsing the user agent string from his browser.( in PHP ) eg. Nokia 1100 , Samsung D900 . Is there a good library available with sufficient database of phone vendors and models ? Some solutions I found, need your views on the same : i) handsetdetection : https://www.handsetdetection.com - paid subscription ii) WURFL - http://wurfl.sourceforge.net/ iii) Own solution - I have a small database of phone makers, and models , but will have

Enable mobile device users to toggle div between `position: fixed` and `position: static` (or 'relative')

╄→尐↘猪︶ㄣ 提交于 2019-12-08 11:44:31
问题 I am just getting back into web design and a ton has changed. I'm going through lots of css tutorials at the moment, and I just read about position: fixed and its problems with mobile browsers. That is reason enough for me to ignore it and move on to more important things, but I got wondering... what if I had a little "pin" icon that the user could toggle to "un-fix" that element if they found it troublesome for them? Possible? By "un-fix", yes I mean change it from fixed back to static