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!
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

Michael Foster
7,801 PointsIn need of help with, Getting Text from an Edit Text within the android course.
I can not figure out why I am receiving errors when trying to follow along within the Build an Interactive Story app. Stuck!!! Please help!
2 Answers

Enrique Munguía
14,311 PointsMake sure your xml layout file contains the EditText and Button with the id attribute spelled exactly as in your Java code.

Michael Foster
7,801 PointsThanks for such a quick response, I was able to figure out the problem by looking at other forums with similar issues. Thanks again!!!

Michael Foster
7,801 PointsI fixed it thanks, I just used autocomplete instead of typing it out and now the errors are gone!
Michael Foster
7,801 PointsMichael Foster
7,801 Pointspackage com.michaelfoster.interactivestory;
import android.app.Activity; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.Button; import android.widget.EditText;
public class MainActivity extends Activity {
}
//nameEditText and startbutton is the color red and both error messages say cannot resolve symbol