|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.android.xml.AndroidManifest
public final class AndroidManifest
Helper and Constants for the AndroidManifest.xml file.
Field Summary | |
---|---|
static java.lang.String |
ATTRIBUTE_ANYDENSITY
|
static java.lang.String |
ATTRIBUTE_BACKUP_AGENT
|
static java.lang.String |
ATTRIBUTE_DEBUGGABLE
|
static java.lang.String |
ATTRIBUTE_EXPORTED
|
static java.lang.String |
ATTRIBUTE_GLESVERSION
|
static java.lang.String |
ATTRIBUTE_ICON
|
static java.lang.String |
ATTRIBUTE_LABEL
|
static java.lang.String |
ATTRIBUTE_LARGESCREENS
|
static java.lang.String |
ATTRIBUTE_MANAGE_SPACE_ACTIVITY
|
static java.lang.String |
ATTRIBUTE_MIN_SDK_VERSION
|
static java.lang.String |
ATTRIBUTE_NAME
|
static java.lang.String |
ATTRIBUTE_NORMALSCREENS
|
static java.lang.String |
ATTRIBUTE_PACKAGE
|
static java.lang.String |
ATTRIBUTE_PARENT_ACTIVITY_NAME
|
static java.lang.String |
ATTRIBUTE_PROCESS
|
static java.lang.String |
ATTRIBUTE_REQ_5WAYNAV
|
static java.lang.String |
ATTRIBUTE_REQ_HARDKEYBOARD
|
static java.lang.String |
ATTRIBUTE_REQ_KEYBOARDTYPE
|
static java.lang.String |
ATTRIBUTE_REQ_NAVIGATION
|
static java.lang.String |
ATTRIBUTE_REQ_TOUCHSCREEN
|
static java.lang.String |
ATTRIBUTE_REQUIRED
|
static java.lang.String |
ATTRIBUTE_RESIZEABLE
|
static java.lang.String |
ATTRIBUTE_SMALLSCREENS
|
static java.lang.String |
ATTRIBUTE_SUPPORTS_RTL
|
static java.lang.String |
ATTRIBUTE_TARGET_ACTIVITY
|
static java.lang.String |
ATTRIBUTE_TARGET_PACKAGE
|
static java.lang.String |
ATTRIBUTE_TARGET_SDK_VERSION
|
static java.lang.String |
ATTRIBUTE_THEME
|
static java.lang.String |
ATTRIBUTE_UI_OPTIONS
|
static java.lang.String |
ATTRIBUTE_VALUE
|
static java.lang.String |
ATTRIBUTE_VERSIONCODE
|
static java.lang.String |
NODE_ACTION
|
static java.lang.String |
NODE_ACTIVITY
|
static java.lang.String |
NODE_ACTIVITY_ALIAS
|
static java.lang.String |
NODE_APPLICATION
|
static java.lang.String |
NODE_CATEGORY
|
static java.lang.String |
NODE_COMPATIBLE_SCREENS
|
static java.lang.String |
NODE_DATA
|
static java.lang.String |
NODE_GRANT_URI_PERMISSION
|
static java.lang.String |
NODE_INSTRUMENTATION
|
static java.lang.String |
NODE_INTENT
|
static java.lang.String |
NODE_MANIFEST
|
static java.lang.String |
NODE_METADATA
|
static java.lang.String |
NODE_PATH_PERMISSION
|
static java.lang.String |
NODE_PERMISSION
|
static java.lang.String |
NODE_PERMISSION_GROUP
|
static java.lang.String |
NODE_PERMISSION_TREE
|
static java.lang.String |
NODE_PROVIDER
|
static java.lang.String |
NODE_RECEIVER
|
static java.lang.String |
NODE_SERVICE
|
static java.lang.String |
NODE_SUPPORTS_GL_TEXTURE
|
static java.lang.String |
NODE_SUPPORTS_SCREENS
|
static java.lang.String |
NODE_USES_CONFIGURATION
|
static java.lang.String |
NODE_USES_FEATURE
|
static java.lang.String |
NODE_USES_LIBRARY
|
static java.lang.String |
NODE_USES_PERMISSION
|
static java.lang.String |
NODE_USES_SDK
|
static java.lang.String |
VALUE_PARENT_ACTIVITY
|
Constructor Summary | |
---|---|
AndroidManifest()
|
Method Summary | |
---|---|
static java.lang.String |
combinePackageAndClassName(java.lang.String javaPackage,
java.lang.String className)
Combines a java package, with a class value from the manifest to make a fully qualified class name |
static java.lang.String |
extractActivityName(java.lang.String fullActivityName,
java.lang.String packageName)
Given a fully qualified activity name (e.g. |
static java.lang.String |
getApplicationIcon(IAbstractFile manifestFile)
Returns the application icon for a given manifest. |
static java.lang.String |
getApplicationLabel(IAbstractFile manifestFile)
Returns the application label for a given manifest. |
static boolean |
getDebuggable(IAbstractFile manifestFile)
Returns whether the manifest is set to make the application debuggable. |
static IAbstractFile |
getManifest(IAbstractFolder projectFolder)
Returns an IAbstractFile object representing the manifest for the given project. |
static java.lang.Object |
getMinSdkVersion(IAbstractFile manifestFile)
Returns the value of the minSdkVersion attribute. |
static java.lang.String |
getPackage(IAbstractFile manifestFile)
Returns the package for a given manifest. |
static java.lang.String |
getPackage(IAbstractFolder projectFolder)
Returns the package for a given project. |
static boolean |
getSupportsRtl(IAbstractFile manifestFile)
Returns whether the manifest is set to make the application RTL aware. |
static java.lang.Object |
getTargetSdkVersion(IAbstractFile manifestFile)
Returns the value of the targetSdkVersion attribute. |
static int |
getVersionCode(IAbstractFile manifestFile)
Returns the value of the versionCode attribute or -1 if the value is not set. |
static boolean |
hasVersionCode(IAbstractFile manifestFile)
Returns whether the version Code attribute is set in a given manifest. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String NODE_MANIFEST
public static final java.lang.String NODE_APPLICATION
public static final java.lang.String NODE_ACTIVITY
public static final java.lang.String NODE_ACTIVITY_ALIAS
public static final java.lang.String NODE_SERVICE
public static final java.lang.String NODE_RECEIVER
public static final java.lang.String NODE_PROVIDER
public static final java.lang.String NODE_INTENT
public static final java.lang.String NODE_ACTION
public static final java.lang.String NODE_CATEGORY
public static final java.lang.String NODE_USES_SDK
public static final java.lang.String NODE_PERMISSION
public static final java.lang.String NODE_PERMISSION_TREE
public static final java.lang.String NODE_PERMISSION_GROUP
public static final java.lang.String NODE_USES_PERMISSION
public static final java.lang.String NODE_INSTRUMENTATION
public static final java.lang.String NODE_USES_LIBRARY
public static final java.lang.String NODE_SUPPORTS_SCREENS
public static final java.lang.String NODE_COMPATIBLE_SCREENS
public static final java.lang.String NODE_USES_CONFIGURATION
public static final java.lang.String NODE_USES_FEATURE
public static final java.lang.String NODE_METADATA
public static final java.lang.String NODE_DATA
public static final java.lang.String NODE_GRANT_URI_PERMISSION
public static final java.lang.String NODE_PATH_PERMISSION
public static final java.lang.String NODE_SUPPORTS_GL_TEXTURE
public static final java.lang.String ATTRIBUTE_PACKAGE
public static final java.lang.String ATTRIBUTE_VERSIONCODE
public static final java.lang.String ATTRIBUTE_NAME
public static final java.lang.String ATTRIBUTE_REQUIRED
public static final java.lang.String ATTRIBUTE_GLESVERSION
public static final java.lang.String ATTRIBUTE_PROCESS
public static final java.lang.String ATTRIBUTE_DEBUGGABLE
public static final java.lang.String ATTRIBUTE_LABEL
public static final java.lang.String ATTRIBUTE_ICON
public static final java.lang.String ATTRIBUTE_MIN_SDK_VERSION
public static final java.lang.String ATTRIBUTE_TARGET_SDK_VERSION
public static final java.lang.String ATTRIBUTE_TARGET_PACKAGE
public static final java.lang.String ATTRIBUTE_TARGET_ACTIVITY
public static final java.lang.String ATTRIBUTE_MANAGE_SPACE_ACTIVITY
public static final java.lang.String ATTRIBUTE_EXPORTED
public static final java.lang.String ATTRIBUTE_RESIZEABLE
public static final java.lang.String ATTRIBUTE_ANYDENSITY
public static final java.lang.String ATTRIBUTE_SMALLSCREENS
public static final java.lang.String ATTRIBUTE_NORMALSCREENS
public static final java.lang.String ATTRIBUTE_LARGESCREENS
public static final java.lang.String ATTRIBUTE_REQ_5WAYNAV
public static final java.lang.String ATTRIBUTE_REQ_NAVIGATION
public static final java.lang.String ATTRIBUTE_REQ_HARDKEYBOARD
public static final java.lang.String ATTRIBUTE_REQ_KEYBOARDTYPE
public static final java.lang.String ATTRIBUTE_REQ_TOUCHSCREEN
public static final java.lang.String ATTRIBUTE_THEME
public static final java.lang.String ATTRIBUTE_BACKUP_AGENT
public static final java.lang.String ATTRIBUTE_PARENT_ACTIVITY_NAME
public static final java.lang.String ATTRIBUTE_SUPPORTS_RTL
public static final java.lang.String ATTRIBUTE_UI_OPTIONS
public static final java.lang.String ATTRIBUTE_VALUE
public static final java.lang.String VALUE_PARENT_ACTIVITY
Constructor Detail |
---|
public AndroidManifest()
Method Detail |
---|
public static IAbstractFile getManifest(IAbstractFolder projectFolder)
IAbstractFile
object representing the manifest for the given project.
projectFolder
- The project containing the manifest file.
public static java.lang.String getPackage(IAbstractFolder projectFolder) throws javax.xml.xpath.XPathExpressionException, StreamException
projectFolder
- the folder of the project.
javax.xml.xpath.XPathExpressionException
StreamException
- If any error happens when reading the manifest.public static java.lang.String getPackage(IAbstractFile manifestFile) throws javax.xml.xpath.XPathExpressionException, StreamException
manifestFile
- the manifest to parse.
javax.xml.xpath.XPathExpressionException
StreamException
- If any error happens when reading the manifest.public static boolean getDebuggable(IAbstractFile manifestFile) throws javax.xml.xpath.XPathExpressionException, StreamException
manifestFile
- the manifest to parse.
javax.xml.xpath.XPathExpressionException
StreamException
- If any error happens when reading the manifest.public static int getVersionCode(IAbstractFile manifestFile) throws javax.xml.xpath.XPathExpressionException, StreamException
manifestFile
- the manifest file to read the attribute from.
javax.xml.xpath.XPathExpressionException
StreamException
- If any error happens when reading the manifest.public static boolean hasVersionCode(IAbstractFile manifestFile) throws javax.xml.xpath.XPathExpressionException, StreamException
manifestFile
- the manifest to check
javax.xml.xpath.XPathExpressionException
StreamException
- If any error happens when reading the manifest.@Nullable public static java.lang.Object getMinSdkVersion(IAbstractFile manifestFile) throws javax.xml.xpath.XPathExpressionException, StreamException
manifestFile
- the manifest file to read the attribute from.
javax.xml.xpath.XPathExpressionException
StreamException
- If any error happens when reading the manifest.@Nullable public static java.lang.Object getTargetSdkVersion(IAbstractFile manifestFile) throws javax.xml.xpath.XPathExpressionException, StreamException
manifestFile
- the manifest file to read the attribute from.
javax.xml.xpath.XPathExpressionException
StreamException
- If any error happens when reading the manifest.public static java.lang.String getApplicationIcon(IAbstractFile manifestFile) throws javax.xml.xpath.XPathExpressionException, StreamException
manifestFile
- the manifest to parse.
javax.xml.xpath.XPathExpressionException
StreamException
- If any error happens when reading the manifest.public static java.lang.String getApplicationLabel(IAbstractFile manifestFile) throws javax.xml.xpath.XPathExpressionException, StreamException
manifestFile
- the manifest to parse.
javax.xml.xpath.XPathExpressionException
StreamException
- If any error happens when reading the manifest.public static boolean getSupportsRtl(IAbstractFile manifestFile) throws javax.xml.xpath.XPathExpressionException, StreamException
manifestFile
- the manifest to parse.
javax.xml.xpath.XPathExpressionException
StreamException
- If any error happens when reading the manifest.public static java.lang.String combinePackageAndClassName(java.lang.String javaPackage, java.lang.String className)
javaPackage
- the java package from the manifest.className
- the class name from the manifest.
public static java.lang.String extractActivityName(java.lang.String fullActivityName, java.lang.String packageName)
fullActivityName
- a fully qualified activity class name, e.g. "com.foo.test.MyClass"packageName
- The project base package name, e.g. "com.foo"
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |