Can i convert in some way this method from boolean to int? so when i will call the method instead return true or false i can return 1 or 0:
public boolean openMode() {
return Settings.System.getBoolean(contxt.getConentResolver(), Setting.System.START_METHOD, true);
}