I get an error every time i click the navdown button "The application have been stopped unexpectedly Please try again". what does it mean?? im a new student in mobile developing.. please help i need to learn about this error
public class chapter1 extends Activity {
MediaPlayer sButton;
Intent intent;
private Button navup;
private Button navdown;
private WebView view = null;
private String url = null;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.chapter1);
url = getResources().getString(R.string.c1);
view = (WebView) findViewById(R.id.html1);
view.loadUrl(url);
view.setInitialScale(80);
navlist();
sButton = MediaPlayer.create(this, R.raw.page3);
}
private void navlist() {
navup = (Button)findViewById(R.id.prev);
navdown = (Button)findViewById(R.id.next);
navup.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
intent = new Intent(chapter1.this, chapters.class);
startActivity(intent);
sButton.start();
}
});
navdown.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
intent = new Intent(chapter1.this, chapter2.class);
startActivity(intent);
sButton.start();
}
});
}
}