Hi, I am currently on page 82 in chapter 2, the "Communication between fragments" exercise:
In the Main Activity, the book instructs you to enter the following code:
Code:
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
I have a problem with the last line, it says that "main cannot be resolved or is not a field" and I don't understand the error,
Update
Fixed the problem, basically I didn't think, I changed the setContentView so that it actually referenced my activity as it had the wrong name
Thanks very much,
Nick