mobile

Flurry Analytics vs Google Analytics on the mobile platform [closed]

泄露秘密 提交于 2019-12-17 22:12:59
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I am working on a mobile app on the Android platform (and going forward for the iPhone) and am evaluating the Flurry Analytics and

PhoneGap: Scaling down a webpage with viewport

非 Y 不嫁゛ 提交于 2019-12-17 20:47:53
问题 I am creating a quick prototype of an App we are going to be building at work so we can do a quick user test on some functionality. My designer created my images at a 640px width to match the resolution of the iPhone 5. So to make things simple and quick I used this viewport tag: <meta name="viewport" content="width=device-width, initial-scale=0.5, maximum-scale=0.5, user-scalable=no"> This work perfectly in mobile Safari but now that I have wrapped it in PhoneGap it is behaving like the

Detecting FPU presence on Android

孤人 提交于 2019-12-17 20:34:45
问题 I want to get the most performance of my mobile application on Android. I would like to know if someone is aware of a trick to check if the phone possesses an FPU. After some research it seems that using FloatMath class is slower on a unit that possesses an FPU, so I would like to have best of both worlds. Most newer phones have an FPU, but I would like to get the most performance the device can offer. 回答1: It's a Linux kernel underneath, and at least the default Android configuration will

jQuery hover event on <a> tag on mobile devices

匆匆过客 提交于 2019-12-17 20:31:15
问题 The jQuery .hover() event seems to work fine on mobile devices (testing it on iOS 5.1 Safari) as long as it's not on a anchor element <a> . Work fine means it will trigger the hover handler that is bound on it. But, when the hover event is on <a> , the browser is redirected to the URL from href instead. I want it to hover first on first touch (run the event handler) before it's being redirected (trigger the click) on second touch. Is there any way of doing this? 回答1: You must add an event

Using Media Queries To Only Include JS Files On Mobile

こ雲淡風輕ζ 提交于 2019-12-17 20:24:10
问题 I am trying to use the media attribute to only link my javascript files on to mobile devices, not on desktop ones. Here's my link tag: <script type="text/javascript" media="screen and (max-width : 850px)" src="mobile.js"></script> But this isn't working, it links to JS to everything. How do I only link a JS file if it meets those query conditions? If I can't how do I only run JS if it is on mobile? 回答1: How about using javascript for that? <script type="text/javascript"> if (screen.width <

Detecting whether Android device is a phone or a tablet with javascript

一曲冷凌霜 提交于 2019-12-17 19:34:21
问题 I have just built a mobile site and want to redirect the traffic from our main site if the user is browsing through a mobile phone. Currently I am using javascript to pick up the browser useragent and using that to identify if the device is a mobile phone. The issue I have is with Android devices as I cannot find a distinguishing feature for Android useragents to decide whether the device is a phone or a tablet, If the user is on a tablet I still want to show them the full site. Does anyone

Mobile HTML rendering numbers

橙三吉。 提交于 2019-12-17 19:28:19
问题 I have a mobile WEB Page showing a bank statement. Something like this: DATE | DESCRIPTION | AMOUNT --------------|--------------------------|--------------- Jan 2nd 2010 | Clothes | USD 1.839.000 Sep 23rd 2010 | Drinks | USD 2.837.000 I am using . as a thousand separator since that's our locale configuration for that. HTML is very simple. Something like this: <table> <tr> <td>DATE</td> <td>Clothes</td> <td>AMOUNT</td> </tr> <tr> <td>Jan 2nd 2010</td> <td>Clothes</td> <td>USD 1.839.000</td> <

javascript event for a mobile pinch/zoom action

∥☆過路亽.° 提交于 2019-12-17 19:28:02
问题 I need some help. I am trying to work on a mobile web page. What i'm trying to do is "capture" when the user does a zoom in/zoom out action. That is, when they put two fingers on screen and separate or close their fingers together. I looked at jquery mobile and didn't see it. So specifically can I attach a javascript function to a pinch/zoom event in a mobile device? Any help would be greatly appreciated. 回答1: hammer.js http://eightmedia.github.com/hammer.js/ is one of the best javascript

Copy to Clipboard that also works on Mobile?

家住魔仙堡 提交于 2019-12-17 19:21:01
问题 I'm familiar with ZeroClipboard and jquery.copy, which both use Flash. OK, so I get it, for browser security reasons, copying is disallowed and we need Flash. But this means the copying functionality does not work in mobiles (iPhone, Android) or iPad. Is there any resource or plugin that allows a simple Copy to Clipboard functionality on both modern browsers (include IE7+) and mobile browsers? Thanks! 回答1: I just wanted to offer an update, since there have been some recent developments on

Android: Setting onClickListener to a Part of text in a TextView - Issue

为君一笑 提交于 2019-12-17 19:14:11
问题 I am trying to recognise hashtags in my TextView and make them clickable such that I can take the user to another View when they click on the Hashtag. I managed to identify Hashtags in the TextView using Pattern Matching and they appear colored in Runtime. However, I need to make the Hashtag clickable. Here's my Code: SpannableString hashText = new SpannableString("I just watched #StarWars and it was incredible. It's a #MustWatch #StarWars"); Matcher matcher = Pattern.compile("#([A-Za-z0-9_-]