Creating a new Intent results in a error
Posted
by yoavstr
on Stack Overflow
See other posts from Stack Overflow
or by yoavstr
Published on 2010-05-24T12:50:19Z
Indexed on
2010/05/24
13:01 UTC
Read the original article
Hit count: 187
android
|android-widget
when i do the fallowing i get screamed on :
Button newGameButton = (Button) this.findViewById(R.id.newGameButton);
newGameButton.setOnClickListener(new OnClickListener() {
public void onClick(View view) {
startActivity(new Intent(this,gameScreen.class));
}
});
apparently my this is not the one needed how can i fix this err?
© Stack Overflow or respective owner