Is the activity name in AndroidManifest.xml required to start with a dot?

后端 未结 3 1821
一向
一向 2020-12-08 14:37

Is it required to start activity name with dot (\'.\') in manifest file.? for example activity ContactManager starts with \'.\'



        
3条回答
  •  粉色の甜心
    2020-12-08 14:57

    From the Android Dev Guide < activity > reference:

    The name of the class that implements the activity, a subclass of Activity. The attribute value should be a fully qualified class name (such as, "com.example.project.ExtracurricularActivity"). However, as a shorthand, if the first character of the name is a period (for example, ".ExtracurricularActivity"), it is appended to the package name specified in the element. There is no default. The name must be specified.

提交回复
热议问题