Tuesday, September 3, 2013

The constructor Intent(new View.OnClickListener()) is undefined

Issue:
The constructor Intent(new View.OnClickListener(){}, Class<NewWindow>) is undefined.



Solution: Find out --

Intent intent = new Intent(this, NewWindow.class);

Change the this to getApplicationContext() or StartClass.this .

 

No comments:

Post a Comment

How to Generate and use the ssh key on Gerrit, github.io, gitlab, and bitbucket.

 Details can be found here -