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(this,
>>> RootGameScreen.class);
> 
> In Java, "this" refers to the narrowest possible scope by default. So, in
> your Intent constructor, "this" is the View.OnClickListener anonymous
> inner class you are defining.
> 
> Change your code to:
> 
> Intent startGameIntent = new Intent(WelcomeScreen.this,
> RootGameScreen.class);
> 
> and you may have better luck.
> 

yes that was it.  A newbie error. :)  Thnx

Matt

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to