FileDocCategorySizeDatePackage
IAndroidTarget.javaAPI DocAndroid 1.5 API5835Wed May 06 22:41:10 BST 2009com.android.sdklib

IAndroidTarget

public interface IAndroidTarget implements Comparable
A version of Android that application can target when building.

Fields Summary
public static int
ANDROID_JAR
OS Path to the "android.jar" file.
public static int
ANDROID_AIDL
OS Path to the "framework.aidl" file.
public static int
IMAGES
OS Path to "images" folder which contains the emulator system images.
public static int
SAMPLES
OS Path to the "samples" folder which contains sample projects.
public static int
SKINS
OS Path to the "skins" folder which contains the emulator skins.
public static int
TEMPLATES
OS Path to the "templates" folder which contains the templates for new projects.
public static int
DATA
OS Path to the "data" folder which contains data & libraries for the SDK tools.
public static int
ATTRIBUTES
OS Path to the "attrs.xml" file.
public static int
MANIFEST_ATTRIBUTES
OS Path to the "attrs_manifest.xml" file.
public static int
LAYOUT_LIB
OS Path to the "data/layoutlib.jar" library.
public static int
RESOURCES
OS Path to the "data/res" folder.
public static int
FONTS
OS Path to the "data/fonts" folder.
public static int
WIDGETS
OS Path to the "data/widgets.txt" file.
public static int
ACTIONS_ACTIVITY
OS Path to the "data/activity_actions.txt" file.
public static int
ACTIONS_BROADCAST
OS Path to the "data/broadcast_actions.txt" file.
public static int
ACTIONS_SERVICE
OS Path to the "data/service_actions.txt" file.
public static int
CATEGORIES
OS Path to the "data/categories.txt" file.
public static int
SOURCES
OS Path to the "sources" folder.
public static int
DOCS
OS Path to the target specific docs
public static int
AAPT
OS Path to the target's version of the aapt tool.
public static int
AIDL
OS Path to the target's version of the aidl tool.
public static int
DX
OS Path to the target's version of the dx too.
public static int
DX_JAR
OS Path to the target's version of the dx.jar file.
Constructors Summary
Methods Summary
public java.lang.StringgetApiVersionName()
Returns the platform version as a readable string.

public intgetApiVersionNumber()
Returns the api version as an integer.

public java.lang.StringgetClasspathName()
Returns the name to be displayed when representing all the libraries this target contains.

public java.lang.StringgetDefaultSkin()
Returns the default skin for this target.

public java.lang.StringgetDescription()
Returns the description of the target.

public java.lang.StringgetFullName()
Returns the full name of the target, possibly including vendor name.

public java.lang.StringgetLocation()
Returns the target location.

public java.lang.StringgetName()
Returns the name of the target.

public com.android.sdklib.IAndroidTarget$IOptionalLibrary[]getOptionalLibraries()
Returns the available optional libraries for this target.

return
an array of optional libraries or null if there is none.

public com.android.sdklib.IAndroidTargetgetParent()
Returns the parent target. This is likely to only be non null if {@link #isPlatform()} returns false

public java.lang.StringgetPath(int pathId)
Returns the path of a platform component.

param
pathId the id representing the path to return. Any of the constants defined in the {@link IAndroidTarget} interface can be used.

public java.lang.String[]getSkins()
Returns the available skins for this target.

public java.lang.StringgetVendor()
Returns the name of the vendor of the target.

public java.lang.StringhashString()
Returns a string able to uniquely identify a target. Typically the target will encode information such as api level, whether it's a platform or add-on, and if it's an add-on vendor and add-on name.

public booleanisCompatibleBaseFor(com.android.sdklib.IAndroidTarget target)
Returns whether the given target is compatible with the receiver.

A target is considered compatible if applications developed for the receiver can run on the given target.

param
target the IAndroidTarget to test.

public booleanisPlatform()
Returns true if the target is a standard Android platform.