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.
Stephen Little8,312 Points
Have to change the Story Activity class to make things work...
I had to change the line
public class StoryActivity extends ActionBarActivity
public class StoryActivity extends Activity
and then import Activity to make the app work, I had to do this when I made a new activity page as well. Am I going to have to do this with every page and if so why? I don't understand ... is it because I'm using then newest version of android studio ?
Any thought would be great , thanks
Daniel Hartin18,106 Points
As standard android studio assumes you want to create an actionBarActivity as it has become the standard for navigation in apps now. Like you say you can simply delete the code you don't need and extend from a regular activity instead of an ActionBarActivity however all of the tutorials on here will work if you leave the other 2 methods in there, it isn't a big deal however I am a bit of a neat freak and I make sure to remove them if for instance I am creating a full screen application that doesn't require an actionBar.