hyungjungsoh
Newbie
I guess this is just a simple question (I'm such a noob...)
I have this custom dialog box that has 3 buttons in it.
Now I want to call an activity from one of the buttons so
I tried this:
Then the red squiggly line appears on startActivity(myIntent). 
Upon hovering on it, eclipse tells me this: "The method startActivity(Intent) is undefined for the type new View.OnClickListener(){}"
Ehhh? Please orient me on how to do this properly.
Any help would be appreciated.
I have this custom dialog box that has 3 buttons in it.
Now I want to call an activity from one of the buttons so
I tried this:
Code:
public class picturedialog extends Dialog implements OnClickListener {
Button Camera;
public picturedialog (Context context){
super (context);
setContentView(R.layout.picturedialog);
Camera = (Button) this.findViewById(R.id.pdButton1);
Camera.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
dismiss();
Intent myIntent = new Intent(view.getContext(), CameraActivity.class);
[COLOR=Red]startActivity(myIntent);[/COLOR]
}
});
...
}

Upon hovering on it, eclipse tells me this: "The method startActivity(Intent) is undefined for the type new View.OnClickListener(){}"
Ehhh? Please orient me on how to do this properly.
Any help would be appreciated.