I'm doing some really basics programming at Android Studio. I getting this error on the screen:
Cannot resolve method 'SetPositiveButton'
Is there any import
that I'm missing?
Here is my complete code:
package com.kontrol.app;
import android.content.Context;
import android.content.DialogInterface;
import android.preference.DialogPreference;
import android.util.AttributeSet;
public class SS1_Senha extends DialogPreference implements DialogInterface.OnClickListener{
public SS1_Senha(Context context, AttributeSet attrs) {
super(context, attrs);
setPersistent(false);
setDialogLayoutResource(R.layout.ss1_senha);
SetPositiveButtonText("OK");
SetPositiveButtonText("Cancelar")
setPositiveButton("Ok", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
//Action after OK
}
});
}
}