CodePackage
Stay organized with collections
Save and categorize content based on your preferences.
This is used to indicate which package the code in it. This is necessary because package
name may be obfuscated in runtime.
Inherited Method Summary
From interface java.lang.annotation.Annotation
abstract Class<? extends Annotation>
|
annotationType()
|
abstract boolean |
|
abstract int |
hashCode()
|
abstract String
|
toString()
|
Constants
public static final String
COMMON
public static final String
DRIVE
public static final String
FITNESS
Constant Value: "FITNESS"
public static final String
GCM
public static final String
ICING
public static final String
LOCATION
Constant Value: "LOCATION"
public static final String
LOCATION_SHARING
Constant Value:
"LOCATION_SHARING"
public static final String
OTA
public static final String
REMINDERS
Constant Value: "REMINDERS"
public static final String
SECURITY
Constant Value: "SECURITY"
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["`@CodePackage` is an annotation used to indicate the package of code, especially important because package names might be obfuscated during runtime."],["It provides several predefined constants such as COMMON, DRIVE, FITNESS, GCM, ICING, LOCATION, LOCATION_SHARING, OTA, REMINDERS, and SECURITY to represent common code packages."],["This annotation helps in identifying the origin of code even after obfuscation, which can be useful for debugging and analysis."]]],[]]