compatibility

Html5 (audio) on Safari & iOS

心已入冬 提交于 2020-01-13 08:04:47
问题 I am working on a web application and I have one compatibility problem with Apple devices & Safari on PCs. Html5 audio tag: <audio controls> <source src="/audio/en/file.mp3" type="audio/mpeg"> <source src="/audio/en/file.ogg" type="audio/ogg"> Your browser does not support the audio element. </audio> I just want to play an audio file with basic controls. The previous code works perfectly on Chrome, Opera, Firefox ( Windows & Android devices ). But controlers do no appear with Safari ( tested

How to use NotificationCompat.Builder and startForeground?

廉价感情. 提交于 2020-01-12 14:07:51
问题 Short question: I'm trying to use the NotificationCompat.Builder class in order to create a notification that will be used for the service, but for some reason, i either don't see the notification, or can't cancel it when the service should be destroyed (or stopping from being in the foreground) . my code: @Override public int onStartCommand(final Intent intent, final int flags, final int startId) { final String action = intent == null ? null : intent.getAction(); Log.d("APP", "service action

Making CSS transition effects work in all browsers

∥☆過路亽.° 提交于 2020-01-11 19:53:29
问题 I currently have the following CSS, it works in Google Chrome (Webkit), but not in any other browser. Whats the best way to make this compatible with everything? As you can see it is using webkit, but I'm not sure what the moz equivalents are. Many thanks .card{ margin-top: -50px; } .card { width: 286px; height: 224px; -webkit-transform-style: preserve-3d; -webkit-transition: 0.5s; -moz-transform-style: preserve-3d; -moz-transition: 0.5s; } .container:hover .card { -webkit-transform: rotateY

Making CSS transition effects work in all browsers

爷,独闯天下 提交于 2020-01-11 19:52:53
问题 I currently have the following CSS, it works in Google Chrome (Webkit), but not in any other browser. Whats the best way to make this compatible with everything? As you can see it is using webkit, but I'm not sure what the moz equivalents are. Many thanks .card{ margin-top: -50px; } .card { width: 286px; height: 224px; -webkit-transform-style: preserve-3d; -webkit-transition: 0.5s; -moz-transform-style: preserve-3d; -moz-transition: 0.5s; } .container:hover .card { -webkit-transform: rotateY

Is it preferable to use __future__ or future to write code compatible with python2 and python3?

左心房为你撑大大i 提交于 2020-01-11 11:32:36
问题 Or are there specific situations where one is better than the other? So far, all I gathered is that future is only available for >=2.6 or >=3.3. The current code I have is very basic and runs the same on python2 and 3 except for the use of print function calls. However, the code may get more complex over time and I would like to use the right approach for writing python2/3 compatible code from the beginning. 回答1: The __future__ module is built-in to Python, and is provided to allow

Is Java bytecode compatible with different versions of Java?

痞子三分冷 提交于 2020-01-11 09:48:08
问题 If I compile an application using Java 5 code into bytecode, are the resulting .class files going to be able to run under Java 1.4? If the latter can work and I'm trying to use a Java 5 framework in my Java 1.4 application, is there anything I should watch out for? 回答1: Nope! .class files are forward compatible only. Java 5 introduced new classfile attributes and format changes, to handle Varargs, enums, and generics. Java 4 would just fail when processing these. However, there is the

Weird compatibility problem with .Net 3.5 and 4.0 assemblies (NATUPnPLib)

本小妞迷上赌 提交于 2020-01-11 08:43:19
问题 I'm having trouble getting NATUPnP 1.0 Type Library to work with Framework 3.5 in Visual Studio 2010. If I use .Net 4.0, it works just fine, but with .Net 3.5, NATUPNPLib's namespace looks excactly like NETCONLib's. For example this Port Forwarding Management Application sample from this site: http://pietschsoft.com/post/2009/02/05/NET-Framework-Communicate-through-NAT-Router-via-UPnP.aspx ..is using .Net 3.5, but I can't get it to compile in Visual Studio 2010 unless I change it to .Net 4.0.

Facebook Connect and HTML5, xmlns available?

跟風遠走 提交于 2020-01-11 04:33:25
问题 Facebook Connect and their "Social Widgets" documentation mention that you need to add an xmlns attribute to your <html> tag on the page where it will be used. I understand that xmlns is for XML Name-spacing, and have used such with XHTML before. However, with all the recent talk about HTML4 / HTML5, without having read through the entire spec, is the xmlns attribute compatible with valid HTML5? What about HTML4? If I've looked over an obvious mention of this in the docs, I'm sorry... point

in-app purchase, any difference between iOS 5 and 6?

白昼怎懂夜的黑 提交于 2020-01-06 07:33:11
问题 I searched, only found a similar question, which was not quite answered, and mine is not the same, so I ask here. I followed Troy IAP tutorial (http://troybrant.net/blog/2010/01/in-app-purchases-a-full-walkthrough/) and coded my IAP, which works well in iOS 6.0 Simulator or real non-jail-break testing device. However, when I tested in iOS 5.0/5.1 Simulator (I don't have 5.x device), IAP process went through all steps to payment queue and returned stateFailed. The program otherwise runs well

NSKeyedArchiver/NSKeyedUnarchiver compatibility on different iOS versions

点点圈 提交于 2020-01-06 04:12:10
问题 In an iOS app, we are using serialization of complex objects through NSKeyedArchiver/NSKeyedUnarchiver to store info and data. So the app will include such a serialized object in the app bundle, and this file will be created under one specific iOS version (let's say iOS 5.0) As the app will be running on different iOS versions (> 5.0) and even in future versions to come, we want to be sure that the original serialized object included in the app bundle will be perfectly readable on every other