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 Basic Android Programming Accessing Views in Code: Assigning Variables

private Button mShowFactButton;

Hello, With the new Android Studio the version is a bit hard to do the same like in a video. I have a problem after private Button mShowFactButton; when I hit the ALT+Enter it will show me many option to choose: Insert App Indexing API Code, Make Protected, Make public, Make package-private. What to choose?

1 Answer

Hey, why are you pressing ALT+ENTER? is this to import the button into the project? if so you can do this manually by going to the import line --> expand it --> and add this line "import android.widget.Button;"

As far as I know you should NOT select any of the options you get.