I am a computer science student and I'm trying to teach myself Android development using Android's 'Getting Started Guide.' However, on the page 'Starting An Activity' ( http://developer.android.com/training/basics/activity-lifecycle/starting.html ) I get errors on both of the following lines of code samples:
setContentView(R.layout.main_activity);
and
mTextView = (TextView) findViewById(R.id.text_message);
Specifically on .main_activity
and .text_message
. It cannot be resolved to R.id
and I am not allowed to modify this file. I'm strictly going by the Getting Started Guide here. Didn't know if anyone else had this problem or know where I borked on this. Thanks.