mobile

iOS vs Android: different dates displayed for the same program

空扰寡人 提交于 2020-01-16 05:10:26
问题 I have a javascript code: newDate: function(days) { var newDate = new Date( parseInt(startDate) + 1*1000*3600); var date = newDate .getDate(); return date ; }, Seems like this is the part of the program that produces different results on Android and iOS. All the rest data is the same. How can it produce different results on Android vs iOS? 回答1: The Date constructor is only consistent cross-browser for the following Date formats: "2010" "2010-06" "2010-06-09" "2010-06-09T15:20:00Z" "2010-06

is it good to implement real time chat application in java using sockets for mobile platforms

旧城冷巷雨未停 提交于 2020-01-16 04:21:07
问题 I am trying to design a mobile chat application with a targeted user over 3lac, I have seen articles related to XMPP server and client approach, node.js with socket.io, but the confusion is which will scale up for so many users. Can this also be achieved using java socket api for so many users. 回答1: The implementation language has little impact on the scalability of the solution when compared to the skill of the developers with the language in question, and the design of the solution. The two

Force mobile onscreen keyboard to not be position absolute? [duplicate]

好久不见. 提交于 2020-01-16 00:46:19
问题 This question already has answers here : Prevent div scrolling up when bumped by div below it? (11 answers) Closed 4 days ago . I'm developing a chat and it works on desktop but on mobile when you select the textbox and it automatically opens the virtual onscreen keyboard, the onscreen keyboard seems to overlay itself (similar to position:fixed over the messages div, rather than bumping it. Basically, the messages div should retain its scroll position rather than adjusting. If you can see the

How do I exit (or suspend) a Flex 4.5 IPhone Application through code?

安稳与你 提交于 2020-01-15 23:41:33
问题 NativeApplication.nativeApplication.exit() does not seem to work on IOS and I'm in a position where if a certain error code is I'd like to either be able to shutdown and restart my applicaiton. 回答1: You are not able to shut down and then restart your application on iOS. You can quit your app, but not restart. 回答2: You can't ( as far as I know ) exit an iPad application, but you can crash it! There's other ways of going about it, but the general idea is to keep taking more memory until iOs

Create image buttons in jquery mobile

淺唱寂寞╮ 提交于 2020-01-15 15:37:26
问题 Im trying to create a button in jquery mobile only with a image and no text, as far as able to do is to add a data-icon, But i have i feeling it could be done better. <a onclick="newfunction();" data-icon="plus" data-iconpos="notext" ></a> 回答1: You can create button with only images : <img style="height: 40px; width: 40px;" id="newid" data-role="button" src="source\images\greenplus.png" data-iconpos="notext" data-theme="a" /> 回答2: data-iconpos="notext" is indeed the right-way ahead for you to

Connect And Disconnect Mobile Broadband Connection

和自甴很熟 提交于 2020-01-15 12:39:49
问题 Please tell me how to connect and disconnect mobile broadband connection using C# or DOS? 回答1: There is no native support in .NET, you need to invoke the win api, specifically wininet.dll and invoke InternetGetConnectedState function. You can use the following link for with a sample code. Code is in VB, but you can easily convert it to c#. How to determine the connection state of your local system and how to initiate or end an Internet connection 回答2: On the commandline (DOS) you can use the

Flex 4.6 AIR 3.2 TextInput artifacts

我怕爱的太早我们不能终老 提交于 2020-01-15 12:37:05
问题 I'm testing simple TextInput functionality in flex 4.6 + air 3.2 mobile application and observing strange artifacts when soft keyboard resizes the view. Here is appearance: before soft keyboard is popped out and after. As you can see Flex has resized the view so that soft kb would with with the TextInput visible. But this is causing erasures artifacts in all TextInputs! Is this a bug? Where in Flex or AIR? Any suggestions how to fix this? Thanks! 回答1: By default, Flex 4.6 uses StageText in it

Weird iOS animation, display with jQuery?

给你一囗甜甜゛ 提交于 2020-01-15 11:42:52
问题 I have been working on some animations for a sliding menu with some help from you lovely guys :) It works perfectly in browsers, but when using an iPad or iPhone (iphone has its own layout) the following occour... On the home page, after the slider opens, it takes a few seconds to render the menu once the div is opened (opposed to the web version) and sometimes it does not even appear. On other pages the menu slides open, but once fully open, the text hides its self, then becomes visible once

Weird iOS animation, display with jQuery?

落爺英雄遲暮 提交于 2020-01-15 11:42:26
问题 I have been working on some animations for a sliding menu with some help from you lovely guys :) It works perfectly in browsers, but when using an iPad or iPhone (iphone has its own layout) the following occour... On the home page, after the slider opens, it takes a few seconds to render the menu once the div is opened (opposed to the web version) and sometimes it does not even appear. On other pages the menu slides open, but once fully open, the text hides its self, then becomes visible once

Detecting if the Compact Framewok is installed on mobile device

若如初见. 提交于 2020-01-15 06:55:29
问题 Ive written an application using the .net compact framework. One of the requirements is that a check is run before app runs to see if the compact framework is installed. If not I should prompt this to them and redirect them to cf download location. What would be the best most common approach to doing this. Obviously my .net wont run in the first place if .net cf is not installed, do i need to write this in eVc++? Much appreciate your thoughts on the Tony 回答1: This is an MSDN article about