mobile

How to restrict browser view to Landscape on a mobile browser in HTML5?

假装没事ソ 提交于 2019-12-13 12:16:02
问题 How to restrict browser view to Landscape on a mobile browser in HTML5? On potrait view, it should display "Switch to landscape mode" and load when it is turned to landscape mode. 回答1: you can use the "onorientationchange" event of your browser. I extracted a working example from one of my testing projects: http://jsfiddle.net/r9b8D/ Its not exactly what you are looking for, but it shows the implementation of "onorientationchange". Copy the jsfiddle example to your host and navigate to the

mobile.de search api Authorization fehler mit PHP curl

五迷三道 提交于 2019-12-13 12:10:08
问题 I tryed to get data from the "mobile.de Search API", but it doesn't work =/ .. this error cames every time : HTTP Status 401 - This request requires HTTP authentication (). .. what am I doing wrong? $authCode = base64_encode("{Benutzername}:{Passwort}"); $uri = 'http://services.mobile.de/1.0.0/ad/search?modificationTime.min=2012-05-04T18:13:51.0Z'; $ch = curl_init($uri); curl_setopt_array($ch, array( CURLOPT_HTTPHEADER => array('Authorization: '.$authCode,'Accept-Language: de','Accept:

Android Location Strategy

橙三吉。 提交于 2019-12-13 10:55:26
问题 In Android What are the location determination strategies for Real-time GPS location determination (for user real-time user location tracking). Periodic GPS location determination (for periodic user location determination). For most accurate GPS location value. I am trying to make mobile applications of type 1 and type 2. Please guide me regarding the same 回答1: You can use Google Play Services API which is friendly and simple to use or GPS location API directly. Google Play Services API can

Java.io.IO.Exception; there is not enough space on the disk while running J2ME application

家住魔仙堡 提交于 2019-12-13 10:54:04
问题 I am getting following Error "Java.io.IO.Exception; there is not enough space on the disk" while running my J2ME Application can any body Please tell me what type of the Error is this and why it is coming. This error is coming when I am uploading the data from mobile to the server. I am not understanding where is the error it is at server side or at mobile side. 回答1: With respect to your question, as per the given information, Java.io.IOException; there is not enough space on the disk is

How to make an own iframe?

邮差的信 提交于 2019-12-13 10:26:23
问题 How to make an iframe, where I can set the source code, not just the src? Is it possible to create one without the src? 回答1: demo //get the iframe var iFrame = document.getElementById('iframe_id'); //this is your reference variable for the iframe body tag var iFrameBody; //get the body if (iFrame.contentDocument ){// FF iFrameBody = iFrame.contentDocument.getElementsByTagName('body')[0]; } else if ( iFrame.contentWindow ){ // IE iFrameBody = iFrame.contentWindow.document.getElementsByTagName(

how to make a current website responsive? [closed]

懵懂的女人 提交于 2019-12-13 10:11:37
问题 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 6 years ago . I want to make my current website responsive. It's a huge dynamic website and I do not want to make a separate website for mobile or

iOS-like Scrollview in as3 AIR

自闭症网瘾萝莉.ら 提交于 2019-12-13 09:48:35
问题 I'm trying to create a iOS-like UIScrollView in ActionScript 3 for my Adobe AIR apps, but it is not very smoooth. Why didn't Adobe implement a native scroll view? Has anyone already implemented a smooth scroll, using movie clips or something similar? 回答1: Take a look at this. It should give you some ideas/help you get started. http://www.infin8iphone.co.uk/?p=57 回答2: I had created a pretty full functional iOS-like ScrollView/ListView component for AS3, you can try it: https://github.com

C# application to connect to a mobile application using bluetooth

感情迁移 提交于 2019-12-13 09:09:53
问题 I`m asking this question again as I got no answer for about a week now ... I want to know how to write a C# desktop application that can connect to the mobile version of the same application (that I will create). The desktop application will be used as a backup/restore for the mobile application. I want to know also how to write the mobile version (using C# if possible). 回答1: May i know, in what way you want to communicate with the mobile version of the application? Ideally the cross domain

Receive update from server with mobile framework

こ雲淡風輕ζ 提交于 2019-12-13 09:08:04
问题 I'm trying to make a mobile application and I found ionic framework which seems cool. It seems that REST is a common way to do things and I don't understand one thing with this protocol. How does the server notify that he has data to send. If we have a text application, how does the server notify the application (without push notification, or maybe they're mandatory ?) that another client sent you a message ? It seems like REST is only good for the requests coming from the client. Does it

Exporting designs in apps as vector (XML/svg) file?

你说的曾经没有我的故事 提交于 2019-12-13 09:05:22
问题 My ultimate goal is to export designs created in mobile apps as vector graphics. Say I have a list of points of corners of shapes and the respective color that goes inside each shape and this design is being displayed on a mobile app (iOS and Android because cocos2d-x is being used). Is it possible to convert this information into a vector file (SVG file which is essentially an XML file)? 回答1: SVG contains a path element that stores the lines that make up a shape's path. The d attribute