Why are some constants public and other private in an Android library code
问题 Problem Why some constants are under the public modifier while some other private ? Are those under public can be called from applications that use the library? If so, how to call the constant from an app, is it like this: CertainLibraryClass.ActivityResultCode.CODE_A ? Code public class CertainLibraryClass { public class ActivityResultCode { public static final int CODE_A = 0X02; public static final int CODE_B = 0X03; public static final int CODE_C = 0X04; } public class VersionCode {