Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
Can't Add a Second Activity
Because I have several orange highlighted words in my Main Activity (Interactive Story) and hence red squigglies under the names for MainActivity and AndroidManifets tabs at the top, I believe this is stopping me from starting a new activity. The problems appear to be dealing with the mStartButton entry. It says something about being converted to a local variable. I was just told this shouldn't be a problem, but I am stuck.
delete that set with the word activity, because you have that one below, you just need to have
hey, so far, I realized one error in the AndroidManifest file, which is
you need to input "portrait" between the quotation marks as below
android:screenOrientation="portrait" and also close it as below.
I wish that helps.
Thanks, I just tried it and I got an other set of <> with the word "activity" in it. Actually this is what it looks like now, and there are a lot more red squigglies.
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.twesq.interactivestory" >
<application android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" > <activity android:name=".MainActivity" android:label="@string/app_name" android:screenOrientation="portrait"></activity> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application>