1

Iam Getting b.setOnClickListener(new OnClickListener() ERROR

view story
linux-howto

http://stackoverflow.com – I am creating a simple app in eclipse but I am getting error at this line b.setOnClickListener(new OnClickListener() please have a look at the entire program package com.example.activity2; public class Main extends Activity { //Called when the activity is first created. */ @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Button b = (Button) findViewById(R.id.button1); b.setOnClickListener(new OnClickListener() { public void onClick(View v) { // TODO Auto-ge (HowTos)