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 trial

Android Build a Simple Android App (retired 2014) Pretty Little Things Adding an Image

Shane Desouza
Shane Desouza
3,523 Points

Finding 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

I 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
Shane Desouza
3,523 Points

Thanks, but I found it myself!