Android Manifest- intent filter and activity

前端 未结 3 2210
轻奢々
轻奢々 2021-02-13 01:46

Could someone explain the following lines in the manifest -

    
           


        
3条回答
  •  耶瑟儿~
    2021-02-13 02:22

    An Activity is an application component that provides a screen with which users can interact in order to do something, such as dial the phone, take a photo, send an email, or view a map. To declare your activity, open your manifest file and add an element as a child of the element like your example.

    • The android:name attribute is the only required attribute—it specifies the class name of the activity.
    • The android:label attribute is a user-readable label for the application as a whole, and a default label for each of the application's components

    An element can also specify various intent filters—using the element—in order to declare how other application components may activate it.

    • The element specifies that this is the "main" entry point to the application.
    • The element specifies that this activity should be listed in the system's application launcher (to allow users to launch this activity).

    Please refer to the http://developer.android.com/guide/components/activities.html

提交回复
热议问题