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
>
> 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
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
> >
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
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
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,
6 matches
Mail list logo