

Step 3: Replace with name in the below code Note: If you have not declared any icon for your activity then android sets the icon of parent component by default. Step 2: Open app> src > main > res > drawable > here save custom icon image with name Step 1: Open your android project folder in computer / system To set an icon you need to give reference of drawable resource as declared to add custom icon in your App: We will explain it in future topics of broadcasting.īelow are the attributes of Intent filter:Īn icon represents the activity, service or broadcast receiver when a user interact with it or when it appears to user in an application. Replace to This is another important attribute in Intent filter used in broadcasting. You can check or edit label name by opening String XML file present inside Values folder (Values -> Strings). The label / title that appears at top in Toolbar of that particular Activity. If icon image of any other name is stored please replace with that image name i.e.


You can check or save png image of name icon in drawable folder. Icon: This is displayed as icon for activity. Important Note: If you are using above code make sure below things are correct: Intent filter is declared inside Manifest file for an Activity.
