diff options
author | Sven Gothel <[email protected]> | 2011-07-24 11:50:34 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-07-24 11:50:34 +0200 |
commit | 2be84ffcc62e8be16b1bba17569a9b2d42269336 (patch) | |
tree | aef478d9afe9443cfcf3c4c26e644c97be2cf63a /src/java | |
parent | 869c49c22573147c94b1e6d931c2cff696a54a47 (diff) |
Android: Remove native (fake) detection
Diffstat (limited to 'src/java')
-rw-r--r-- | src/java/com/jogamp/common/util/VersionUtil.java | 2 | ||||
-rw-r--r-- | src/java/jogamp/common/os/MachineDescriptionRuntime.java | 11 |
2 files changed, 1 insertions, 12 deletions
diff --git a/src/java/com/jogamp/common/util/VersionUtil.java b/src/java/com/jogamp/common/util/VersionUtil.java index b8b7932..d48eb5d 100644 --- a/src/java/com/jogamp/common/util/VersionUtil.java +++ b/src/java/com/jogamp/common/util/VersionUtil.java @@ -57,7 +57,7 @@ public class VersionUtil { sb.append("Platform: ").append(Platform.getOSType()).append(" / ").append(Platform.getOSName()).append(' ').append(Platform.getOSVersion()).append(" (os), "); sb.append(Platform.getArch()).append(" (arch) ").append(Runtime.getRuntime().availableProcessors()).append(" cores"); sb.append(Platform.getNewline()); - if( Platform.OSType.ANDROID == Platform.getOSType() && AndroidVersion.isAvailable) { + if( AndroidVersion.isAvailable) { sb.append("Platform: Android Version: ").append(AndroidVersion.CODENAME).append(", "); sb.append(AndroidVersion.RELEASE).append(" [").append(AndroidVersion.RELEASE).append("], SDK: ").append(AndroidVersion.SDK_INT).append(", ").append(AndroidVersion.SDK_NAME); sb.append(Platform.getNewline()); diff --git a/src/java/jogamp/common/os/MachineDescriptionRuntime.java b/src/java/jogamp/common/os/MachineDescriptionRuntime.java index 0438d30..1413705 100644 --- a/src/java/jogamp/common/os/MachineDescriptionRuntime.java +++ b/src/java/jogamp/common/os/MachineDescriptionRuntime.java @@ -119,17 +119,6 @@ public class MachineDescriptionRuntime { getAlignmentPointerImpl()); } - public static boolean isAndroid() { - try { - NativeLibrary.ensureNativeLibLoaded(); - return isAndroidImpl(); - } catch (UnsatisfiedLinkError err) { - return AndroidVersion.isAvailable; - } - } - - private static native boolean isAndroidImpl(); - private static native int getPointerSizeInBytesImpl(); private static native long getPageSizeInBytesImpl(); |