me estoy dando un error como: "El método onClick (Ver) de tipo oddg debe anular un método de superclase" Estoy confundido donde exactamente se ha producido el error ... ¿me puede guiar por favor, qué es exactamente el error ?????El método onClick (Ver) de tipo oddg debe anular un método de superclase?
public class oddg extends Activity implements OnClickListener
{
ProgressDialog dialog;
int increment;
int maximum ;
private static final String TAG = "ServicesDemo";
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main1);
Button startbtn = (Button) findViewById(R.id.startbtn);
startbtn.setOnClickListener(this);
}
@Override
public void onClick(View arg0)
{ }
}
este es mi código ... Gracias en Advance-- Onkar
¿Usó la anotación @Override en un método que no tiene una firma que coincida con una interfaz principal o implementada?En cualquier caso, si publicara el código mínimo completo necesario para replicar su problema, la gente podría ayudarlo. –
@thane he editado mi Q. para codificar, sí, he usado la anotación @Override, tuerca lo que quiero hacer por ella, por favor guíame ... – Smith