I am trying to create an SQL database in Android. I am currently following an online tutorial but every time I try to add an OnClickListener for my button I get the following error message…
The method setOnClickListener(View.OnClickListener) in the type View is not applicable for the arguments(SqlExample).
In the quick fix eclipse allows me to implement an OnClickListener however I end up with the following import “public class SqlExample extends Activity implements OnClickListener, android.view.View.OnClickListener”…. Is this correct? It is something I have never seen before.
Add thiss line
import android.view.View.OnClickListener;to the import section.