Top Fields Constructors Methods
jogamp.common.os

public Class AndroidUtils

extends Object
Class Inheritance
Imports
java.io.File, java.lang.reflect.Method, com.jogamp.common.os.AndroidVersion, com.jogamp.common.util.ReflectionUtil

Field Summary

Modifier and TypeField and Description
private static final Method
private static final Method
private static final Method

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static final int

Returns:

null if platform is not Android or no Android Context is registered via StaticContext.init(..), otherwise the found package version code of packageName is returned.
getPackageInfoVersionCode
(final String packageName)

public static final String

Returns:

null if platform is not Android or no Android Context is registered via StaticContext.init(..), otherwise the found package version name of packageName is returned.
getPackageInfoVersionName
(final String packageName)

public static File

Returns:

null if platform is not Android or no Android Context is registered via StaticContext.init(..), otherwise the context relative world readable temp directory returned.
getTempRoot
()

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

androidGetPackageInfoVersionCodeMethodback to summary
private static final Method androidGetPackageInfoVersionCodeMethod
androidGetPackageInfoVersionNameMethodback to summary
private static final Method androidGetPackageInfoVersionNameMethod
androidGetTempRootMethodback to summary
private static final Method androidGetTempRootMethod

Constructor Detail

AndroidUtilsback to summary
public AndroidUtils()

Method Detail

getPackageInfoVersionCodeback to summary
public static final int getPackageInfoVersionCode(final String packageName)
Returns:int

null if platform is not Android or no Android Context is registered via StaticContext.init(..), otherwise the found package version code of packageName is returned.

getPackageInfoVersionNameback to summary
public static final String getPackageInfoVersionName(final String packageName)
Returns:String

null if platform is not Android or no Android Context is registered via StaticContext.init(..), otherwise the found package version name of packageName is returned.

getTempRootback to summary
public static File getTempRoot() throws RuntimeException
Returns:File

null if platform is not Android or no Android Context is registered via StaticContext.init(..), otherwise the context relative world readable temp directory returned.