- Forum posts: 9
Jan 13, 2015, 10:40:35 PM via Website
Jan 13, 2015 10:40:35 PM via Website
I'm a newbie and going through the tutorials: The first one went fine and so I went on to the second part : adding on a second activity to respond to a button, The following method snippet was put into the main_activity.java file: public void sendMessage(View view) {
Intent intent = new Intent(this, DisplayMessageActivity.class);
I get 2 errors here, no reference to view and the DisplayMessageActivity class. The second error is because the class has not been created yet. The error about the View class not being found and view not being used at all has me confused. The code in the method block never uses view! I would think there is a problem with the tutorial!! How do I fix this?
Recommended editorial content
With your consent, external content is loaded here.
By clicking on the button above, you agree that external content may be displayed to you. Personal data may be transmitted to third-party providers in the process. You can find more information about this in our Privacy Policy.