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

后端 未结 3 1826
一向
一向 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:49

    Recently I understood the application package concept in Android and the answer for this question, thought i should share it.

    If the application package(specified in manifest) is same as the java package in which Activity is present then it is not required to specify full package name in manifest for activities. If application package name is different from the java package name then activity name should be complete with package name.

    This blog post give information about the application package and java packages in android.

    http://blog.javia.org/android-package-name/comment-page-1/#comment-14063

提交回复
热议问题