Add Activity to Android Project using Eclipse

Steps to add another activity to an existing Android Project


1) Open AndroidManifest.xml from Package Explorer for the given Android Project. Then Click on the "Application" tab of the Manifest editor.

Add Activity to Android Project using Eclipse

2) Click on the Add button under Application Nodes. From the popup window select Activity and then click OK.

(In case you get a radio button selection then choose to create a new top-level element)
Add Activity to Android Project using Eclipse

3) Click on Name* link under Attributes for Activity

Add Activity to Android Project using Eclipse

4) Add Java Class name basically the new Activity name and then click Finish.

Add Activity to Android Project using Eclipse

5) All done! You have your new activity open in the Editor Window. 


Save your AndroidManifest.xml file.

Add Activity to Android Project using Eclipse

No comments:

Post a Comment

NO JUNK, Please try to keep this clean and related to the topic at hand.
Comments are for users to ask questions, collaborate or improve on existing.