rendered paste bodypackage com.russell.saw;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.content.Intent;
public class Noted extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Button notes_button = (Button) findViewById(R.id.notes_button); {
notes_button.setOnClickListener(
new View.OnClickListener() {
public void onClick(View view) {
Intent myIntent = new Intent(view.getContext(), notetaker.class);
startActivityForResult(myIntent, 0);
}
});
}
Button viewsaved = (Button) findViewById(R.id.viewsaved); {
viewsaved.setOnClickListener(
new View.OnClickListener() {
public void onClick(View view) {
Intent myIntent2 = new Intent(view.getContext(), savednotes.class);
startActivityForResult(myIntent2, 1);
}
});
}
}
}