Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
Added in API level 1
package

java.lang.annotation

Interfaces

Annotation Defines the interface implemented by all annotations. 

Enums

ElementType Defines an enumeration for Java program elements. 
RetentionPolicy Defines an enumeration for annotation retention policies. 

Exceptions

AnnotationTypeMismatchException Indicates that an annotation type has changed since it was compiled or serialized. 
IncompleteAnnotationException Indicates that an element of an annotation type was accessed that was added after the type was compiled or serialized. 

Errors

AnnotationFormatError Indicates that an annotation in the binary representation of a class is syntactically incorrect and the annotation parser is unable to process it.