Questions tagged [compatibility]

This tag should be used to identify questions regarding compatibility issues, for example between different versions of the same software product or, development kit or library.

2979 questions
53
votes
1 answer

Is arm64-v8a compatible with armeabi-v7a?

For my Android-app I'm using the ABI "x86" and "armeabi" right now. The armeabi is used for all ARM-devices, including armv7a and arm64-v8a. Now I would like to remove the "armeabi" and just continue with "x86" and "armeabi-v7a". I haven't found any…
Martin L.
  • 3,006
  • 6
  • 36
  • 60
53
votes
3 answers

Writing backwards compatible Android code

I'm writing an app that uses some functions and classes only available in the latest API level - 16, but I want it to run with no errors on devices with API level 15. Let's use a couple of examples. A new class: Android.widget.Advanceable, and a…
Timmmm
  • 88,195
  • 71
  • 364
  • 509
52
votes
8 answers

Android: Tint using DrawableCompat

I'm trying to tint an image prior to Android API level 21. I've successfully tinted items using: However, I can't seem to figure out how to do this through code on an ImageView: Drawable iconDrawable =…
Hippopatimus
  • 531
  • 1
  • 4
  • 5
52
votes
3 answers

How to make gradle generate a valid pom.xml file at the root of a project for maven users?

While only for two days now, I am definitely sold on using gradle for all of my Java projects, and drop pom.xml from the root of all my projects. However, I would like to remain maven-compatible, in the sense that I would like for a gradle task to…
fge
  • 119,121
  • 33
  • 254
  • 329
50
votes
4 answers

Effective maximum mailto: body lengths

There is a maximum length for the text in the &body section of a mailto: link. According to one of my co-workers, the W3C publish the limit as 256 (I don't have a link to back this up, though). We're embedding mailto: links in both an e-mail and a…
50
votes
11 answers

Blob download is not working in IE

I have this in my Angular.js controller that downloads a CSV file: var blob = new Blob([csvContent.join('')], { type: 'text/csv;charset=utf-8'}); var link = document.createElementNS('http://www.w3.org/1999/xhtml', 'a'); link.href =…
raberana
  • 11,739
  • 18
  • 69
  • 95
50
votes
9 answers

Strategy for developing namespaced and non-namespaced versions of same PHP code

I'm maintaining library written for PHP 5.2 and I'd like to create PHP 5.3-namespaced version of it. However, I'd also keep non-namespaced version up to date until PHP 5.3 becomes so old, that even Debian stable ships it ;) I've got rather clean…
Kornel
  • 97,764
  • 37
  • 219
  • 309
47
votes
1 answer

println vs System.out.println in Scala

I always thought that Predef.println was merely a shortcut for System.out.println, but apparently I am mistaken, since it doesn't seem to use System.out at all. Why is that so? And how can I do the "redirecting" of System.out below in Scala? scala>…
Kim Stebel
  • 41,826
  • 12
  • 125
  • 142
46
votes
5 answers

Theme not applying to DialogFragment on Android

I'm switching my old Dialogs to DialogFragment, but the themes and styles don't seem to be working. I'm using the DialogFragment from the compatibility library v4, and in the onCreate method I've tried calling setStyle(style, theme); with a lot of…
luthier
  • 2,674
  • 4
  • 32
  • 35
44
votes
3 answers

Alternative to sun.misc.Signal

I started research to find an alternative to the sun.misc.Signal class, because it could be unsupported in upcoming JDKs (we're currently working on 1.6). When I build the project I get: warning: sun.misc.SignalHandler is Sun proprietary API and…
plancys
  • 3,833
  • 2
  • 19
  • 26
42
votes
4 answers

c++ #ifdef Mac OS X question

I am fairly new to C++. I am currently working on a group project and we want to make our classes compatible with both the lab computers (Windows) and my computer (Mac OS X). Here is what we have been putting at the top of our files: #ifdef…
Kirsty
  • 421
  • 1
  • 4
  • 3
42
votes
13 answers

VB6 Running on Windows 8?

Assuming that vb6 does not run on Windows 8 because the VB6 run time libraries are not shipped with Windows 8, would it not be possible to install the VB6 run time library on Windows 8 and then then run VB6? Or is there another problem?
Clinton Reilly
  • 435
  • 1
  • 6
  • 10
40
votes
6 answers

Handling the missing MENU button in new versions of Android (3.x and up)

I'm a fan of the menu button as used in Android <3.0, as it was very useful for my game apps - it allowed me to take important but gameplay irrelevant functionality (saving game, reference info links) and place it somewhere where it did not clutter…
39
votes
2 answers

How to check that two format strings are compatible?

Examples: "Something %d" and "Something else %d" // Compatible "Something %d" and "Something else %f" // Not Compatible "Something %d" and "Something %d else %d" // Not Compatible "Something %d and %f" and…
Erik B
  • 40,889
  • 25
  • 119
  • 135
38
votes
3 answers

Is .NET 4.0 Compatible with Windows XP SP2 or below?

I have read here http://www.microsoft.com/downloads/en/details.aspx?FamilyID=5765d7a8-7722-4888-a970-ac39b33fd8ab that to instal .NET 4.0 CP (client profile) you must have WinXP SP3 or above. This is somewhat worrying to me as there are many people…
Erx_VB.NExT.Coder
  • 4,838
  • 10
  • 56
  • 92