mobile

Alternative to polling on REST service?

社会主义新天地 提交于 2019-12-11 11:07:55
问题 I have to implement a REST WebService that has different Clients (Silverlight, WPF). The point is to make use of the http advantages. I must push updates tp my clients (and i have no idea, what is the best option for that). Most of the tutorials are about using REST and Comet for chating application, which is not suitable for my case. I cant find any samples for my senario 1) Is polling a good practice? Will i eventually face some problems? Which one? 2) I want to introduce a web client

How do I check if a User is using a mobile device in Django 1.9?

﹥>﹥吖頭↗ 提交于 2019-12-11 11:07:52
问题 I'm using Django 1.9 with Python 2.7 and I'm trying to get my app to recognize if the user is browsing with a mobile device. I've tried django_mobile but it seems outdated for django 1.9 because there aren't even template_loaders to install the app, am I wrong about this? 回答1: or you can use django-user_agents app. really good one. you also get the context in your template - among others important for rendering some ads depending on device in view request.user_agent.is_mobile or in template {

Dojo transition to another html file in same project

a 夏天 提交于 2019-12-11 11:05:28
问题 I am using Dojo 1.7. to implement a Android mobile App with Phonegap. Well my problem is, that I have implemented a tabbar in index.html in my project. Now I want to make a transition by clicking on a tabbar-icon from index.html to a view-div (called testdiv) of view2.html which is another html file in the same project. 回答1: Use the url property available within the data-dojo-prop attribute as shown below - Index.html - link to view on another page <div id="detailsHeading" data-dojo-type=

ReWrite in web.config to go between mobile and desktop sites

佐手、 提交于 2019-12-11 10:55:50
问题 I am finishing up a new mobile website to compliment the desktop version. Currently I have a rewrite rule in the web.config file on my desktop site that looks like so: <system.webServer> <rewrite> <rules> <rule name="MobileRedirect" patternSyntax="ECMAScript" stopProcessing="true"> <match url=".*" ignoreCase="true" /> <conditions logicalGrouping="MatchAll"> <add input="{HTTP_COOKIE}" pattern="nomobile" ignoreCase="true" negate="true" /> <add input="{HTTP_USER_AGENT}" pattern="android

image won't show up in mobile browser

久未见 提交于 2019-12-11 10:50:51
问题 I have an image in a mobile web page. The image does not appear to show up in the page in a mobile browser. If I access it directly, however, it shows up. If I look at the page in a regular browser, it shows up. We've looked at it with Dolphin for Android, Opera for Android, the native Android browser, and Safari for iPhone. What gives? the mobile page (contains video) http://bit.ly/L2YA1i the problematic image http://bit.ly/L3QlU3 The HTML for the image (and it's container) <div class="logo"

viewport autoMaximize causes Timeout waiting for window.innerHeight to change on iPhone

a 夏天 提交于 2019-12-11 10:37:17
问题 I have a problem with my app in that we are trying to get as much real estate on the screen as possible and therefore trying to hide the address bar when it is not in use. I can achieve this by setting the autoMaximize value to true. My problem is when I navigate to this page I get an error Timeout waiting for window.innerHeight to change. When this error is show I have a white page on my phone but if I then press the refresh button it will actually load the page. I have attempted to use a

How to code floating boxes for mobile screens

情到浓时终转凉″ 提交于 2019-12-11 10:27:40
问题 I´m trying to do the following on a website. I guess it´s quite simple for thoose who have programmed alot but for me it´s new. Can someone show me how to code this? Thanks! Layout on computer screen and mobile screen 回答1: You need to use media queries to make your HTML and CSS code produce different results in user's browser on different devices. Media queries usually based on max-width of the browser viewport. So, if browser viewport will be less than 800px wide, additional styles will be

404 error on mobile device but works on pc browser

落花浮王杯 提交于 2019-12-11 10:24:10
问题 This might be a dumb question...but I am trying to make my first app using phonegap and dojo. I am able to use ajax and read some data from the server. This works fine on the android emulator. I can also type the url into my desktop browser and the see the value. I am using spring with json objects. When i type the same url into my phone web browser I get a 404 error. Can someone tell me why? I am very new to mobile development and I feel like i am missing something. The url is public. Thanks

OnePlus Chrome, different user agent on AJAX

[亡魂溺海] 提交于 2019-12-11 10:23:54
问题 I discovered a very annoying issue with Chrome browser on (some) OnePlus mobile devices. I tested it on 3T, and 5T models. With normal GET request, the browser sends the following user agent to the server: Mozilla/5.0 (Linux; Android 8.0.0; ONEPLUS A5010 Build/OPR1.170623.032) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.137 Mobile Safari/537.36 But with AJAX XMLHttpRequest the user agent is: Mozilla/5.0 (Linux; Android 8.0.0; Build/OPR1.170623.032) AppleWebKit/537.36 (KHTML, like

Does the “Official Meteor for Windows Preview” support mobile packages?

倖福魔咒の 提交于 2019-12-11 09:59:42
问题 Does meteor for windows support mobile packages? I have tried running the Linux version through vagrant but couldn't run android emulator. 回答1: As of Dec 2014: No, it doesn't. And there are no plans to work on mobile support on Windows in the near future. 来源: https://stackoverflow.com/questions/27697286/does-the-official-meteor-for-windows-preview-support-mobile-packages