[android-beginners] Re: new'ing an Intent

2009-10-28 Thread Matt Raffel
Mark Murphy wrote: > >> btw, I have class called RootGameScreen in my workspace, namespace > >>> button.setOnClickListener(new View.OnClickListener() >>> { >>> public void onClick(View v) >>> { >>> Intent startGameIntent = new Intent(th

[android-beginners] Re: new'ing an Intent

2009-10-28 Thread Mark Murphy
> > btw, I have class called RootGameScreen in my workspace, namespace >>         button.setOnClickListener(new View.OnClickListener() >>         { >>             public void onClick(View v) >>             { >>                 Intent startGameIntent = new Intent(this, >> RootGameScreen.class

[android-beginners] Re: new'ing an Intent

2009-10-27 Thread tatman
Thnx. :) That was it. On Oct 27, 6:27 pm, Lance Nanek wrote: > Using "WelcomeScreen.this" instead of "this" should take care of the > problem Richard pointed out for this case. > > On Oct 27, 6:09 pm, RichardC wrote: > > > The "this" you are passing into new Intent is an anonymous derived > >

[android-beginners] Re: new'ing an Intent

2009-10-27 Thread Lance Nanek
Using "WelcomeScreen.this" instead of "this" should take care of the problem Richard pointed out for this case. On Oct 27, 6:09 pm, RichardC wrote: > The "this" you are passing into new Intent is an anonymous derived > class of View.OnClickListener not your derived Activity class > WelcomeScreen

[android-beginners] Re: new'ing an Intent

2009-10-27 Thread RichardC
The "this" you are passing into new Intent is an anonymous derived class of View.OnClickListener not your derived Activity class WelcomeScreen. You will need to ask someone who knows more Java than I do how to get at "this" in your outer class. -- RichardC On Oct 27, 9:48 pm, tatman wrote: > b

[android-beginners] Re: new'ing an Intent

2009-10-27 Thread tatman
btw, I have class called RootGameScreen in my workspace, namespace On Oct 27, 5:43 pm, tatman wrote: > In the notepad2.java example, the sample allocates an intent like > this: > >     private void createNote() { >         // TODO: fill in implementation >         Intent i = new Intent(this,