Creating an intent in a new method

后端 未结 5 1229
失恋的感觉
失恋的感觉 2021-01-06 05:43

So I want an intent to start an Activity that simply brings up a dialog popup box telling the user how to use the app.

I have the code:

private final         


        
5条回答
  •  悲&欢浪女
    2021-01-06 06:07

    Change,

    Intent i = new Intent(this, About.class);
    

    to,

    Intent i = new Intent(TheCurrentClassName.this, About.class);
    

提交回复
热议问题