Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialShane Desouza
3,523 PointsFinding MainActivity in the Manifest Application Nodes section
I can't find my MainActivity file in the application nodes section in the manifest. Is this another Eclipse quirk or did I do something wrong?
1 Answer
Ankit B
4,180 PointsI would suggest you to verify it using the xml view. If you have deleted it by mistake, try adding this code inside the <application></application>
attribute:
<activity
android:name="com.organization.app.MainActivity"
android:label="@string/app_name"
android:screenOrientation="portrait" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
Shane Desouza
3,523 PointsShane Desouza
3,523 PointsThanks, but I found it myself!